OriginService

GET /v1/origin/repos/{ownerSlug}/{repoName}

Returns a single repo by its (owner_id, name) identifier.

Request

  • Base URL
    https://api.cursor.com
  • Auth
    HTTP bearer

Path parameters

ownerSlugstring required

Owning entity's unique slug.

repoNamestring required

Repo name, unique to the owner entity.

Response

OK

idstring
namestring required

The repo name, unique to its owner. Required on create.

fullNamestring

"{owner.login}/{name}". Derived.

defaultBranchstring

Default branch name. Always set on responses. On create, omitting this field or leaving it empty defaults to "main".

createdAtstring date-time
updatedAtstring date-time
pushedAtstring date-time

Most-recent-push timestamp on any branch; absent until the first push.

cloneUrlstring

HTTPS URL for cloning the repository.

visibility'internal' | 'private'

Repository visibility, internal or private.

allowMergeCommitboolean

Whether pull requests may land as merge commits.

allowSquashMergeboolean

Whether pull requests may land as squash merges.

deleteBranchOnMergeboolean

Whether the head branch is deleted automatically on merge.

webUrlstring

Web URL for this repository on Cursor.

Changes

No recorded changes to this operation across all 1 revision of this API.