POST
/
provisioning
/
organizations
/
{organization_id}
/
connection-invite-tokens
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": "AIKIDO",
  "connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "identifier": "<string>",
  "options": {
    "oauth2_redirect_urls": {
      "success": "<string>",
      "error": "<string>"
    }
  },
  "expiry_secs": 123
}'
{
  "token": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

organization_id
string
required

Body

application/json
vendor
enum<string> | null

Vendor for which the connection token is being created

Available options:
AIKIDO,
ARNICA,
TENABLE,
QUALYS,
SNYK,
CROWDSTRIKE,
CROWDSTRIKE_SPOTLIGHT,
MS_DEFENDER_CLOUD,
MS_DEFENDER_ENDPOINT,
MS_DEFENDER_VMS,
SENTINELONE,
SENTINELONE_VMS,
SEMGREP,
INSIGHTVM,
AWS_SECURITYHUB,
LACEWORK_CSPM,
MS_ENTRA,
AWS_INSPECTOR2,
AWS_ACCESS_ANALYSER,
OKTA_IDP,
WIZ_VMS,
WIZ_CODE
connection_id
string | 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

expiry_secs
integer | null
default:
1800

Connection token expiry in seconds, default 30 minutes

Response

200
application/json
Successful Response
token
string
required