Packages
Import a package from a GitHub URL
Import a package (agent, skill, tool, or provider) from a public GitHub repository URL. The URL must point to a directory containing a valid manifest.json. Rate-limited to 10 requests/minute.
POST
/api/packages/import-githubbetter-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Header Parameters
X-Org-Id?string
Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).
Format
uuidRequest Body
application/json
curl -X POST "https://loading/api/packages/import-github" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'{
"packageId": "string",
"type": "string"
}{
"error": "VALIDATION_ERROR",
"message": "string"
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"requestId": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Insufficient permissions",
"code": "forbidden",
"requestId": "req_abc123"
}{
"error": "DRAFT_OVERWRITE",
"message": "string",
"details": {
"packageId": "string",
"draftVersion": "string"
}
}{
"type": "https://docs.appstrate.dev/errors/rate-limited",
"title": "Rate Limited",
"status": 429,
"detail": "Too many requests. Please try again shortly.",
"code": "rate_limited",
"requestId": "req_abc123",
"retryAfter": 30
}