Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Qwiet

Qwiet/ShiftLeft integration endpoints

Get Qwiet proxy configuration

get
/api/v2/qwiet/proxy-config

Get Qwiet proxy configuration and feature flag status for the account

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Exercitationem quaerat omnis.
Responses
200

OK response.

application/json
enabledbooleanRequired

Whether STO proxy mode is enabled for this account

Example: false
grpcApiHoststringOptional

STO gRPC API host:port. Same value as grpcTelemetryHost. Set only when enabled is true.

Example: sto.example.com:443
grpcTelemetryHoststringOptional

STO gRPC telemetry host:port. Same value as grpcApiHost. Set only when enabled is true.

Example: sto.example.com:443
get/api/v2/qwiet/proxy-config
GET /gateway/sto/api/v2/qwiet/proxy-config?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "enabled": false,
  "grpcApiHost": "sto.example.com:443",
  "grpcTelemetryHost": "sto.example.com:443"
}

Get Qwiet token

get
/api/v2/qwiet/token

Get Qwiet token and organization ID for an account

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
licenseTypestring · enumOptional

Type of license to validate

Default: qwietExample: sastPossible values:
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Velit commodi deleniti culpa facere a qui.
Responses
200

OK response.

application/json
authorizedbooleanOptional

Authorization status (sast/sca license types)

Example: true
licenseTypestring · enumOptional

Type of license validated

Example: sastPossible values:
organizationIdstringOptional

Qwiet organization ID (qwiet license type only)

Example: org_123456
tokenstringOptional

Qwiet access token (qwiet license type only)

Example: qwiet_token_abc123xyz
get/api/v2/qwiet/token
GET /gateway/sto/api/v2/qwiet/token?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "authorized": true,
  "licenseType": "sast",
  "organizationId": "org_123456",
  "token": "qwiet_token_abc123xyz"
}

Get Qwiet user token

get
/api/v2/qwiet/user-token

Get Qwiet user access token for the authenticated user

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Eum dicta eius odit.
Responses
200

OK response.

application/json
emailstringOptional

User email address. Set only when useStoProxy is false.

Example: user@example.com
grpcApiHoststringOptional

STO gRPC host:port (API and telemetry). Set only when useStoProxy is true. One mesh.

Example: sto.example.com:443
grpcTelemetryHoststringOptional

Deprecated. Omitted; sl copies grpcApiHost when empty.

Example: sto.example.com:443
organizationIdstringOptional

Qwiet organization ID. Set only when useStoProxy is false.

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
tokenstringOptional

Qwiet user access token. Set only when useStoProxy is false.

Example: Voluptatem cum unde et autem.
useStoProxybooleanRequired

True when this account must call the STO proxy. False when sl calls Qwiet directly.

Example: false
get/api/v2/qwiet/user-token
GET /gateway/sto/api/v2/qwiet/user-token?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "email": "user@example.com",
  "grpcApiHost": "sto.example.com:443",
  "grpcTelemetryHost": "sto.example.com:443",
  "organizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "token": "Dolores nihil ab.",
  "useStoProxy": false
}

Last updated

Was this helpful?