---
title: "getOrgRepo"
---

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

# getOrgRepo

Path: Forge API › repos

`GET /orgs/{org_id}/repos/{repo_slug}`

Read the org's repo by its slug, its address in the org, such as acme-standards. A repo the caller can't read is not found.

## Path parameters

- `org_id` (`getOrgRepo.path.org_id`; string, required)
  - pattern: `^org_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `repo_slug` (`getOrgRepo.path.repo_slug`; string, required)
  - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/orgs/<org_id>/repos/<repo_slug>'
```

### TypeScript

```typescript
const url = '<base-url>/orgs/<org_id>/repos/<repo_slug>';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/orgs/<org_id>/repos/<repo_slug>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Repo

#### Example

```json
{
  "id": "string",
  "org_id": "string",
  "name": "string",
  "description": "string",
  "slug": "string",
  "creator_id": "string",
  "archived_at": "string",
  "archived_by_id": "string"
}
```

- `id` (`getOrgRepo.response.200.id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `org_id` (`getOrgRepo.response.200.org_id`; string, required)
  - pattern: `^org_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `name` (`getOrgRepo.response.200.name`; string, required)
  - minLength: `1`
- `description` (`getOrgRepo.response.200.description`; any of, required)
  - any of the following: `string`, `null`
- `slug` (`getOrgRepo.response.200.slug`; string, required)
  - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
- `creator_id` (`getOrgRepo.response.200.creator_id`; string, required)
  - pattern: `^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `archived_at` (`getOrgRepo.response.200.archived_at`; any of, required)
  - any of the following: `string`, `null`
- `archived_by_id` (`getOrgRepo.response.200.archived_by_id`; any of, required)
  - any of the following: `ActorId`, `null`

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`getOrgRepo.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`getOrgRepo.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`getOrgRepo.response.400.issues`; array of object, required)
  - `path` (`getOrgRepo.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`getOrgRepo.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`getOrgRepo.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "ForbiddenOrigin"
}
```

Any of the following:

- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

OrgNotFound | RepoNotFound

#### Example

```json
{
  "_tag": "OrgNotFound"
}
```

Any of the following:

- `OrgNotFoundEncoded`
  - `_tag` (`OrgNotFoundEncoded._tag`; string, required)
    - one of `"OrgNotFound"`
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`getOrgRepo.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

OrgFailure

#### Example

```json
{
  "_tag": "OrgFailure",
  "reason": "string"
}
```

- `_tag` (`getOrgRepo.response.500._tag`; string, required)
  - one of `"OrgFailure"`
- `reason` (`getOrgRepo.response.500.reason`; string, required)

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/get-org-repo/index.md
