Skip to main content
POST
/
provisioning
/
organizations
/
{organization_id}
/
connection-invite-tokens
Create Connection Invite Token
curl --request POST \
  --url https://api.leen.dev/v1/provisioning/organizations/{organization_id}/connection-invite-tokens \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "vendor": "ARNICA",
  "connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "identifier": "<string>",
  "options": "<any>",
  "expiry_secs": 123
}'
{
  "token": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

organization_id
string<uuid>
required

Query Parameters

use_pool
boolean
default:true

Body

application/json
vendor
enum<string> | null

Vendor for which the connection token is being created

Available options:
ARNICA,
ORCA,
MEND,
AIKIDO,
TENABLE,
SENTINELONE_VMS,
SENTINELONE,
GITLAB,
UPWIND,
SERVICENOW,
QUALYS,
GITHUB,
CHECKMARX,
MS_DEFENDER_VMS,
MS_ENTRA,
MS_DEFENDER_CLOUD,
MS_DEFENDER_ENDPOINT,
LACEWORK_CSPM,
AWS_SECURITYHUB,
AWS_ACCESS_ANALYSER,
AWS_INSPECTOR2,
WIZ_CODE,
WIZ_VMS,
TANIUM_VMS,
OKTA_IDP,
SEMGREP,
CROWDSTRIKE_SPOTLIGHT,
CROWDSTRIKE,
SNYK,
INSIGHTVM
connection_id
string<uuid> | null

Connection ID for the connection to be updated

identifier
string | null

Identifier for the connection to be created or updated with this token

options
object | null

Connection options, ONLY used for Oauth2 URL overrides for Snyk and MS Defender Endpoint and auth_type for AWS connectors

  • SnykConnectionOptions
  • MSDefenderEndpointConnectionOptions
  • MSDefenderVMSConnectionOptions
  • ArnicaConnectionOptions
  • OrcaConnectionOptions
  • MendConnectionOptions
  • AikidoConnectionOptions
  • TenableConnectionOptions
  • SentinelOneVMSOptions
  • SentinelOneEDROptions
  • GitlabOptions
  • UpwindConnectionOptions
  • ServiceNowConnectionOptions
  • QualysConnectionOptions
  • GitHubConnectionOptions
  • CheckmarxConnectionOptions
  • MSDefenderVMSConnectionOptions
  • MSEntraConnectionOptions
  • MSDefenderCloudConnectionOptions
  • MSDefenderEndpointConnectionOptions
  • LaceworkCSPMOptions
  • AwsSecurityHubOptions
  • AwsAccessAnalyzerOptions
  • AwsInspector2Options
  • WizCodeOptions
  • WizVMSOptions
  • TaniumVMSOptions
  • OktaIDPOptions
  • SemgrepOptions
  • CrowdStrikeSpotlightConnectionOptions
  • CrowdStrikeConnectionOptions
  • SnykConnectionOptions
  • InsightVMConnectionOptions
expiry_secs
integer | null
default:1800

Connection token expiry in seconds, default 30 minutes

Response

Successful Response

token
string
required
I