Skip to main content
GET
/
api
/
v1
/
repositories
/
{repo_id}
/
context
Single-call context bundle for AI coding agents.
curl --request GET \
  --url https://api.example.com/api/v1/repositories/{repo_id}/context \
  --header 'X-API-Key: <api-key>'
{
  "artifacts": [
    {
      "artifact_type": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "version": "<string>"
    }
  ],
  "dependencies": [
    {
      "confidence": 123,
      "dependency_type": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "raw_reference": "<string>",
      "resolved": true,
      "source_file": "<string>",
      "source_line": 123,
      "version_constraint": "<string>",
      "target_artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "target_repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "target_repository_name": "<string>"
    }
  ],
  "dependencies_total": 123,
  "dependents": [
    {
      "confidence": 123,
      "dependency_type": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "raw_reference": "<string>",
      "resolved": true,
      "source_file": "<string>",
      "source_line": 123,
      "version_constraint": "<string>",
      "target_artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "target_repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "target_repository_name": "<string>"
    }
  ],
  "dependents_total": 123,
  "repository": {
    "archived": true,
    "clone_url": "<string>",
    "connected_org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "default_branch": "<string>",
    "full_path": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "last_activity_at": "2023-11-07T05:31:56Z",
    "last_commit_sha": "<string>",
    "last_scanned_at": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "platform_id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.riftmap.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Headers

X-Workspace-Id
string | null

Path Parameters

repo_id
string<uuid>
required

Cookies

riftmap_access
string | null

Response

Successful Response

Single-call context bundle for AI coding agents.

Combines the repo row (with freshness fields), capped lists of direct dependents + dependencies, and the artifacts this repo produces. For full pagination of dependents/dependencies use the dedicated endpoints; for transitive blast radius use /repositories/{id}/impact.

artifacts
RepositoryContextArtifact · object[]
required
dependencies
DependencyInfo · object[]
required
dependencies_total
integer
required
dependents
DependencyInfo · object[]
required
dependents_total
integer
required
repository
RepositoryResponse · object
required

Basic repository record.