Synchronize the connected GitHub plugin for Security Agents

POST/v1/github/security/oauth/sync

Validates the current user's centralized GitHub OAuth connection and imports its repository inventory into the active organization. Requires an organization owner or administrator and github:manage.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
None.
Query parameters
None.
Header parameters
NameLocationTypeRequiredDescription
X-Computer-Agents-OrganizationheaderstringNoActive organization context. If omitted, the authenticated user's personal organization is used.

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Synchronized GitHub connection and repositoriesapplication/json
FieldTypeRequiredDescription
installationobjectYes
installation.idstringNoUnique identifier.
installation.githubInstallationIdstringNo
installation.accountIdstringNo
installation.accountLoginstringNo
installation.accountTypestringNo
installation.targetTypestringNo
installation.repositorySelectionstringNo
installation.permissionsobjectNo
installation.eventsstring[]No
installation.statusactive | suspended | uninstalledNoCurrent lifecycle status.
installation.suspendedAtstringNo
installation.repositoryCountintegerNo
installation.createdAtstringNoISO 8601 timestamp.
installation.updatedAtstringNoISO 8601 timestamp.
repositoriesobject[]Yes
repositories[].idstringNoUnique identifier.
repositories[].installationIdstringNo
repositories[].githubRepositoryIdstringNo
repositories[].nodeIdstringNo
repositories[].fullNamestringNo
repositories[].ownerLoginstringNo
repositories[].namestringNoHuman-readable name.
repositories[].defaultBranchstringNo
repositories[].privatebooleanNo
repositories[].archivedbooleanNo
repositories[].disabledbooleanNo
repositories[].monitoredbooleanNo
repositories[].securityRepositoryIdstringNo
repositories[].syncedAtstringNo
repositories[].updatedAtstringNoISO 8601 timestamp.
Synchronize the connected GitHub plugin for Security Agents
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow