Endpoint
Authentication
Requires:- Valid Clerk session token
- GitHub OAuth connection via Clerk
- Pro plan subscription
Request Body
The full GitHub repository URL (e.g.,
https://github.com/owner/repo).Supports both HTTPS and SSH URLs. The .git extension is optional.Response
Indicates whether the import was successfully initiated.
The Convex ID of the created project.
The Inngest event ID for tracking the background import job.
Request Example
Response Example
Import Process
The import happens asynchronously in the background:File processing
Files are imported:
- Text files: Content stored in database
- Binary files: Stored in Convex file storage
Monitoring Import Status
Query the project to check import status:Error Handling
Pro plan required
Pro plan required
GitHub import is a Pro feature. Upgrade your plan in the Polaris settings.
GitHub not connected
GitHub not connected
Reconnect your GitHub account in Clerk settings. The OAuth token may have expired.
Invalid GitHub URL
Invalid GitHub URL
Ensure the URL is in the format
https://github.com/owner/repo or [email protected]:owner/repo.git.Private repository access denied
Private repository access denied
Verify your GitHub OAuth token has access to the repository. You may need to grant additional permissions in GitHub settings.