GET
/
api
/
v1
/
secret-syncs
/
github
/
sync-name
/
{syncName}
curl --request GET \
  --url https://us.infisical.com/api/v1/secret-syncs/github/sync-name/{syncName}
{
  "secretSync": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "isAutoSyncEnabled": true,
    "version": 1,
    "projectId": "<string>",
    "folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "syncStatus": "<string>",
    "lastSyncJobId": "<string>",
    "lastSyncMessage": "<string>",
    "lastSyncedAt": "2023-11-07T05:31:56Z",
    "importStatus": "<string>",
    "lastImportJobId": "<string>",
    "lastImportMessage": "<string>",
    "lastImportedAt": "2023-11-07T05:31:56Z",
    "removeStatus": "<string>",
    "lastRemoveJobId": "<string>",
    "lastRemoveMessage": "<string>",
    "lastRemovedAt": "2023-11-07T05:31:56Z",
    "syncOptions": {
      "initialSyncBehavior": "overwrite-destination"
    },
    "connection": {
      "app": "github",
      "name": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "environment": {
      "slug": "<string>",
      "name": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "folder": {
      "id": "<string>",
      "path": "<string>"
    },
    "destination": "github",
    "destinationConfig": {
      "scope": "organization",
      "org": "<string>",
      "visibility": "all",
      "selectedRepositoryIds": [
        123
      ]
    }
  }
}

Path Parameters

syncName
string
required

The name of the GitHub Sync to retrieve.

Minimum length: 1

Query Parameters

projectId
string
required

The ID of the project the GitHub Sync is associated with.

Minimum length: 1

Response

200
application/json
Default Response
secretSync
object
required

Was this page helpful?