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

Token

Internal endpoints for cross-service authentication

get
/api/v2/token

Issue a cross-service token

Authorizations
X-Harness-TokenstringRequired
Query parameters
accountIdstringOptional

Harness Account ID

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

Harness internal shared secret

Example: 3q7uiERGH78heq3weg
Responses
200

OK response.

application/json
tokenstringRequired

Issued cross-service JWT

Example: example-token-value
get/api/v2/token
GET /gateway/sto/api/v2/token HTTP/1.1
Host: app.harness.io
X-Harness-Token: 3q7uiERGH78heq3weg
Accept: */*
{
  "token": "example-token-value"
}

Last updated

Was this helpful?