curl -X POST "https://your-collabase.ch/api/v1/automation/connections" \
-H "Authorization: Bearer cba_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "GitHub Actions Bot",
"connectorId": "github",
"authType": "apiKey",
"config": {
"token": "ghp_xxxxxxxxxxxxxxxxxxxx"
},
"visibility": "SPACE",
"spaceId": "space-001"
}'
{
"id": "conn-xyz",
"name": "GitHub Actions Bot",
"connectorId": "github",
"visibility": "SPACE"
}
Store credentials for a connector as a reusable named connection.
curl -X POST "https://your-collabase.ch/api/v1/automation/connections" \
-H "Authorization: Bearer cba_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "GitHub Actions Bot",
"connectorId": "github",
"authType": "apiKey",
"config": {
"token": "ghp_xxxxxxxxxxxxxxxxxxxx"
},
"visibility": "SPACE",
"spaceId": "space-001"
}'
{
"id": "conn-xyz",
"name": "GitHub Actions Bot",
"connectorId": "github",
"visibility": "SPACE"
}
config map contains raw credentials (API keys, tokens). Ensure you are making this request over HTTPS. Values are stored encrypted at rest.slack, github.apiKey, basic, oauth2.PRIVATE (default) | SPACE | GLOBALvisibility is SPACE.curl -X POST "https://your-collabase.ch/api/v1/automation/connections" \
-H "Authorization: Bearer cba_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "GitHub Actions Bot",
"connectorId": "github",
"authType": "apiKey",
"config": {
"token": "ghp_xxxxxxxxxxxxxxxxxxxx"
},
"visibility": "SPACE",
"spaceId": "space-001"
}'
{
"id": "conn-xyz",
"name": "GitHub Actions Bot",
"connectorId": "github",
"visibility": "SPACE"
}
Was this page helpful?