Cursor Groups API

Billing groups for cost allocation

GitHub OpenAPI

Operations 7

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 /teams/groups List billing groups · List billing groups #
Ask an LLM
“Which billing groups exist in my team?”
“Can I see all the spend groups set up for billing?”
Tell an agent
List all billing groups.
Show every spend group in my team.
POST /teams/groups Create a billing group · Create billing group #
Ask an LLM
“How do I create a new billing group for a team subset?”
“Can I name a new billing group when I create it?”
Tell an agent
Create a billing group named {name}.
Add a new spend group called {name}.
GET /teams/groups/{groupId} Get a billing group · Get billing group #
Ask an LLM
“What are the details of one billing group?”
“Can I look up a single spend group by id?”
Tell an agent
Get billing group {groupId}.
Show spend group {groupId}.
PATCH /teams/groups/{groupId} Rename a billing group · Update billing group #
Ask an LLM
“Can I rename an existing billing group?”
“What's the way to change a spend group's name?”
Tell an agent
Rename billing group {groupId} to {name}.
Change the name of spend group {groupId}.
DELETE /teams/groups/{groupId} Delete a billing group · Delete billing group #
Ask an LLM
“How do I delete a billing group I no longer use?”
“Can I remove a spend group from my team?”
Tell an agent destructive · confirm first
Delete billing group {groupId}.
Remove spend group {groupId}.
POST /teams/groups/{groupId}/members Add members to a billing group · Add members to group #
Ask an LLM
“How do I add users to an existing billing group?”
“Can I put several team members into one spend group at once?”
Tell an agent
Add users {userIds} to billing group {groupId}.
Put {userIds} into spend group {groupId}.
DELETE /teams/groups/{groupId}/members Remove members from a billing group · Remove members from group #
Ask an LLM
“How do I take users out of a billing group?”
“Can I remove several members from a spend group in one request?”
Tell an agent destructive · confirm first
Remove users {userIds} from billing group {groupId}.
Take {userIds} out of spend group {groupId}.

Specifications

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/cursor:cursor-groups-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

cursor-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cursor Admin Groups API
  description: The Cursor Admin API allows team and enterprise administrators to programmatically manage members, billing groups, audit logs, daily usage data, spending, repository indexing blocklists, and per-user spend limits for their Cursor team. Authentication uses HTTP Basic Authentication with the API key as the username and an empty password.
  version: 1.0.0
  contact:
    name: Cursor Support
    url: https://cursor.com/support
servers:
- url: https://api.cursor.com
  description: Cursor Admin API production endpoint
security:
- BasicAuth: []
tags:
- name: Groups
  description: Billing groups for cost allocation
paths:
  /teams/groups:
    get:
      tags:
      - Groups
      summary: List billing groups
      operationId: listGroups
      responses:
        '200':
          description: List of billing groups
    post:
      tags:
      - Groups
      summary: Create billing group
      operationId: createGroup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
      responses:
        '201':
          description: Group created
  /teams/groups/{groupId}:
    parameters:
    - in: path
      name: groupId
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      summary: Get billing group
      operationId: getGroup
      responses:
        '200':
          description: Group detail
    patch:
      tags:
      - Groups
      summary: Update billing group
      operationId: updateGroup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
      responses:
        '200':
          description: Group updated
    delete:
      tags:
      - Groups
      summary: Delete billing group
      operationId: deleteGroup
      responses:
        '204':
          description: Group deleted
  /teams/groups/{groupId}/members:
    parameters:
    - in: path
      name: groupId
      required: true
      schema:
        type: string
    post:
      tags:
      - Groups
      summary: Add members to group
      operationId: addGroupMembers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userIds:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Members added
    delete:
      tags:
      - Groups
      summary: Remove members from group
      operationId: removeGroupMembers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userIds:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Members removed
components:
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: Basic Authentication with API key as the username and empty password.