Harness Service Account API

This has all the APIs specific to the Service Accounts in Harness.

Operations 8

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

GET /ng/api/serviceaccount List service accounts · Get Service Accounts #
Ask an LLM
“Which service accounts exist in my account, org or project?”
“Can I fetch a specific set of service accounts by their identifiers?”
Tell an agent
List service accounts in project {project}.
Get the service accounts with identifiers {ids}.
POST /ng/api/serviceaccount Create a service account · Create a Service Account #
Ask an LLM
“How do I create a service account for automation?”
“What details are required to set up a new service account?”
Tell an agent
Create service account {name} with identifier {identifier} and email {email}.
Add a service account {name} in org {org} described as {description}.
PUT /ng/api/serviceaccount/{identifier} Update a service account · Update a Service Account #
Ask an LLM
“Can I rename a service account or change its email?”
“How do I update the tags on an existing service account?”
Tell an agent
Rename service account {sa} to {name}.
Change the email of service account {sa} to {email}.
DELETE /ng/api/serviceaccount/{identifier} Delete a service account · Delete a Service Account #
Ask an LLM
“How do I remove a service account that's no longer used?”
“Can I delete a service account at project scope?”
Tell an agent destructive · confirm first
Delete service account {sa}.
Remove service account {sa} from project {project}.
GET /ng/api/serviceaccount/aggregate/{identifier} Get a service account with its roles · Get Service Account In Scope #
Ask an LLM
“What roles and details does a single service account have in this scope?”
“Can I see the aggregated view of one service account?”
Tell an agent
Get the aggregated details of service account {sa}.
Show service account {sa} with its role assignments in org {org}.
GET /ng/api/serviceaccount/{identifier}/scopes List child scopes inheriting a service account · Get Inheriting Child Scopes #
Ask an LLM
“Which orgs and projects inherit a given service account?”
“Where is an account-level service account used in child scopes?”
Tell an agent
List the child scopes inheriting service account {sa}.
Show which projects inherit service account {sa}.
GET /ng/api/serviceaccount/aggregate List service accounts with role details · List aggregated Service Accounts #
Ask an LLM
“Can I list service accounts together with their role bindings?”
“How do I search service accounts and see their aggregated details?”
Tell an agent
List aggregated service accounts matching {term}.
Show page {page} of aggregated service accounts in project {project}.
GET /ng/api/serviceaccount/manageable List service accounts I can manage keys for · List manageable Service Accounts #
Ask an LLM
“Which service accounts am I allowed to manage API keys on?”
“Can I search only the service accounts where I have manage API key permission?”
Tell an agent
List service accounts where I can manage API keys.
Find manageable service accounts matching {term}.

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-service-account-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-service-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Service Account 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 (195 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-service-account-api-openapi.yml