Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
2 Grattan Court East, Dublin, D02 VX86, Ireland
Switch to light modeSwitch to dark mode
APIs / Developer Tools / Google / Cloud Source Repositories API
Cloud Source Repositories API logo

Google Cloud Source Repositories API

Browse all Google APIs
40
AI ReadinessFoundational (D-)40/100
See full scorecard
Official vendor OpenAPI document · agent-readyDeveloper ToolsSource Controloauth211 EndpointsREST

For Agents

Create, list, and delete private Git repositories in Google Cloud, and manage their IAM policies. Suited for agents provisioning developer infrastructure inside a GCP project.

Use for: I want to create a new private Git repo for my GCP project, List all source repositories in a project, Delete a Cloud Source Repository that is no longer needed, Grant a teammate write access to a Cloud Source Repository

Not supported: Does not handle pull requests, code review, issue tracking, or in-browser code editing - use for managing private Git repositories and their IAM in GCP only.

The Cloud Source Repositories API manages private Git repositories hosted in a Google Cloud project. It provides operations to create and delete repos, list the repos within a project, mirror an existing GitHub or Bitbucket repository, and manage IAM policies that govern who can push, pull, or administer each repository. The API also exposes project-level Pub/Sub mirroring configuration, useful when triggering CI builds from repository activity.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the Cloud Source Repositories API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Cloud Source Repositories API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgoogleapis.com%2Fsourcerepo" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgoogleapis.com%2Fsourcerepo" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with Cloud Source Repositories API.

Create a new private Git repository under a Google Cloud project

List every repository in a project, paged for large org accounts

Delete a repository when a project is decommissioned

Configure project-level Pub/Sub topic mirroring of repository events

Mirror an external GitHub or Bitbucket repository into Cloud Source Repositories

Set, get, and test IAM policies that control push, pull, and admin access on a repo

Use Cases

Patterns agents use Cloud Source Repositories API for, with concrete tasks.

★ Project Bootstrap Automation

When a new GCP project is provisioned for a team, an automation creates a default Cloud Source Repository, applies an IAM policy granting the team's group push access, and configures Pub/Sub mirroring so Cloud Build can react to commits. The Cloud Source Repositories API exposes each of these steps as a discrete call, so the bootstrap script completes in under a minute.

Create repo projects/myproj/repos/app, then setIamPolicy granting roles/source.writer to group:devs@example.com, then configure projectConfig with the build-events Pub/Sub topic.

GitHub Mirror for Compliance

Mirror business-critical GitHub repositories into Cloud Source Repositories so that audit logs and IAM controls live alongside other GCP resources. Calling repos.create with a mirrorConfig block establishes the one-way mirror; subsequent IAM and listing operations make the mirrored repo discoverable inside the project.

Call POST /v1/projects/myproj/repos with mirrorConfig.url=https://github.com/org/repo and a deployKeyId.

Access Review Reporting

An access-review job iterates every repository in each project, fetches its IAM policy, and produces a report listing who has roles/source.writer or roles/source.admin. This supports periodic audits required by SOC 2 controls. The repos.list and getIamPolicy endpoints are paginated and IAM-scoped, so the report can run unattended.

List all repos in projects/myproj, then for each call getIamPolicy and emit a row per binding.

AI Agent Repo Provisioning

An AI agent assigned to set up a new microservice asks Jentic for the operation that creates a Google source repository, loads the schema, then creates the repo and grants the requesting team push access - all without human intervention. Jentic handles the OAuth credential exchange so the agent never sees the underlying token.

Search Jentic for 'create a Google Cloud source repository', execute repos.create with the project parent, then setIamPolicy adding the new service team.

Key Endpoints

11 endpoints — the cloud source repositories api manages private git repositories hosted in a google cloud project.

METHOD

PATH

DESCRIPTION

POST

/v1/{+parent}/repos

Create a new repository in a project

GET

/v1/{+parent}/repos

List repositories in a project

GET

/v1/{+name}

Get a single repository or project resource

POST

/v1/{+name}:sync

Synchronise a mirrored repository

POST

/v1/{+resource}:setIamPolicy

Set the IAM policy on a repository

POST

/v1/{+resource}:getIamPolicy

Get the IAM policy on a repository

POST

/v1/{+resource}:testIamPermissions

Test which permissions the caller holds on a repository

POST

/v1/{+parent}/repos

Create a new repository in a project

GET

/v1/{+parent}/repos

List repositories in a project

GET

/v1/{+name}

Get a single repository or project resource

POST

/v1/{+name}:sync

Synchronise a mirrored repository

POST

/v1/{+resource}:setIamPolicy

Set the IAM policy on a repository

POST

/v1/{+resource}:getIamPolicy

Get the IAM policy on a repository

POST

/v1/{+resource}:testIamPermissions

Test which permissions the caller holds on a repository

Jentic AI Readiness Score

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

C

Cloud Source Repositories API

- Foundational (D-)
40/100
64
Foundational Compliance
56
Developer Experience & Jentic Compatibility
18
AI-Readiness & Agent Experience
94
Agent Usability
63
Security
61
AI Discoverability
Powered by JenticScoring Framework 1.0.0 | Scoring Engine 0.4.0
Show dimension breakdown
64

Foundational Compliance

Base layer of spec validity and structural soundness.

Grade: BSignals: 4
80%

Lint Results

Aggregated quality score from linter diagnostics, weighted by severity.

100%

Resolution Completeness

Percentage of `$ref` references that resolve successfully.

0%

Specification Validity

Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).

75%

Structural Integrity

Structural correctness score based on schema issues using logarithmic dampening.

56

Developer Experience & Jentic Compatibility

Clarity, completeness, and ingestion readiness for developers and tooling.

Grade: CSignals: 4
0%

Example Density

How richly the API is illustrated with examples.

100%

Example Validity

Percentage of examples that conform to their schemas.

25%

Response Coverage

Percentage of operations with complete response definitions (success, client error, server error).

100%

Tooling Readiness

Health of API ingestion, bundling, and resolution within Jentic pipelines.

18

AI-Readiness & Agent Experience

Semantic breadth, depth, and agent comprehension for AI systems.

Grade: FSignals: 4
72%

Description Coverage

Coverage of descriptions across API elements.

0%

Error Standardization

Coverage of RFC 9457 Problem Details for error responses.

0%

OperationId Quality

Coverage, uniqueness, and casing consistency of operationIds for AI inference.

0%

Summary Coverage

Coverage of summaries across operations/tags/info.

94

Agent Usability

Functional utility, complexity comfort, and AI orchestration readiness.

Grade: A+Signals: 1
94%

Complexity Comfort

Agent comfort level based on API operational and structural complexity.

63

Security

Trust, risk posture, and security compliance.

Grade: B-Signals: 1
62%

Authentication Strength

Average quality of security schemes based on authentication method strength (weakest link for OAuth2).

61

AI Discoverability

Findability, semantic richness, and reasoning readiness.

Grade: B-Signals: 1
61%

Descriptive Richness

Clarity and depth of descriptions across API elements.

View full reportHow the score is calculatedMore about the dimensions

Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

Score your own APIScoring CLI agent skill
npx @jentic/api-scorecard-cli score <openapi-url>

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Wiring the Cloud Source Repositories API by hand means configuring a service account, minting OAuth access tokens against sourcerepo.googleapis.com, and refreshing them yourself. Through Jentic you install once, import the Cloud Source Repositories API from the API Directory, store the OAuth credential once, and your agent calls it.

Permission scoping

Cloud Source Repositories puts the repo in the URL path (/v1/{name}, /v1/{resource}:setIamPolicy), so a rule can pin your agent to one repository: it can create, read, and sync that repo and nothing else. You choose the operations it may call, so setIamPolicy is not included unless you add it.

Credential isolation

Your Cloud Source Repositories OAuth credential is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Agents search Jentic by intent such as 'create a Cloud Source repository' or 'set IAM policy on a Git repo', and Jentic returns the matching Cloud Source Repositories operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

GitHub REST API

→

GitHub hosts repositories on its own platform with richer collaboration features; Cloud Source Repositories keeps repos inside a GCP project.

Choose GitHub when developer collaboration, pull requests, and reviews are the priority. Choose Cloud Source Repositories when the repository must live inside the customer's GCP project and inherit GCP IAM.

Complementary

Cloud Build API

→

Cloud Build runs CI/CD pipelines triggered by commits in Cloud Source Repositories.

Use Cloud Build when you need to compile, test, or deploy code that lives in a Cloud Source Repository - it integrates natively via build triggers.

Complementary

Google IAM API

→

IAM defines the roles and policies that Cloud Source Repositories enforces on each repo.

Use IAM directly when you are managing project-wide role grants. Use the per-repo setIamPolicy on Cloud Source Repositories for repo-scoped access decisions.

FAQs

Specific to using Cloud Source Repositories API through Jentic.

What authentication does the Cloud Source Repositories API use?

The Cloud Source Repositories API uses OAuth 2.0 with the cloud-platform or source.read_write scopes. Through Jentic, OAuth credentials are stored in your Jentic One instance and exchanged for short-lived access tokens, so service-account keys never enter the agent context.

Can I mirror a GitHub repository into Cloud Source Repositories?

Yes. Pass a mirrorConfig block when calling POST /v1/projects/{project}/repos that specifies the source URL plus a deployKeyId and webhookId. Cloud Source Repositories then maintains a one-way mirror of the upstream GitHub or Bitbucket repository.

What are the rate limits for the Cloud Source Repositories API?

Quotas are set at the Google Cloud project level - typically a few hundred read or write requests per minute, with stricter limits on repo creation. Quotas can be inspected and adjusted in the Google Cloud Console under IAM and admin > Quotas.

How do I provision a new repo with IAM bindings through Jentic?

Search Jentic for 'create a Google Cloud source repository', execute the repos.create operation against POST /v1/{+parent}/repos, then call POST /v1/{+resource}:setIamPolicy on the new repo resource with the desired role bindings. Jentic returns the schemas for both calls so the agent can chain them in a single workflow.

Is the Cloud Source Repositories API free?

Cloud Source Repositories includes a free tier of up to 5 project users and 50 GB storage. Beyond that, Google charges per active user per month and per GB of storage. The API itself has no separate per-call charge.

Can I check if a service account can push to a repo before attempting?

Yes. POST /v1/{+resource}:testIamPermissions accepts a list of permissions like source.repos.update or source.repos.create and returns which of those the calling identity holds, which lets agents decide whether to attempt the operation or escalate.

Can I limit what my agent is allowed to do with the Cloud Source Repositories API?

Yes. Because you run Jentic One yourself, your own rules decide which operations and credentials the agent may use. Since Cloud Source Repositories puts the repository in the URL path, such as /v1/{name} and /v1/{resource}:setIamPolicy, you can pin the agent to a single repo and allow only the calls it needs, for example creating, reading, and syncing that repo. Operations like setIamPolicy stay off limits unless you explicitly add them, so the agent cannot change access controls on its own.

GET STARTED

Start building with Cloud Source Repositories API

Explore with Jentic One
View OpenAPI Document