# Sourcegraph integration

> Code search and code intelligence: search code across repositories, run Deep Search and exhaustive search jobs, and manage users, repositories, permissions and entitlements on a Sourcegraph instance.

- Authentication: apiKey

## Tools (351)

- **API: Add Conversation Question**: AddConversationQuestion adds a follow-up question to an existing conversation. The initial question is specified in CreateConversation; this RPC is only for subsequent questions. The last question in the conversation must not be in a processing state. Returns the created question.
- **API: Batch Create Grants**: Grants a non-default entitlement to multiple users.
- **API: Batch Delete Grants**: Revokes an entitlement from multiple users. Grants that do not exist are ignored, so this operation is idempotent. Affected users fall back to the default entitlement of the same type, if one exists.
- **API: Batch Delete Users**: BatchDeleteUsers deletes one or more users. Only site admins may perform this operation.
- **API: Batch Undelete Users**: BatchUndeleteUsers undeletes one or more soft-deleted users. Only site admins may perform this operation.
- **API: Cancel Conversation**: CancelConversation cancels any in-flight question processing in this conversation.
- **API: Cancel Search Job**: CancelSearchJob cancels an in-flight search job. No-op if the job is already in a terminal state. Returns the updated SearchJob.
- **API: Create Conversation**: CreateConversation starts a new Deep Search conversation. Returns immediately with state=processing. The conversation runs asynchronously; poll GetConversation to check for completion.
- **API: Create Entitlement**: Creates a new entitlement. At most one default entitlement may exist per entitlement type; creating a second default entitlement of the same type fails with FAILED_PRECONDITION. Creating an entitlement with the same display name and type as an existing entitlement fails with ALREADY_EXISTS.
- **API: Create Explicit Repo Permission**: Grants a user explicit access to a repository. If the user already has explicit access to the repository, an `ALREADY_EXISTS` error is returned.
- **API: Create Search Job**: CreateSearchJob queues a new exhaustive search job. Returns immediately with state=QUEUED. The job runs asynchronously; poll GetSearchJob to check for completion. Invalid queries return INVALID_ARGUMENT.
- **API: Delete Conversation**: DeleteConversation permanently deletes a conversation.
- **API: Delete Entitlement**: DeleteEntitlement permanently deletes an entitlement and all of its grants.
- **API: Delete Explicit Repo Permission**: Revokes a user's explicit access to a repository. Only permissions created via this API can be revoked. Attempting to delete a permission that was synced from a code host (or does not exist) returns `NOT_FOUND`.
- **API: Delete Search Job**: DeleteSearchJob permanently deletes a search job and its results.
- **API: Download Search Job Logs**: Stream the execution logs for a Search Job. Failed and canceled jobs expose a `logsUrl` to read what happened.
- **API: Download Search Job Results**: Stream the JSONL-encoded results of a Search Job. Request this once the job's state is `STATE_COMPLETED`; the completed job's `resultsUrl` points here.
- **API: Get Conversation**: GetConversation retrieves the current state of a conversation.
- **API: Get Entitlement**: GetEntitlement retrieves an entitlement by name.
- **API: Get Explicit Repo Permission**: GetExplicitRepoPermission retrieves a single explicit repository permission by name, confirming that a specific user has been granted access to a specific repository via this API.
- **API: Get Grant**: Retrieves a grant by name. For default entitlements, this returns the implied grant if the default entitlement applies to the user; such implied grants have is_default set to true.
- **API: Get Repository**: GetRepository retrieves a repository by ID.
- **API: Get Search Job**: GetSearchJob returns the current state of a search job. Primary endpoint for polling job progress.
- **API: Get User**: GetUser retrieves a user by name.
- **API: List Conversation Summaries**: ListConversationSummaries lists conversation summaries for the authenticated user. Returns lightweight metadata without full question content. Use GetConversation to retrieve the complete conversation.
- **API: List Entitlements**: ListEntitlements lists entitlements.
- **API: List Explicit Repo Permissions**: Lists explicit repository permissions under a parent. When the parent is a repository (`repositories/{repository}`), the response lists every user that has been granted explicit access to that repository. When the parent is a user (`users/{user}`), the response lists every repository that user has b
- **API: List Grants**: Lists the users an entitlement applies to. For non-default entitlements, this lists explicit grants. For default entitlements, this lists the users the default implicitly applies to, which are all users without an explicit grant of the same entitlement type; such implied grants have is_default set t
- **API: List Search Jobs**: ListSearchJobs lists search jobs visible to the authenticated user.
- **API: List Users**: ListUsers lists all users.
- **API: Update Entitlement**: Updates an existing entitlement. The entitlement type cannot be changed. Making an entitlement the default while another default entitlement of the same type exists fails with FAILED_PRECONDITION.
- **API: Update User**: UpdateUser updates a user. Only the user and site admins may perform this operation.
- **GraphQL Mutation: addExternalAccount**: Adds an external account to the authenticated user's account.
- **GraphQL Mutation: addExternalService**: Adds a external service.
- **GraphQL Mutation: addGitHubAppAuthProvider**: Adds a GitHub App as an authentication provider in the site configuration.
- **GraphQL Mutation: addInsightViewToDashboard**: Associate an existing insight view with this dashboard.
- **GraphQL Mutation: addPhabricatorRepo**: Adds a Phabricator repository to Sourcegraph.
- **GraphQL Mutation: addRepoMetadata**: Associate a new key-value pair metadata with a repo.
- **GraphQL Mutation: addRepositoryPermissionForUser**: Add permission for a single user to access a repository.
- **GraphQL Mutation: addUserEmail**: Adds an email address to the user's account.
- **GraphQL Mutation: addUserToOrganization**: Immediately add a user as a member to the organization, without sending an invitation email.
- **GraphQL Mutation: cancelExternalServiceSync**: Cancels an external service sync job.
- **GraphQL Mutation: cancelPermissionsSyncJob**: Cancel permissions sync job with given ID.
- **GraphQL Mutation: changePromptVisibility**: Change the visibility state of a prompt.
- **GraphQL Mutation: changeSavedSearchVisibility**: Change the visibility state of a saved search.
- **GraphQL Mutation: checkMirrorRepositoryConnection**: Tests the connection to a mirror repository's original source repository.
- **GraphQL Mutation: connectSlackWorkspace**: Stores config for a Slack bot integration.
- **GraphQL Mutation: createAccessToken**: Creates an access token that grants the privileges of the specified user (referred to as the access token's "subject" user after token creation).
- **GraphQL Mutation: createAuthProviderWizardDraft**: Creates a new auth provider wizard draft.
- **GraphQL Mutation: createCodeIntelligenceConfigurationPolicy**: Creates a new configuration policy with the given attributes.
- **GraphQL Mutation: createEntitlement**: Creates the entitlement.
- **GraphQL Mutation: createEntitlementGrants**: Grants the entitlement to the users.
- **GraphQL Mutation: createExecutorSecret**: Create a new executor secret.
- **GraphQL Mutation: createFeatureFlag**: EXPERIMENTAL: Create a new feature flag
- **GraphQL Mutation: createFeatureFlagOverride**: EXPERIMENTAL: Create a new feature flag override for the given org or user
- **GraphQL Mutation: createGitHubApp**: Add an existing GitHub App.
- **GraphQL Mutation: createIDPClient**: Create a new IdP client.
- **GraphQL Mutation: createInferenceProvider**: Creates an inference provider.
- **GraphQL Mutation: createInsightsDashboard**: Create a new dashboard.
- **GraphQL Mutation: createInventoryStatsInsight**: Create a repository statistics insight.
- **GraphQL Mutation: createLineChartSearchInsight**: Create a line chart backed by search insights.
- **GraphQL Mutation: createM2MCredential**: Create a new M2M (Machine-to-Machine) credential for a service account.
- **GraphQL Mutation: createOrganization**: Creates an organization.
- **GraphQL Mutation: createOutboundWebhook**: Creates a new outbound webhook.
- **GraphQL Mutation: createPassword**: Creates a password for the current user.
- **GraphQL Mutation: createPieChartSearchInsight**: Create a pie chart backed by search insights.
- **GraphQL Mutation: createPrompt**: Create a prompt.
- **GraphQL Mutation: createPromptTag**: Create a prompt tag.
- **GraphQL Mutation: createRole**: Creates a role.
- **GraphQL Mutation: createSavedSearch**: Creates a saved search.
- **GraphQL Mutation: createSearchContext**: Create search context.
- **GraphQL Mutation: createSearchContextStar**: Add a star on a search context for the specified user.
- **GraphQL Mutation: createUser**: Creates a new user account.
- **GraphQL Mutation: createWebhook**: Creates a webhook for the specified code host.
- **GraphQL Mutation: deleteAccessToken**: Deletes and immediately revokes the specified access token, specified by either its ID or by the token itself.
- **GraphQL Mutation: deleteAuthProvider**: Deletes an authentication provider from the site configuration by removing the matching entry from the auth.providers array.
- **GraphQL Mutation: deleteAuthProviderWizardDraft**: Deletes an auth provider wizard draft.
- **GraphQL Mutation: deleteCodeIntelligenceConfigurationPolicy**: Deletes the configuration policy with the given identifier.
- **GraphQL Mutation: deleteDockerRegistryCredential**: Removes a single container registry credential from a DOCKER_AUTH_CONFIG executor secret.
- **GraphQL Mutation: deleteEntitlement**: Deletes the entitlement.
- **GraphQL Mutation: deleteEntitlementGrants**: Deletes the entitlement grants.
- **GraphQL Mutation: deleteExecutorSecret**: Deletes the given executor secret.
- **GraphQL Mutation: deleteExternalAccount**: Deletes the association between an external account and its Sourcegraph user.
- **GraphQL Mutation: deleteExternalService**: Delete an external service.
- **GraphQL Mutation: deleteFeatureFlag**: EXPERIMENTAL: Delete a feature flag
- **GraphQL Mutation: deleteFeatureFlagOverride**: Delete a feature flag override
- **GraphQL Mutation: deleteGitHubApp**: Delete a GitHub App.
- **GraphQL Mutation: deleteIDPClient**: Delete an existing IdP client.
- **GraphQL Mutation: deleteInferenceProvider**: Deletes an inference provider.
- **GraphQL Mutation: deleteInsightsDashboard**: Delete a dashboard.
- **GraphQL Mutation: deleteInsightView**: Delete an insight view given the graphql ID.
- **GraphQL Mutation: deleteM2MCredential**: Delete an M2M credential for a service account.
- **GraphQL Mutation: deleteNotification**: Deletes a notification by its ID.
- **GraphQL Mutation: deleteOrganization**: Soft deletes an organization.
- **GraphQL Mutation: deleteOutboundWebhook**: Deletes an outbound webhook.
- **GraphQL Mutation: deletePreciseIndex**: Deletes a precise index.
- **GraphQL Mutation: deletePreciseIndexes**: Deletes precise indexes by filter criteria.
- **GraphQL Mutation: deletePrompt**: Delete a prompt.
- **GraphQL Mutation: deletePromptTag**: Delete a prompt tag.
- **GraphQL Mutation: deleteRepoMetadata**: Delete a key-value pair metadata associated with a repo.
- **GraphQL Mutation: deleteRepositoryFromDisk**: INTERNAL ONLY: Delete a repository from the gitserver.
- **GraphQL Mutation: deleteRole**: Deletes a role.
- **GraphQL Mutation: deleteSavedSearch**: Deletes a saved search.
- **GraphQL Mutation: deleteSearchContext**: Delete search context.
- **GraphQL Mutation: deleteSearchContextStar**: Delete a star on a search context for the specified user.
- **GraphQL Mutation: deleteUser**: Deletes a user account.
- **GraphQL Mutation: deleteUsers**: Bulk "deleteUser" action.
- **GraphQL Mutation: deleteWebhook**: Deletes a webhook by given ID.
- **GraphQL Mutation: disconnectSlackWorkspace**: Removes config for a Slack bot integration.
- **GraphQL Mutation: dismissNotification**: Dismisses a notification by its ID.
- **GraphQL Mutation: editTemporarySettings**: Merges the given settings edit with the current temporary settings for the current user.
- **GraphQL Mutation: excludeRepoFromExternalServices**: Excludes a repo from external services configs.
- **GraphQL Mutation: finalizeAuthProviderWizardDraft**: Finalizes an auth provider wizard draft by committing the configuration to site config and deleting the draft.
- **GraphQL Mutation: invalidateSessionsByID**: Invalidates all sessions belonging to a user.
- **GraphQL Mutation: invalidateSessionsByIDs**: Bulk "invalidateSessionsByID" action.
- **GraphQL Mutation: inviteUserToOrganization**: Invite the user with the given username to join the organization.
- **GraphQL Mutation: markChangedFilesAsUnviewed**: EXPERIMENTAL: Remove the "viewed" mark from one or more changed files in a diff for the current user.
- **GraphQL Mutation: markChangedFilesAsViewed**: EXPERIMENTAL: Mark one or more changed files in a diff as viewed for the current user.
- **GraphQL Mutation: moveInsightSeriesBackfillToBackOfQueue**: Updates the priority of an insight series backfill making it the lowest priority given the graphql ID of the InsightBackfillQueueItem
- **GraphQL Mutation: moveInsightSeriesBackfillToFrontOfQueue**: Updates the priority of an insight series backfill making it the highest priority given the graphql ID of the InsightBackfillQueueItem.
- **GraphQL Mutation: optimizeMirrorRepository**: Schedule the mirror repository to be optimized.
- **GraphQL Mutation: overwriteTemporarySettings**: Overwrites and saves the temporary settings for the current user.
- **GraphQL Mutation: queueAutoIndexJobsForRepo**: Queues the index jobs for a repository for execution.
- **GraphQL Mutation: randomizeUserPassword**: Randomize a user's password so that they need to reset it before they can sign in again.
- **GraphQL Mutation: recloneRepository**: INTERNAL ONLY: Reclone a repository from the gitserver.
- **GraphQL Mutation: recordAuthProviderWizardValidationResult**: Records a validation result for an auth provider wizard draft.
- **GraphQL Mutation: recoverUsers**: Bulk "recoverUser" action.
- **GraphQL Mutation: refreshGitHubApp**: Refresh a GitHub App.
- **GraphQL Mutation: refreshRepository**: Schedule a repository to be updated from its original source.
- **GraphQL Mutation: reindexRepository**: Force Zoekt to reindex the repository right now.
- **GraphQL Mutation: removeInsightViewFromDashboard**: Remove an insight view from a dashboard.
- **GraphQL Mutation: removeRepositoryPermissionForUser**: Remove permission for a single user to access a repository.
- **GraphQL Mutation: removeUserEmail**: Removes an email address from the user's account.
- **GraphQL Mutation: removeUserFromOrganization**: Removes a user as a member from an organization.
- **GraphQL Mutation: reorderAuthProviders**: Reorders authentication providers by setting their order field in site configuration.
- **GraphQL Mutation: resendVerificationEmail**: Resend a verification email, no op if the email is already verified.
- **GraphQL Mutation: resetCodeIntelligenceConfigurationPolicies**: Resets the list of all unprotected configuration policies to the given list.
- **GraphQL Mutation: resetEntitlementUsage**: Resets entitlement usage for a user.
- **GraphQL Mutation: resolveDeviceAuthorization**: Make a determination for device authorization.
- **GraphQL Mutation: resolvePhabricatorDiff**: Resolves a revision for a given diff from Phabricator.
- **GraphQL Mutation: respondToOrganizationInvitation**: Accept or reject an existing organization invitation.
- **GraphQL Mutation: retryInsightSeriesBackfill**: Retry the backfill for a failed insight series given the graphql ID of the InsightBackfillQueueItem.
- **GraphQL Mutation: revokeIDPClientConsent**: Revoke the UserConsentedIDPClient consent.
- **GraphQL Mutation: saveInsightAsNewView**: Create a new insight view from an existing view.
- **GraphQL Mutation: scheduleRepositoryPermissionsSync**: Schedule a permissions sync for given repository.
- **GraphQL Mutation: scheduleUserPermissionsSync**: Schedule a permissions sync for given user.
- **GraphQL Mutation: sendTestEmail**: Sends an email for testing Sourcegraph's email configuration.
- **GraphQL Mutation: setAccessRequestStatus**: Marks access_request as rejected
- **GraphQL Mutation: setAccessRestrictionsConfiguration**: Sets access restrictions configuration in the site configuration.
- **GraphQL Mutation: setAuthProviderEnforceAccountConnection**: Sets whether users must connect an external account for a code host authentication provider before they can continue using Sourcegraph.
- **GraphQL Mutation: setAuthProviderSignIn**: Sets whether an authentication provider is enabled for sign-in.
- **GraphQL Mutation: setBuiltinAuthEnabled**: Enables or disables the builtin username-password authentication provider.
- **GraphQL Mutation: setDefaultSearchContext**: Set the default search context for the specified user.
- **GraphQL Mutation: setExternalTLSConfiguration**: Sets the external TLS configuration in the site configuration.
- **GraphQL Mutation: setInstanceSettings**: Sets the instance settings (external URL, CORS origins, branding, HTML injection) in the site configuration.
- **GraphQL Mutation: setLicenseKey**: Sets the license key in the site configuration.
- **GraphQL Mutation: setMigrationDirection**: Updates an out-of-band migration to run in a particular direction.
- **GraphQL Mutation: setPasswordPolicyConfiguration**: Sets password policy configuration in the site configuration.
- **GraphQL Mutation: setPermissions**: Set permissions for role.
- **GraphQL Mutation: setRepositoryPermissionsForBitbucketProject**: Set the repository permissions for a given Bitbucket project.
- **GraphQL Mutation: setRepositoryPermissionsForUsers**: Set the permissions of a repository (i.e., which users may view it on Sourcegraph).
- **GraphQL Mutation: setRepositoryPermissionsUnrestricted**: Set 'unrestricted' to true or false on a set of repositories.
- **GraphQL Mutation: setRoles**: Set roles for a user.
- **GraphQL Mutation: setSessionConfiguration**: Sets session management configuration in the site configuration.
- **GraphQL Mutation: setSignupConfiguration**: Sets signup and self-service configuration in the site configuration.
- **GraphQL Mutation: setSlackAllowDeepSearch**: Updates whether Deep Search is allowed for a Slack bot integration.
- **GraphQL Mutation: setSMTPConfiguration**: Sets the email configuration in the site configuration.
- **GraphQL Mutation: setSubRepositoryPermissionsForUsers**: Set the sub-repo permissions of a repository (i.e., which paths are allowed or disallowed for a particular user).
- **GraphQL Mutation: settingsMutation**: All mutations that update settings (global, organization, and user settings) are under this field.
- **GraphQL Mutation: setTosAccepted**: Sets the user to accept the site's Terms of Service and Privacy Policy.
- **GraphQL Mutation: setUserCodeCompletionsQuota**: Sets the code completions requests quota for the user per day.
- **GraphQL Mutation: setUserCompletionsQuota**: Sets the completions requests quota for the user per day.
- **GraphQL Mutation: setUserEmailPrimary**: Set an email address as the user's primary.
- **GraphQL Mutation: setUserEmailVerified**: Manually set the verification status of a user's email, without going through the normal verification process (of clicking on a link in the email with a verification code).
- **GraphQL Mutation: setUserIsSiteAdmin**: Sets whether the user with the specified user ID is a site admin.
- **GraphQL Mutation: submitChangeRequestReview**: EXPERIMENTAL: Submits a review for a code-host change request.
- **GraphQL Mutation: submitHappinessFeedback**: Submits happiness feedback.
- **GraphQL Mutation: submitSurvey**: Submits a user satisfaction (NPS) survey.
- **GraphQL Mutation: syncExternalService**: Enqueues a sync for the external service.
- **GraphQL Mutation: telemetry**: Telemetry mutations for "Event Logging Everywhere", aka a version 2 of existing event-logging/event-recording APIs.
- **GraphQL Mutation: transferPromptOwnership**: Transfer ownership of a prompt to a new owner (a namespace, either a user or organization).
- **GraphQL Mutation: transferSavedSearchOwnership**: Transfers ownership of a saved search to a new owner (a namespace, either a user or organization).
- **GraphQL Mutation: triggerObservabilityTestAlert**: OBSERVABILITY Set the status of a test alert of the specified parameters - useful for validating 'observability.alerts' configuration.
- **GraphQL Mutation: unsuspendExternalService**: Resumes automatic syncing for a suspended external service.
- **GraphQL Mutation: updateAuthProviderWizardDraft**: Updates an existing auth provider wizard draft.
- **GraphQL Mutation: updateCodeIntelligenceConfigurationPolicy**: Updates the attributes configuration policy with the given identifier.
- **GraphQL Mutation: updateCodeIntelligenceInferenceScript**: Updates the previously set/overrides the default global auto-indexing job inference Lua script with a new override.
- **GraphQL Mutation: updateEntitlement**: Updates the entitlement.
- **GraphQL Mutation: updateExecutorSecret**: Update the value and/or description of an existing executor secret.
- **GraphQL Mutation: updateExternalService**: Updates a external service.
- **GraphQL Mutation: updateFeatureFlag**: EXPERIMENTAL: Update a feature flag
- **GraphQL Mutation: updateFeatureFlagOverride**: Update a feature flag override
- **GraphQL Mutation: updateIDPClient**: Update an existing IdP client.
- **GraphQL Mutation: updateInferenceProvider**: Updates an inference provider.
- **GraphQL Mutation: updateInferenceRoutingConfiguration**: Updates the inference routing fallback policy.
- **GraphQL Mutation: updateInsightsDashboard**: Edit an existing dashboard.
- **GraphQL Mutation: updateInsightSeries**: Update an insight series.
- **GraphQL Mutation: updateInventoryStatsInsight**: Update a repository statistics insight.
- **GraphQL Mutation: updateLineChartSearchInsight**: Update a line chart backed by search insights.
- **GraphQL Mutation: updateManagedIndexingSettings**: Updates the managed indexing settings for the Sourcegraph instance.
- **GraphQL Mutation: updateMirrorRepository**: Schedule the mirror repository to be updated from its original source repository.
- **GraphQL Mutation: updateOrganization**: Updates an organization.
- **GraphQL Mutation: updateOutboundWebhook**: Updates an outbound webhook.
- **GraphQL Mutation: updatePassword**: Updates the current user's password.
- **GraphQL Mutation: updatePieChartSearchInsight**: Update a pie chart backed by search insights.
- **GraphQL Mutation: updatePrompt**: Update a prompt.
- **GraphQL Mutation: updatePromptTag**: Update a prompt tag.
- **GraphQL Mutation: updateRepoMetadata**: Update metadata value for a given metadata key for associated with a repo.
- **GraphQL Mutation: updateRepositoryIndexConfiguration**: Updates the indexing configuration associated with a repository.
- **GraphQL Mutation: updateSavedSearch**: Updates a saved search.
- **GraphQL Mutation: updateSearchContext**: Update search context.
- **GraphQL Mutation: updateSiteConfiguration**: Updates the site configuration.
- **GraphQL Mutation: updateUser**: Updates the user profile information for the user with the given ID.
- **GraphQL Mutation: updateWebhook**: Updates a webhook with given ID.
- **GraphQL Mutation: upsertDockerRegistryCredential**: Adds or updates a single container registry credential inside a DOCKER_AUTH_CONFIG executor secret.
- **GraphQL Mutation: validateExternalServiceConfig**: Validates an external service configuration without saving it.
- **GraphQL Mutation: validateExternalServiceConnection**: Checks whether an external service configuration can connect without saving it.
- **GraphQL Mutation: validateExternalTLSConfiguration**: Validates an external TLS configuration without saving it.
- **GraphQL Mutation: validateGitLabUsernamePermissionToken**: Checks whether a GitLab connection token can sync permissions by username.
- **GraphQL Mutation: validateInferenceProvider**: Validates an inference provider's configuration and model routes.
- **GraphQL Mutation: validateSMTPConfiguration**: Validates an SMTP configuration by sending a verification email without saving the config.
- **GraphQL Query: accessRequests**: List access requests.
- **GraphQL Query: areExecutorsConfigured**: Returns true if executors have been configured on the Sourcegraph instance.
- **GraphQL Query: authorizedUserRepositories**: The repositories a user is authorized to access with the given permission.
- **GraphQL Query: authProviderValidationResult**: Fetches the result of an authentication provider validation.
- **GraphQL Query: authProviderWizardDrafts**: List of auth provider wizard drafts for the current user.
- **GraphQL Query: backgroundJobs**: Get a list of background jobs that are currently known in the system.
- **GraphQL Query: batchChangesUserCredentialGitHubApps**: GitHub Apps configured as Batch Changes credentials for a user.
- **GraphQL Query: bitbucketCloudRepositories**: Searches repositories in a Bitbucket Cloud workspace using an unsaved connection configuration.
- **GraphQL Query: bitbucketCloudWorkspaces**: Lists the Bitbucket Cloud workspaces accessible with an unsaved connection configuration.
- **GraphQL Query: bitbucketProjectPermissionJobs**: Returns a list of Bitbucket Project permissions sync jobs for a given set of parameters.
- **GraphQL Query: bitbucketServerRepositories**: Searches repositories using an unsaved Bitbucket Server connection configuration.
- **GraphQL Query: bitbucketServerRepositoryQueryPreview**: Previews one Bitbucket Server repository query using an unsaved connection configuration.
- **GraphQL Query: changeRequest**: EXPERIMENTAL: Looks up a synchronized code-host change request by ID.
- **GraphQL Query: changeRequests**: EXPERIMENTAL: Lists synchronized code-host change requests, newest first by creation time on the code host.
- **GraphQL Query: checkQuota**: Reports on whether or not the caller has enough quota remaining to use the feature specified by the given SKU.
- **GraphQL Query: clientConfiguration**: The configuration for clients.
- **GraphQL Query: codeHosts**: List of all configured code hosts on this instance.
- **GraphQL Query: codeIntelligenceConfigurationPolicies**: Returns code intelligence configuration policies for precise and syntactic indexing that control data retention and (if enabled) precise auto-indexing behavior.
- **GraphQL Query: codeIntelligenceInferenceScript**: Return the currently set auto-indexing job inference script.
- **GraphQL Query: codeIntelSummary**: Provides a summary of code intelligence on the instance.
- **GraphQL Query: compute**: Computes valus from search results.
- **GraphQL Query: consentDetails**: Get consent details for a consent flow ID from the authorization flow.
- **GraphQL Query: contributorRepositories**: Find repositories where a specific contributor has made commits.
- **GraphQL Query: currentUser**: The current user.
- **GraphQL Query: deepSearchQuotaUsage**: Returns the current Deep Search quota usage for the authenticated user.
- **GraphQL Query: defaultSearchContext**: Gets the default search context for the current user.
- **GraphQL Query: deviceAuthorizationByUserCode**: Get device authorization details by user code for the authorization flow.
- **GraphQL Query: dockerRegistryCredentials**: Lists the container registries configured in a DOCKER_AUTH_CONFIG executor secret.
- **GraphQL Query: enterpriseLicenseHasFeature**: Checks whether the given feature is enabled on Sourcegraph.
- **GraphQL Query: entitlement**: Returns an entitlement by its ID.
- **GraphQL Query: entitlements**: Returns all entitlements in a paginated format.
- **GraphQL Query: evaluateFeatureFlag**: Evaluates a feature flag for the current user Returns null if feature flag does not exist
- **GraphQL Query: evaluateFeatureFlags**: Evaluates multiple feature flags for the current user.
- **GraphQL Query: executors**: Retrieve active executor compute instances.
- **GraphQL Query: executorSecrets**: The list of all globally available executor secrets.
- **GraphQL Query: externalAPI**: External API queries for managing and introspecting external API services.
- **GraphQL Query: externalServiceNamespaces**: Lists all namespaces for a given external service connection.
- **GraphQL Query: externalServiceRepositories**: Lists all repositories for a given external service connection.
- **GraphQL Query: externalServices**: Lists external services under given namespace.
- **GraphQL Query: externalTLSConfiguration**: Returns the current external TLS configuration with parsed certificate metadata.
- **GraphQL Query: featureFlag**: Retrieve a feature flag
- **GraphQL Query: featureFlags**: Retrieve the list of defined feature flags
- **GraphQL Query: gitHubAppByAppID**: Looks up a GitHub App by its AppID and BaseURL.
- **GraphQL Query: gitHubApps**: All configured GitHub Apps, optionally filtered by the domain in which they are used.
- **GraphQL Query: githubRepositoryQueryPreview**: Previews repositories matching a GitHub advanced repository query using an unsaved connection.
- **GraphQL Query: gitLabProjectQueryPreview**: Previews projects matching a relative GitLab project query using an unsaved connection.
- **GraphQL Query: gitservers**: Returns information pertaining to all gitserver instances associated with this Sourcegraph instance.
- **GraphQL Query: hasExecutorForQueue**: Whether an executor has ever declared the exact queue.
- **GraphQL Query: hasExecutorVersionAtLeast**: Whether an active executor meets the minimum version.
- **GraphQL Query: highlightCode**: EXPERIMENTAL: Syntax highlights a code string.
- **GraphQL Query: idpClients**: Returns the list of IdP clients that exist in the system.
- **GraphQL Query: idpScopes**: The list of known IdP scopes.
- **GraphQL Query: indexedSearchInstances**: Returns information pertaining to all indexed search instances associated with this Sourcegraph instance.
- **GraphQL Query: indexerKeys**: A list of unique indexer keys queryable via the `preciseIndexes.indexerKey` filter.
- **GraphQL Query: inferAutoIndexJobsForRepo**: Return (but do not enqueue) descriptions of auto indexing jobs at the current revision.
- **GraphQL Query: inference**: Inference provider and model-routing configuration.
- **GraphQL Query: insightAdminBackfillQueue**: Fetch information related to the queue of backfilling insights.
- **GraphQL Query: insightsDashboards**: Return dashboards visible to the authenticated user.
- **GraphQL Query: insightSeriesQueryStatus**: Retrieve information about queued insights series and their breakout by status.
- **GraphQL Query: insightViewDebug**: Retrieve information about an insight view and its status.
- **GraphQL Query: insightViews**: Return all insight views visible to the authenticated user.
- **GraphQL Query: instanceSettingsConfiguration**: Returns the current instance settings configuration (external URL, CORS origins, branding, HTML injection).
- **GraphQL Query: inventoryStatsPreview**: Generate an ephemeral set of time series for a repository statistics insight, generally for the purposes of live preview.
- **GraphQL Query: invitationByToken**: EXPERIMENTAL: Get invitation based on the JWT in the invitation URL
- **GraphQL Query: isSearchContextAvailable**: Determines whether the search context is within the set of search contexts available to the current user.
- **GraphQL Query: managedIndexingSettings**: Returns the current managed indexing settings for the Sourcegraph instance.
- **GraphQL Query: mcpConfig**: Configuration for MCP (Model Context Protocol) integration.
- **GraphQL Query: namespace**: Look up a namespace by ID.
- **GraphQL Query: namespaceByName**: Look up a namespace by name, which is a username or organization name.
- **GraphQL Query: node**: Looks up a node by ID.
- **GraphQL Query: notebookExports**: List of notebooks exported as markdown.
- **GraphQL Query: organization**: Looks up an organization by name.
- **GraphQL Query: organizationFeatureFlagOverrides**: Retrieve all organization feature flag overrides for the current user
- **GraphQL Query: organizationFeatureFlagValue**: Retrieve the value of a feature flag for the organization
- **GraphQL Query: organizations**: List all organizations.
- **GraphQL Query: outboundRequests**: Get a log of the latest outbound external requests.
- **GraphQL Query: outboundWebhookEventTypes**: Returns all possible outbound webhook event types.
- **GraphQL Query: outboundWebhooks**: Returns the outbound webhooks registered within Sourcegraph, optionally filtered by event type and scope.
- **GraphQL Query: outOfBandMigrations**: Retrieve all registered out-of-band migrations.
- **GraphQL Query: parseSearchQuery**: EXPERIMENTAL: Return the parse tree of a search query.
- **GraphQL Query: permissions**: This returns all permissions in a paginated format.
- **GraphQL Query: permissionsSyncingStats**: Returns various permissions syncing statistics.
- **GraphQL Query: permissionsSyncJobs**: Returns a list of recent permissions sync jobs for a given set of parameters.
- **GraphQL Query: phabricatorRepo**: Looks up a Phabricator repository by name.
- **GraphQL Query: preciseIndexes**: Query precise code intelligence indexes.
- **GraphQL Query: previewLicenseKey**: Validates a license key and returns information about it without applying it.
- **GraphQL Query: previewRepositoriesFromQuery**: Returns the number of repositories matched given a valid query.
- **GraphQL Query: previewRepositoryFilter**: The set of repositories that match the given glob pattern.
- **GraphQL Query: prompts**: List of prompts, which are templates for chat prompts that can be shared and reused.
- **GraphQL Query: promptTags**: List of prompt tags, which can be applied to prompts.
- **GraphQL Query: renderMarkdown**: Renders Markdown to HTML.
- **GraphQL Query: repoMeta**: Repository key-value pair metadata
- **GraphQL Query: repositories**: List all repositories.
- **GraphQL Query: repository**: Looks up a repository by either name or cloneURL.
- **GraphQL Query: repositoryFetchJobs**: Repository fetch jobs, newest first.
- **GraphQL Query: repositoryRedirect**: Looks up a repository by either name or cloneURL or hashedName.
- **GraphQL Query: repositoryStats**: FOR INTERNAL USE ONLY: Query repository statistics for the site.
- **GraphQL Query: roles**: Roles returns all the roles in the database that matches the arguments.
- **GraphQL Query: savedSearches**: List of saved searches.
- **GraphQL Query: search**: Runs a search.
- **GraphQL Query: searchContextBySpec**: Fetch search context by spec (global, @username, @username/ctx, etc.).
- **GraphQL Query: searchContexts**: All available user-defined search contexts.
- **GraphQL Query: searchContextsByIDs**: Fetch search contexts by their stable database IDs.
- **GraphQL Query: searchInsightLivePreview**: Generate an ephemeral time series for a Search based code insight, generally for the purposes of live preview.
- **GraphQL Query: searchInsightPreview**: Generate an ephemeral set of time series for a code insight, generally for the purposes of live preview.
- **GraphQL Query: searchQueryAggregate**: Returns information about aggregating the potential results of a search query.
- **GraphQL Query: settingsSubject**: Looks up an instance of a type that implements SettingsSubject (i.e., something that has settings).
- **GraphQL Query: site**: The current site.
- **GraphQL Query: slackConfigurations**: All configured Slack bot integrations.
- **GraphQL Query: slowRequests**: List slow GraphQL requests that were recently captured (requires site-admin permissions).
- **GraphQL Query: snippetAttribution**: EXPERIMENTAL: Searches the instances indexed code for code matching snippet.
- **GraphQL Query: statusMessages**: FOR INTERNAL USE ONLY: Lists all status messages
- **GraphQL Query: surveyResponses**: Retrieve responses to surveys.
- **GraphQL Query: telemetry**: Telemetry queries for "Event Logging Everywhere", aka a version 2 of existing event-logging/event-recording APIs.
- **GraphQL Query: temporarySettings**: Retrieves the temporary settings for the current user.
- **GraphQL Query: urlMentionContext**: EXPERIMENTAL: Fetches the relevant context for a mentioned URL
- **GraphQL Query: usagesForSymbol**: Identify usages for either a semantic symbol, or the symbol(s) implied by a source range.
- **GraphQL Query: user**: Looks up a user by username or email address.
- **GraphQL Query: userFeatureFlagOverrides**: Retrieve all feature flag overrides set directly on the current user (not via any organization).
- **GraphQL Query: userPasswordResetURL**: Returns the user's active password reset URL, or null if no unexpired reset URL exists.
- **GraphQL Query: users**: List all users.
- **GraphQL Query: usersWithPendingPermissions**: Returns a list of usernames or emails that have associated pending permissions.
- **GraphQL Query: validateScopedInsightQuery**: Validates a query for determining insight scope and returns the number of repositories it matches for the caller.
- **GraphQL Query: viewer**: The current user (if authenticated), or an unauthenticated visitor.
- **GraphQL Query: viewerCanChangeLibraryItemVisibilityToPublic**: Whether the viewer can change the visibility of a library item (such as a saved search or prompt) to public.
- **GraphQL Query: viewerSettings**: The settings for the viewer.
- **GraphQL Query: webhookLogRetentionInMilliseconds**: The effective retention period for incoming webhook event logs, in milliseconds.
- **GraphQL Query: webhookLogs**: Returns recently received webhooks across all external services, optionally limiting the returned values to only those that didn't match any external service.
- **GraphQL Query: webhooks**: Lists webhooks.
- **Stream Search**: Run a Sourcegraph code search and consume results as a server-sent event stream.

Connect Sourcegraph in General Input: https://www.generalinput.com/apps/sourcegraph