Harness Oidc ID Token API

This contains APIs related to OIDC ID Token generation as defined in Harness

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /ng/api/oidc/id-token/azure Generate an OIDC ID token for Azure · Generates an OIDC ID Token for Azure #
Ask an LLM
“Can Harness issue an OIDC token so I can authenticate to Azure without a stored client secret?”
“What Azure details go into a Harness-issued OIDC ID token?”
Tell an agent
Generate an Azure OIDC ID token for account {account} and tenant {tenant}.
Issue an Azure ID token for client {client} with audience {audience}.
POST /ng/api/oidc/id-token/gcp Generate an OIDC ID token for GCP (v1) · Generates an OIDC ID Token for GCP #
Ask an LLM
“How do I get a Harness OIDC token for GCP workload identity federation?”
“Which workload pool and provider IDs does the original GCP token endpoint need?”
Tell an agent
Generate a GCP OIDC token for project {gcpProject} using workload pool {pool} and provider {provider}.
Use the original GCP endpoint to issue an ID token for account {account}.
POST /ng/api/oidc/id-token/gcp-v2 Generate an OIDC ID token for GCP (v2) · Generates an OIDC ID Token for GCP #
Ask an LLM
“Is there a v2 endpoint for generating GCP OIDC ID tokens?”
“Can the newer GCP token endpoint impersonate a service account email?”
Tell an agent
Generate a GCP v2 OIDC token for project {gcpProject}, pool {pool}, provider {provider}.
Issue a v2 GCP ID token for service account {email}.
POST /ng/api/oidc/id-token/custom Generate a custom OIDC ID token · Generate a custom OIDC ID Token #
Ask an LLM
“Can I mint an OIDC ID token with my own audience and subject for any relying party?”
“What custom attributes can I put into a Harness OIDC token?”
Tell an agent
Generate a custom OIDC ID token with audience {aud}.
Mint a custom ID token for subject {sub} and audience {aud}.
POST /ng/api/oidc/id-token/aws Generate an OIDC ID token for AWS · Generates an OIDC ID Token for AWS #
Ask an LLM
“How do I get a Harness OIDC token to assume an AWS role without long-lived keys?”
“Can I add session tag keys to the AWS OIDC token?”
Tell an agent
Generate an AWS OIDC ID token for region {region}.
Issue an AWS ID token with session tag keys {tags}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-oidc-id-token-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-oidc-id-token-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Oidc ID Token API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (69 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-oidc-id-token-api-openapi.yml