Skip to main content
Import a Git repository (by URL and branch); it is cloned and parsed in the background into symbols and call/reference edges, building the code graph.

Endpoint

Authentication

Authorization: Bearer <jwt> or X-API-Key <sk_...>. Minimum role: contributor.

Path parameters

string
required
Workspace id.

Request body

string
required
Repository Git URL.
string
Branch to parse; defaults to the default branch when omitted.

Response

string
Repo id (repo_...).
string
Owning workspace id.
string
Importer user id.
string
Repository URL.
string
Branch.
string
Status (cloning / indexing / ready / failed).
string
Visibility.
string
Error message when failed.
string
Creation time (RFC3339).
string
Update time (RFC3339).

Example