Create integration connection
const url = 'https://api.varman.io/v1/integrations/connections';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"organizationId":"example","providerSlug":"aws","credentials":{"connectionName":"Production AWS","awsType":"aws-commercial","roleArn":"arn:aws:iam::123456789012:role/Varman-Auditor","externalId":"org_abc123","regions":["us-east-1","us-west-2"],"remediationRoleArn":"arn:aws:iam::123456789012:role/Varman-Remediator","awsScanMode":"comp_scanners"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/integrations/connections \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "organizationId": "example", "providerSlug": "aws", "credentials": { "connectionName": "Production AWS", "awsType": "aws-commercial", "roleArn": "arn:aws:iam::123456789012:role/Varman-Auditor", "externalId": "org_abc123", "regions": [ "us-east-1", "us-west-2" ], "remediationRoleArn": "arn:aws:iam::123456789012:role/Varman-Remediator", "awsScanMode": "comp_scanners" } }'Create an integration connection so Varman can collect evidence, run checks, or sync data from a connected provider.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Auto-resolved from your API key / session. You can omit this; it is ignored by the server.
Provider slug for the integration. Call list-providers first to see the available slugs (e.g. ‘aws’, ‘gcp’, ‘azure’, ‘github’).
Example
awsProvider-specific credential fields. Keys differ by provider — call get-provider-details for the exact shape. For AWS (Cloud Tests) the fields are: connectionName (display name), awsType (‘aws-commercial’ or ‘aws-govcloud’), roleArn (auditor role), externalId (typically your org id), regions (string array), and optionally remediationRoleArn and awsScanMode (‘comp_scanners’ or ‘security_hub’). Omit credentials for OAuth providers — use POST /v1/integrations/oauth/start instead.
object
Example
{ "connectionName": "Production AWS", "awsType": "aws-commercial", "roleArn": "arn:aws:iam::123456789012:role/Varman-Auditor", "externalId": "org_abc123", "regions": [ "us-east-1", "us-west-2" ], "remediationRoleArn": "arn:aws:iam::123456789012:role/Varman-Remediator", "awsScanMode": "comp_scanners"}