Argo CD AccountService API

The AccountService API from Argo CD — 6 operation(s) for accountservice.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 6

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/account List accounts · ListAccounts returns the list of accounts #
Ask an LLM
“Which accounts exist in Argo CD?”
“Can I get the full list of accounts?”
Tell an agent
List all accounts.
Show every account in the account service.
GET /api/v1/account/can-i/{resource}/{action}/{subresource} Check if I can perform an action · CanI checks if the current account has permission to perform an action #
Ask an LLM
“Can my current account create a cluster?”
“Does the logged-in account have permission to delete a resource?”
Tell an agent
Check whether I can {action} {resource} {subresource}.
Test if the current account has permission to {action} {resource} {subresource}.
PUT /api/v1/account/password Change an account's password · UpdatePassword updates an account's password to a new value #
Ask an LLM
“How do I change my own password?”
“Can I set a new password for an account?”
Tell an agent
Change my password to {newPassword}.
Set account {name}'s password to {newPassword}.
GET /api/v1/account/{name} Get an account · GetAccount returns an account #
Ask an LLM
“What are the details of a specific account?”
“Can I look up one account by name?”
Tell an agent
Get account {name}.
Show me the details of account {name}.
POST /api/v1/account/{name}/token Create a token for an account · CreateToken creates a token #
Ask an LLM
“How do I generate a new token for an account?”
“Can I set an expiry on a token I create?”
Tell an agent
Create a token for account {name}.
Create token {id} for account {name} that expires in {expiresIn}.
DELETE /api/v1/account/{name}/token/{id} Delete a token from an account · DeleteToken deletes a token #
Ask an LLM
“How do I revoke a token from an account?”
“Can I remove a token I no longer need?”
Tell an agent destructive · confirm first
Delete token {id} from account {name}.
Revoke account {name}'s token {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/argocd:argocd-accountservice-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

argocd-accountservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Description of all APIs
  title: Consolidate Services Account Service API
  version: version not set
tags:
- name: AccountService
paths:
  /api/v1/account:
    get:
      tags:
      - AccountService
      summary: ListAccounts returns the list of accounts
      operationId: AccountService_ListAccounts
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountAccountsList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
  /api/v1/account/can-i/{resource}/{action}/{subresource}:
    get:
      tags:
      - AccountService
      summary: CanI checks if the current account has permission to perform an action
      operationId: AccountService_CanI
      parameters:
      - name: resource
        in: path
        required: true
        schema:
          type: string
      - name: action
        in: path
        required: true
        schema:
          type: string
      - name: subresource
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountCanIResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
  /api/v1/account/password:
    put:
      tags:
      - AccountService
      summary: UpdatePassword updates an account's password to a new value
      operationId: AccountService_UpdatePassword
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountUpdatePasswordResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/accountUpdatePasswordRequest'
        required: true
  /api/v1/account/{name}:
    get:
      tags:
      - AccountService
      summary: GetAccount returns an account
      operationId: AccountService_GetAccount
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountAccount'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
  /api/v1/account/{name}/token:
    post:
      tags:
      - AccountService
      summary: CreateToken creates a token
      operationId: AccountService_CreateToken
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountCreateTokenResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/accountCreateTokenRequest'
        required: true
  /api/v1/account/{name}/token/{id}:
    delete:
      tags:
      - AccountService
      summary: DeleteToken deletes a token
      operationId: AccountService_DeleteToken
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountEmptyResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
components:
  schemas:
    protobufAny:
      type: object
      properties:
        type_url:
          type: string
        value:
          type: string
          format: byte
    accountCreateTokenRequest:
      type: object
      properties:
        expiresIn:
          type: integer
          format: int64
          title: expiresIn represents a duration in seconds
        id:
          type: string
        name:
          type: string
    accountUpdatePasswordResponse:
      type: object
    accountUpdatePasswordRequest:
      type: object
      properties:
        currentPassword:
          type: string
        name:
          type: string
        newPassword:
          type: string
    accountAccount:
      type: object
      properties:
        capabilities:
          type: array
          items:
            type: string
        enabled:
          type: boolean
        name:
          type: string
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/accountToken'
    accountToken:
      type: object
      properties:
        expiresAt:
          type: integer
          format: int64
        id:
          type: string
        issuedAt:
          type: integer
          format: int64
    accountCanIResponse:
      type: object
      properties:
        value:
          type: string
    runtimeError:
      type: object
      properties:
        code:
          type: integer
          format: int32
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
        error:
          type: string
        message:
          type: string
    accountAccountsList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/accountAccount'
    accountCreateTokenResponse:
      type: object
      properties:
        token:
          type: string
    accountEmptyResponse:
      type: object