Token
Internal endpoints for cross-service authentication
get/api/v2/token
Issue a cross-service token
Authorizations
X-Harness-TokenstringRequired
Query parameters
accountIdstringOptionalExample:
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Header parameters
X-Harness-TokenstringRequiredExample:
Harness internal shared secret
3q7uiERGH78heq3wegResponses
200
OK response.
application/json
tokenstringRequiredExample:
Issued cross-service JWT
example-token-value400
BadRequest: Bad Request response.
application/json
401
Unauthorized: Unauthorized response.
application/json
403
Forbidden: Forbidden response.
application/json
429
TooManyRequests: Too Many Requests response.
application/json
500
InternalServerError: Internal Server Error response.
application/json
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?