{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cursor Admin API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Members",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get team members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cursor.com/teams/members"
          },
          "docs": "Retrieve all team members and their details (id, email, name, role, removal status)."
        },
        {
          "info": {
            "name": "Remove team member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/remove-member",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Programmatically offboard a user. Enterprise only."
        }
      ]
    },
    {
      "info": {
        "name": "Spend",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Set user spend limit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/user-spend-limit",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Control an individual user's spend cap in dollars. Enterprise only."
        },
        {
          "info": {
            "name": "Get spending data",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/spend",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Per-user spend for the current billing cycle with search and sorting."
        }
      ]
    },
    {
      "info": {
        "name": "Audit Logs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get audit logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cursor.com/teams/audit-logs",
            "params": [
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "eventType",
                "value": "",
                "type": "query"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Fetch audit log events with optional filtering by date, event type, and user."
        }
      ]
    },
    {
      "info": {
        "name": "Usage",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get daily usage data",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/daily-usage-data",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Aggregated daily usage metrics including lines added/deleted, completions, chat requests, and model usage."
        },
        {
          "info": {
            "name": "Get filtered usage events",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/filtered-usage-events",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Granular event-level usage data including token consumption and costs."
        }
      ]
    },
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List billing groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cursor.com/teams/groups"
          },
          "docs": "List billing groups"
        },
        {
          "info": {
            "name": "Create billing group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/groups",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create billing group"
        },
        {
          "info": {
            "name": "Get billing group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cursor.com/teams/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get billing group"
        },
        {
          "info": {
            "name": "Update billing group",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.cursor.com/teams/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update billing group"
        },
        {
          "info": {
            "name": "Delete billing group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cursor.com/teams/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete billing group"
        },
        {
          "info": {
            "name": "Add members to group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/teams/groups/:groupId/members",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add members to group"
        },
        {
          "info": {
            "name": "Remove members from group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cursor.com/teams/groups/:groupId/members",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Remove members from group"
        }
      ]
    },
    {
      "info": {
        "name": "Repo Blocklists",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get repo blocklists",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cursor.com/settings/repo-blocklists/repos"
          },
          "docs": "Get repo blocklists"
        },
        {
          "info": {
            "name": "Upsert repo blocklists",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cursor.com/settings/repo-blocklists/repos/upsert",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Upsert repo blocklists"
        },
        {
          "info": {
            "name": "Remove repo from blocklist",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cursor.com/settings/repo-blocklists/repos/:repoId",
            "params": [
              {
                "name": "repoId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove repo from blocklist"
        }
      ]
    }
  ],
  "bundled": true
}