self-hosted_other

Token generation endpoint

post/self-hosted/oauth/token

Request

Request body application/x-www-form-urlencoded

grant_typestring required

OAuth 2.0 grant type (must be "client_credentials")

client_idstring

Client identifier (not validated, included for OAuth 2.0 spec compliance)

client_secretstring

Client secret (not validated, included for OAuth 2.0 spec compliance)

scopestring required

Requested scope (should include "openid")

account_idstring required

Account ID for token claims

Example request

{
  "grant_type": "client_credentials",
  "client_id": "iac-runner",
  "scope": "openid"
}

Response

Successfully generated OIDC token

id_tokenstring required

JSON Web Token (JWT) ID token with OIDC claims

token_typestring required

Token type (always "Bearer")

expires_ininteger required

Token expiration time in seconds

Changes

No recorded changes to this operation across all 1 revision of this API.