> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entire.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metadata for one repository

> <Badge color="blue" size="sm" shape="pill">Users</Badge> <Badge color="blue" size="sm" shape="pill">Plugins</Badge>

**Accepted credentials:** User token, Plugin installation token.

Returns one repository's display metadata and its settings flags. Access fields describe the caller: for a plugin installation token, the installation's access. An anonymous caller reads the read tier, with runners_enabled, auto_run_on_push and public_sharing_enabled false and is_provider_admin omitted; trails_enabled is the stored value.

Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here.

Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Separate anonymous exception: with no bearer, X-Anon-Repo naming this repository authorizes the read when the repository is public and anonymous signing is configured. This exception is outside the user/plugin credential labels.



## OpenAPI

````yaml /openapi/generated/git.json get /repos/{repo_id}
openapi: 3.1.0
info:
  description: >-
    Unified Entire API gateway. Aggregates the control plane and regional
    repository-operation services behind a single endpoint.
  title: Entire API
  version: 0.1.0
servers:
  - url: https://aws-us-east-2.api.entire.io/api/v1
security:
  - bearerAuth: []
tags:
  - description: Operations under the /search surface.
    name: search
  - description: Operations under the /semantic-search surface.
    name: semantic-search
  - description: Operations under the /brain surface.
    name: brain
  - description: >-
      The authenticated caller's own cross-repo activity, commits, checkpoints,
      sessions, and recap.
    name: me
    x-group: Your activity
  - description: >-
      Residency-aware previews of the caller's surface, served under
      /experimental. Shapes may change without notice.
    name: experimental
  - description: >-
      Per-user settings: pinned and recent repos, diff view, and saved filter
      tabs.
    name: preferences
  - description: >-
      Repository discovery list, metadata, and headline rollups (summary,
      activity, contributors, agents).
    name: repos
    x-group: Repositories
  - description: >-
      Git browsing for a repo: commits, commit detail, branch compare, tree
      listings, raw file bytes, and branches.
    name: code
  - description: >-
      Checkpoint listing, resolution, LLM analysis, transcripts, and per-repo
      checkpoint status.
    name: checkpoints
    x-group: Checkpoints
  - description: >-
      Materialised sessions: listing, detail, transcripts, rename, and the
      public-share toggle.
    name: sessions
    x-group: Sessions
  - description: >-
      Repo dashboard aggregates under /overview: commit and checkpoint stats,
      contributor breakdowns, and session patterns.
    name: overview
  - description: Live ref-change stream for a repo (SSE).
    name: refs
    x-group: Ref events
  - description: >-
      Trails themselves: list, create, read, update, delete, plus per-repo
      counts, claimed branches, and the body-document ensure.
    name: trails
    x-group: Trails
  - description: >-
      What has happened on a trail: the merged timeline, the event stream, and
      who is watching (per trail, plus a repo-wide roll-up).
    name: trail-activity
    x-group: Activity
  - description: >-
      Conversation on a trail: discussions, their messages, and the live
      discussion-event stream.
    name: trail-discussions
    x-group: Discussions
  - description: >-
      Code review on a trail: review state, comments, diffs, reviewed files, and
      review re-runs.
    name: trail-reviews
    x-group: Reviews
  - description: >-
      Runner output on a trail: the latest result per configured runner, monitor
      results, and manual launches.
    name: trail-runs
  - description: >-
      Quality gates: repo gate definitions, gate settings, repo-authored monitor
      definitions, and a trail's gate evaluation.
    name: trail-gates
    x-group: Gates
  - description: >-
      Getting a trail landed: approval decisions, merge readiness, and the merge
      itself.
    name: trail-approvals
    x-group: Approvals
  - description: >-
      Trail attachment blobs: upload intent, completion, retrieval, and
      deletion.
    name: trail-attachments
  - description: Project-scoped Trails, and their owned repository Changes and discussions.
    name: projects
  - description: Agent-provenance ranking for a repo's code scopes.
    name: experts
    x-group: Experts
  - description: >-
      git-meta-compatible repo metadata read and write (git is the source of
      truth).
    name: git-meta
  - description: >-
      A project's versioned agents — what each runs (its own runner or an Entire
      preset), what it is called, the environment it runs in, the repositories
      it reviews and its trigger — and Entire's presets. Saving one runs
      nothing.
    name: agents
  - description: >-
      A project's saved, versioned Environments — where an agent runs: provider
      and sandbox lifetime — reusable across the project's repositories and
      agents. Configuration only: saving one provisions nothing.
    name: environments
  - description: >-
      Runs of a project's agents, each on one Change: starting one, the
      immutable snapshot each captured, status, output and results, retry and
      cancel.
    name: runs
  - description: >-
      Mutating repo configuration: runner, trail, public-sharing, and
      gate-enforcement settings (requires repo manage_settings for every forge).
    name: repo-settings
  - description: The caller's open pull requests across their repositories.
    name: pull-requests
  - description: 'Service-authed only: editor-document sync behind the trail body editor.'
    name: trails-internal
  - description: The runner OIDC issuer's discovery document and JWKS. Machine-consumed.
    name: runner-issuer
  - name: repositories
    x-group: Git
paths:
  /repos/{repo_id}:
    get:
      tags:
        - repos
      summary: Metadata for one repository
      description: >-
        <Badge color="blue" size="sm" shape="pill">Users</Badge> <Badge
        color="blue" size="sm" shape="pill">Plugins</Badge>


        **Accepted credentials:** User token, Plugin installation token.


        Returns one repository's display metadata and its settings flags. Access
        fields describe the caller: for a plugin installation token, the
        installation's access. An anonymous caller reads the read tier, with
        runners_enabled, auto_run_on_push and public_sharing_enabled false and
        is_provider_admin omitted; trails_enabled is the stored value.


        Use an own-account bearer token (including supported service accounts)
        or a Core-issued plugin installation bearer token, subject to the
        permissions and restrictions below. Plugin assertion JWTs and plugin
        OAuth user-delegation tokens are not accepted here.


        Requires live repository pull permission (contents:read for plugin
        installations). Other authorized automation principals can also use this
        operation. Separate anonymous exception: with no bearer, X-Anon-Repo
        naming this repository authorizes the read when the repository is public
        and anonymous signing is configured. This exception is outside the
        user/plugin credential labels.
      operationId: repoMeta
      parameters:
        - description: 'Repo id: placement ULID or public repo_<group ULID>'
          in: path
          name: repo_id
          required: true
          schema:
            description: 'Repo id: placement ULID or public repo_<group ULID>'
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepoListItem'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Forbidden
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Service Unavailable
      security:
        - oauth2: []
        - oidc: []
        - bearerAuth: []
components:
  schemas:
    RepoListItem:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - /api/v1/schemas/RepoListItem.json
          format: uri
          readOnly: true
          type: string
        activity:
          description: >-
            Default-branch commits per week for the last 52 weeks, oldest first,
            weeks starting Monday UTC. Present only when include has activity.
          items:
            format: int64
            type: integer
          type:
            - array
            - 'null'
        archived:
          description: >-
            Whether the repository is archived on GitHub; false until GitHub
            reports it.
          type: boolean
        auto_run_on_push:
          description: Whether runners start automatically on push.
          type: boolean
        capabilities:
          allOf:
            - description: The caller's rights on the repository.
            - $ref: '#/components/schemas/RepoCapabilities'
        checkpoint_count:
          description: Number of checkpoints recorded for the repository.
          format: int64
          type: integer
        default_branch:
          description: >-
            Default branch name, such as main, without refs/heads/; main when
            unknown.
          type: string
        description:
          description: The repository description; null when none is known.
          type:
            - string
            - 'null'
        full_name:
          description: owner/repo; the repository ID when no name is known.
          type: string
        github_id:
          description: >-
            GitHub's numeric repository ID; 0 when the repository has no current
            GitHub metadata.
          format: int64
          type: integer
        html_url:
          description: The repository's GitHub URL; null when none is known.
          type:
            - string
            - 'null'
        id:
          description: 'The repository''s ID: repo_ followed by a ULID.'
          pattern: ^(repo_)?[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
          type: string
        is_provider_admin:
          description: >-
            Whether the caller is an admin of the repository on GitHub. For
            display only: it grants nothing here. Omitted for repositories not
            mirrored from GitHub and for anonymous callers.
          type: boolean
        language:
          description: Primary language as GitHub reports it; null when unknown.
          type:
            - string
            - 'null'
        name:
          description: The repository name without its owner; null when no name is known.
          type:
            - string
            - 'null'
        open_pr_count:
          description: >-
            Number of open pull requests for a GitHub repository, or open
            changes for a repository hosted on Entire; 0 when none.
          format: int64
          type: integer
        owning_project_id:
          description: Owning project ULID
          type: string
        permission:
          deprecated: true
          description: >-
            Deprecated: use capabilities. The caller's tier: read, write, or
            admin. admin means can_manage_settings and does not imply write.
          type: string
        private:
          description: Whether the repository is private.
          type: boolean
        public_sharing_enabled:
          description: Whether sessions on this repository can be shared by public link.
          type: boolean
        repo_group_id:
          deprecated: true
          description: 'Deprecated: use id. The ULID in id, without its repo_ prefix.'
          type: string
        runners_enabled:
          description: Whether runners are enabled for the repository.
          type: boolean
        stargazers_count:
          description: GitHub star count; 0 when unknown.
          format: int64
          type: integer
        trails_enabled:
          description: Whether trails are enabled for the repository.
          type: boolean
        updated_at:
          description: >-
            Time of the last push; when that is unknown, the time Entire last
            synced the repository.
          format: date-time
          type: string
        viewer_can_see_checkpoint_data:
          description: >-
            Whether the caller can read the repository's checkpoints and
            sessions. A caller who can manage settings but not read data sees
            false.
          type: boolean
      required:
        - owning_project_id
        - id
        - github_id
        - name
        - full_name
        - description
        - html_url
        - stargazers_count
        - language
        - private
        - archived
        - default_branch
        - permission
        - capabilities
        - checkpoint_count
        - viewer_can_see_checkpoint_data
        - runners_enabled
        - trails_enabled
        - auto_run_on_push
        - public_sharing_enabled
        - open_pr_count
      type: object
    ApiError:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - /api/v1/schemas/ApiError.json
          format: uri
          readOnly: true
          type: string
        blocking_trail:
          format: int64
          type: integer
        code:
          type: string
        detail:
          type: string
        error:
          type: string
      required:
        - error
      type: object
    RepoCapabilities:
      additionalProperties: false
      properties:
        can_manage_access:
          description: >-
            Whether the caller can manage who has access to the repository.
            Always false for a repository mirrored from GitHub, whose access
            GitHub controls.
          type: boolean
        can_manage_settings:
          description: Whether the caller can change the repository's settings.
          type: boolean
        data_role:
          description: >-
            The caller's git access: read or write. Independent of
            can_manage_settings.
          type: string
      required:
        - data_role
        - can_manage_settings
        - can_manage_access
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: >-
        Bearer token authorizing this operation's repository action. Each
        operation's security requirement names the resource action the token
        must be authorized for (pull or push).
      scheme: bearer
      type: http
    oauth2:
      description: OAuth 2.0 authorization code flow.
      flows:
        authorizationCode:
          authorizationUrl: https://us.auth.entire.io/authorize
          scopes:
            offline_access: Stay signed in and receive a refresh token.
            openid: Verify your identity.
          tokenUrl: https://us.auth.entire.io/oauth/token
      type: oauth2
    oidc:
      description: >-
        OpenID Connect discovery document:
        https://us.auth.entire.io/.well-known/openid-configuration
      openIdConnectUrl: https://us.auth.entire.io/.well-known/openid-configuration
      type: openIdConnect

````