P0 Security Command API

Submit commands that trigger access workflows.

Operations 1

POST /o/{orgId}/command Submit a command to P0 #

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/p0-security-command-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

p0-security-command-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: P0 Just-in-Time Access Command API
  version: 1.0.0
  description: P0 Security's Just-In-Time (JIT) access API surface, consolidated from P0's published Command API and Permission Request API. These endpoints let external systems, bots, CI/CD pipelines, and security workflows programmatically submit access commands and approve, deny, or revoke permission requests within a P0 organization. All endpoints are protected with bearer (JWT) tokens.
  contact:
    name: P0 Security
    url: https://docs.p0.dev/access-management/just-in-time-access/just-in-time-api
  x-apisjson-source: https://docs.p0.dev/access-management/just-in-time-access/just-in-time-api (Command API + Access Requests API, embedded OpenAPI blocks harvested verbatim)
servers:
- url: https://api.p0.app
security:
- bearerAuth: []
tags:
- name: Command
  description: Submit commands that trigger access workflows.
paths:
  /o/{orgId}/command:
    post:
      tags:
      - Command
      summary: Submit a command to P0
      operationId: submitCommand
      description: 'Submits a command to P0. This endpoint allows automation of access requests or other operations.

        '
      parameters:
      - name: orgId
        in: path
        required: true
        schema:
          type: string
        description: Organization identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - argv
              - scriptName
              properties:
                argv:
                  type: array
                  items:
                    type: string
                  description: Command-line arguments
                scriptName:
                  type: string
                  description: The script or command name to execute
      responses:
        '200':
          description: Command accepted and processed
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                properties:
                  ok:
                    type: boolean
                  message:
                    type: string
                  id:
                    type: string
                    description: Request ID
                  isPreexisting:
                    type: boolean
                  isPersistent:
                    type: boolean
        '400':
          description: Bad request – malformed payload
        '401':
          description: Unauthorized – missing or invalid token
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT