Synchronize the connected GitHub plugin for Security Agents
POST
/v1/github/security/oauth/syncValidates 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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Computer-Agents-Organization | header | string | No | Active 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
| Field | Type | Required | Description |
|---|---|---|---|
| installation | object | Yes | — |
| installation.id | string | No | Unique identifier. |
| installation.githubInstallationId | string | No | — |
| installation.accountId | string | No | — |
| installation.accountLogin | string | No | — |
| installation.accountType | string | No | — |
| installation.targetType | string | No | — |
| installation.repositorySelection | string | No | — |
| installation.permissions | object | No | — |
| installation.events | string[] | No | — |
| installation.status | active | suspended | uninstalled | No | Current lifecycle status. |
| installation.suspendedAt | string | No | — |
| installation.repositoryCount | integer | No | — |
| installation.createdAt | string | No | ISO 8601 timestamp. |
| installation.updatedAt | string | No | ISO 8601 timestamp. |
| repositories | object[] | Yes | — |
| repositories[].id | string | No | Unique identifier. |
| repositories[].installationId | string | No | — |
| repositories[].githubRepositoryId | string | No | — |
| repositories[].nodeId | string | No | — |
| repositories[].fullName | string | No | — |
| repositories[].ownerLogin | string | No | — |
| repositories[].name | string | No | Human-readable name. |
| repositories[].defaultBranch | string | No | — |
| repositories[].private | boolean | No | — |
| repositories[].archived | boolean | No | — |
| repositories[].disabled | boolean | No | — |
| repositories[].monitored | boolean | No | — |
| repositories[].securityRepositoryId | string | No | — |
| repositories[].syncedAt | string | No | — |
| repositories[].updatedAt | string | No | ISO 8601 timestamp. |
Synchronize the connected GitHub plugin for Security Agents
Loading...
Response 200
Loading...