---
title: "Get Repository"
method: GET
path: "/v1/repositories/{repositoryId}"
tags: ["Repositories"]
---

# Get Repository

`GET /v1/repositories/{repositoryId}`

## Request

- Base URL: `https://api.lucid.co`
- URL: `https://api.lucid.co/v1/repositories/{repositoryId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://lucid.app/oauth2/authorize`
    - Token URL: `https://api.lucid.co/oauth2/token` scopes: `repository:readonly`
- TypeScript: <https://skmtc.dev/lucid/apis/lucid-rest-api/docs/v1/repositories/:repositoryId/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves basic information for the requested repository, provided the user has at least read-only access.

## Path parameters

- `repositoryId` string, required: Unique identifier for a repository folder, prefixed with `repo_`

## Response `200`

OK. Returns the repository object.

- RepositoryObject
  - `repositoryId` string: Unique identifier for a repository folder, prefixed with `repo_`
  - `name` string: Display name of the repository
  - `accessType` 'UNRESTRICTED' | 'RESTRICTED': Determines repository visibility. UNRESTRICTED repositories are visible to all users on the account, RESTRICTED are visible to specific authorized groups and individuals.
  - `created` string, date-time: The date and time the repository was created

## Other responses

- `403`: Forbidden. Occurs when the user does not have access to the repository.

---

[API](https://skmtc.dev/lucid/apis/lucid-rest-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-rest-api/revisions/9c2c917ec59c?raw)
