Skip to main content
GET
/
org-script-repos
/
current
Get org script repo connection
curl --request GET \
  --url https://app.usechar.ai/api/org-script-repos/current \
  --header 'Authorization: Bearer <token>'
{
  "repo": {
    "id": 0,
    "org_id": "<string>",
    "github_repo": "<string>",
    "github_installation_id": "<string>",
    "config_path": "<string>",
    "last_synced_sha": "<string>",
    "last_synced_at": 0,
    "created_at": 0,
    "updated_at": 0
  },
  "install_url": "<string>"
}

Authorizations

Authorization
string
header
required

WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.

Response

OK

repo
object
required
install_url
string<uri> | null
required