curl --request POST \
--url https://api.openworklabs.com/v1/connectors/github/setup \
--header 'Content-Type: application/json' \
--data '
{
"installationId": 123,
"connectorInstanceName": "<string>",
"repositoryId": 123,
"repositoryFullName": "<string>",
"branch": "<string>",
"ref": "<string>",
"connectorAccountId": "<string>",
"mappings": [
{
"mappingKind": "path",
"selector": "<string>",
"objectType": "skill",
"pluginId": "<string>",
"autoAddToPlugin": false,
"config": {}
}
]
}
'{
"ok": true,
"item": {
"connectorAccount": {
"id": "<string>",
"organizationId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"externalAccountRef": "<string>",
"displayName": "<string>",
"status": "active",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"metadata": {}
},
"connectorInstance": {
"id": "<string>",
"organizationId": "<string>",
"connectorAccountId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"name": "<string>",
"status": "active",
"instanceConfigJson": {},
"lastSyncedAt": "2023-11-07T05:31:56Z",
"lastSyncStatus": "pending",
"lastSyncCursor": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"connectorTarget": {
"id": "<string>",
"connectorInstanceId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"targetKind": "repository_branch",
"externalTargetRef": "<string>",
"targetConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}Creates a GitHub connector account, instance, target, and initial mappings in one flow.
curl --request POST \
--url https://api.openworklabs.com/v1/connectors/github/setup \
--header 'Content-Type: application/json' \
--data '
{
"installationId": 123,
"connectorInstanceName": "<string>",
"repositoryId": 123,
"repositoryFullName": "<string>",
"branch": "<string>",
"ref": "<string>",
"connectorAccountId": "<string>",
"mappings": [
{
"mappingKind": "path",
"selector": "<string>",
"objectType": "skill",
"pluginId": "<string>",
"autoAddToPlugin": false,
"config": {}
}
]
}
'{
"ok": true,
"item": {
"connectorAccount": {
"id": "<string>",
"organizationId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"externalAccountRef": "<string>",
"displayName": "<string>",
"status": "active",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"metadata": {}
},
"connectorInstance": {
"id": "<string>",
"organizationId": "<string>",
"connectorAccountId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"name": "<string>",
"status": "active",
"instanceConfigJson": {},
"lastSyncedAt": "2023-11-07T05:31:56Z",
"lastSyncStatus": "pending",
"lastSyncCursor": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"connectorTarget": {
"id": "<string>",
"connectorInstanceId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"targetKind": "repository_branch",
"externalTargetRef": "<string>",
"targetConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}x <= 90071992547409911 - 255x <= 90071992547409911 - 2551 - 2551 - 255Den TypeID with 'cac_' prefix and a 26-character base32 suffix.
30^cac_.*100Show child attributes
Was this page helpful?