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": "SEMGREP",
  "connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "identifier": "<string>",
  "options": {
    "oauth2_redirect_urls": {
      "success": "<string>",
      "error": "<string>"
    }
  },
  "expiry_secs": 1800
}
'
{
  "token": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

organization_id
string<uuid>
required

Body

application/json
vendor
enum<string> | null

Vendor for which the connection token is being created

Available options:
SEMGREP,
SENTINELONE_VMS,
SENTINELONE,
AIKIDO,
ORCA,
AWS_INSPECTOR2,
AWS_ACCESS_ANALYSER,
AWS_SECURITYHUB,
INSIGHTVM,
MS_DEFENDER_VMS,
MS_ENTRA,
MS_DEFENDER_VMS_GCC_HIGH,
MS_DEFENDER_CLOUD,
MS_DEFENDER_ENDPOINT,
JIRA,
QUALYS,
GITHUB,
ARNICA,
SNYK,
TANIUM_VMS,
GITLAB,
MEND,
SERVICENOW,
UPWIND,
TENABLE,
CHECKMARX,
CROWDSTRIKE_SPOTLIGHT,
CROWDSTRIKE,
BLACK_KITE,
BIT_SIGHT,
LACEWORK_CSPM,
WIZ_VMS,
WIZ_CODE,
OKTA_IDP
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
SnykConnectionOptions · object

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

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

Connection token expiry in seconds, default 30 minutes

Response

Successful Response

token
string
required