Cockroach Labs Service Accounts API

Manage service accounts used for machine-to-machine authentication within the organization.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

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 /api/v1/service-accounts List service accounts in an organization · List service accounts for an organization #
Ask an LLM
“Which service accounts exist in my CockroachDB Cloud organization?”
“Can I filter service accounts by name or roles?”
Tell an agent
List service accounts named {service_account_name}.
Show service accounts with roles {roles}.
POST /api/v1/service-accounts Create a service account · Create a service account #
Ask an LLM
“How do I create a service account for an automation script?”
“What roles do I need to create a service account?”
Tell an agent
Create service account {name} with roles {roles} described as {description}.
Add a new service account {name} for my CI/CD pipelines.
DELETE /api/v1/service-accounts/{id} Delete a service account · Delete a service account #
Ask an LLM
“How do I remove a service account I no longer use?”
“Can I delete a service account from my organization?”
Tell an agent destructive · confirm first
Delete service account {id}.
Remove the unused service account {id}.
GET /api/v1/service-accounts/{id} Get a service account · Get a service account by ID #
Ask an LLM
“What roles does a particular service account hold?”
“Can I look up one service account by ID?”
Tell an agent
Get service account {id}.
Show the roles assigned to service account {id}.
PATCH /api/v1/service-accounts/{id} Rename or redescribe a service account · Update a service account #
Ask an LLM
“Can I rename a service account?”
“Is it possible to change a service account's description?”
Tell an agent
Rename service account {id} to {name}.
Update the description of service account {id} to {description}.
GET /api/v1/service-accounts/{service_account_id}/credentials List OAuth credentials for a service account · List a service account's OAuth credentials #
Ask an LLM
“Which OAuth credentials exist for a service account?”
“Can I see only active credentials for a service account?”
Tell an agent
List credentials for service account {service_account_id}.
Show {status_filter} credentials of service account {service_account_id}.
POST /api/v1/service-accounts/{service_account_id}/credentials Create an OAuth credential for a service account · Create an OAuth credential for a service account #
Ask an LLM
“How do I issue an OAuth credential for a service account?”
“Can I choose the key algorithm and expiry for a service account credential?”
Tell an agent
Create credential {name} for service account {service_account_id} using {algorithm} expiring {expires_at}.
Issue a new credential {name} for service account {service_account_id} with public key {public_key}.
DELETE /api/v1/service-accounts/{service_account_id}/credentials/{credential_id} Delete a service account's OAuth credential · Delete a service account's OAuth credential #
Ask an LLM
“How do I revoke an OAuth credential from a service account?”
“Can I delete one credential without touching the rest?”
Tell an agent destructive · confirm first
Delete credential {credential_id} from service account {service_account_id}.
Revoke the OAuth credential {credential_id} of service account {service_account_id}.

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/cockroach-labs:cockroach-labs-service-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

cockroach-labs-service-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@cockroachlabs.com
    name: Cockroach Labs Support
    url: https://support.cockroachlabs.com
  description: An API for managing CockroachDB Cloud resources
  title: CockroachDB Cloud Service Accounts API
  version: '2026-09-15'
servers:
- url: https://cockroachlabs.cloud
security:
- Bearer: []
tags:


# --- truncated at 32 KB (37 KB total) ---
# Full source: https://artifacts.apis.io/cockroach-labs/openapi/cockroach-labs-service-accounts-api-openapi.yml