---
title: "Import selected context from a public GitHub repository"
method: POST
path: "/api/app-context"
---

# Import selected context from a public GitHub repository

`POST /api/app-context`

## Request

- Base URL: `https://collectsea.com`
- URL: `https://collectsea.com/api/app-context`
- Auth: none declared

Reads a bounded selection of docs, config and source at one revision. Returns files for inspection and submission to /api/analyze. Never executes code. Limited to 6 imports per minute per IP; GitHub quotas also apply.

## Request body

- object
  - `repository_url` string, uri, required

## Response `200`

Selected text files, repository URL, pinned revision and import notices

- object

## Other responses

- `400`: Invalid repository home URL
- `404`: Private or unavailable repository
- `413`: Repository context too large
- `429`: Import or GitHub rate limit
- `502`: GitHub unavailable or import timed out

---

[API](https://skmtc.dev/collectsea/apis/collectsea-api.md) · [All operations](https://skmtc.dev/collectsea/apis/collectsea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/collectsea/apis/collectsea-api/revisions/58878bb2ba05?raw)
