Skip to main content
POST
/
org-script-repos
/
current
/
sync
Sync org script repo
curl --request POST \
  --url https://app.usechar.ai/api/org-script-repos/current/sync \
  --header 'Authorization: Bearer <token>'
{
  "success": "<unknown>",
  "github_repo": "<string>",
  "latest_sha": "<string>",
  "synced_at": 123
}

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

success
any
required
github_repo
string
required
latest_sha
string
required
synced_at
number
required