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/permitio:permitio-policy-decision-points-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: 3.2.0
info:
title: Permit.io Policy Decision Points API
description: Authorization as a service
version: 2.0.0
tags:
- name: Policy Decision Points
paths:
/v2/pdps/edge-key/{proj_id}/{env_id}:
get:
tags:
- Policy Decision Points
summary: Get an environment's edge PDP key
description: 'Exchanges an organization or project API key for the environment''s edge PDP key.
An edge PDP started with an organization or project API key and an active environment
calls this at boot, then boots with the returned key as if it had been given it.'
operationId: get_edge_pdp_key
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EdgePDPKeyRead'
'400':
description: The caller is an environment API key, which already holds its environment's key
'403':
description: '`KEY_SCOPE`: the environment is outside the API key''s project, or the key''s access level is too low to read the environment''s PDP key'
'404':
description: The project or environment is unknown inside the API key's scope, or, with `NOT_PROVISIONED`, the environment has no edge PDP
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs:
get:
tags:
- Policy Decision Points
summary: List PDP configurations
operationId: list_pdp_configs
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
description: Page number of the results to fetch, starting at 1.
default: 1
title: Page
description: Page number of the results to fetch, starting at 1.
- name: per_page
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: The number of results per page (max 100).
default: 30
title: Per Page
description: The number of results per page (max 100).
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PDPConfigRead'
title: Response List Pdp Configs V2 Pdps Proj Id Env Id Configs Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/values:
get:
tags:
- Policy Decision Points
summary: Get PDP configuration
description: 'Gets the configuration values for the PDP container with id `pdp_id`.
The config values returned are considered "overrides", meaning they are overriding
any default values given to the container by the user.'
operationId: get_pdp_config_values
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: pdp_id
in: path
required: true
schema:
type: string
format: uuid
description: The unique id of the pdp
title: Pdp Id
description: The unique id of the pdp
example: 42f0e413-219b-4bb9-ba90-c2c904761be1
- name: X-Shard-ID
in: header
required: false
schema:
anyOf:
- type: integer
minimum: 0
- type: 'null'
title: X-Shard-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RemoteConfig'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/debug-audit-logs/enable:
put:
tags:
- Policy Decision Points
summary: Enable debug audit logs
description: Enables debug audit logs for the PDP container with id `pdp_id`.
operationId: enable_debug_audit_logs
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: pdp_id
in: path
required: true
schema:
type: string
format: uuid
description: The unique id of the pdp
title: Pdp Id
description: The unique id of the pdp
example: 42f0e413-219b-4bb9-ba90-c2c904761be1
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PDPConfigRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/debug-audit-logs/disable:
put:
tags:
- Policy Decision Points
summary: Disable debug audit logs
description: Disabled debug audit logs for the PDP container with id `pdp_id`.
operationId: disable_debug_audit_logs
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: pdp_id
in: path
required: true
schema:
type: string
format: uuid
description: The unique id of the pdp
title: Pdp Id
description: The unique id of the pdp
example: 42f0e413-219b-4bb9-ba90-c2c904761be1
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PDPConfigRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/rotate-api-key:
post:
tags:
- Policy Decision Points
summary: Rotate PDP API Key
description: 'Rotates the API key of the PDP container with id `pdp_id`.
The rotation of the API key revokes the old API key and issues a new API key to the PDP.
For the per-environment Nexus PDP credentials row this rotates the environment''s NATS
credentials instead of minting a token: every EdgePDP in the environment is revoked
and fresh bootstrap credentials are minted (PER-15666). That runs as an awaited
Celery task, so this call can take up to `NATS_ROTATION_TIMEOUT_SECONDS`.'
operationId: rotate_pdp_api_key
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: pdp_id
in: path
required: true
schema:
type: string
format: uuid
description: The unique id of the pdp
title: Pdp Id
description: The unique id of the pdp
example: 42f0e413-219b-4bb9-ba90-c2c904761be1
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PDPConfigRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/refresh:
post:
tags:
- Policy Decision Points
summary: Refresh data for all PDPs in the environment
description: 'Triggers an out-of-band data refresh for **all** PDPs in the environment.
Publishes an OPAL data update instructing each PDP to immediately re-pull its
full authorization data, instead of waiting for the next periodic poll. Use
this to propagate external-data-source-backed changes in realtime.
`shard_id` is not accepted here: sharding is a per-PDP topology, so a single
shard target is meaningless across a heterogeneous environment. Target a shard
via the single-PDP endpoint (`POST .../configs/{pdp_id}/refresh`) instead.'
operationId: refresh_environment_pdp_data
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/PDPDataRefreshRequest'
- type: 'null'
title: Refresh In
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PDPDataRefreshResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/refresh:
post:
tags:
- Policy Decision Points
summary: Refresh PDP data
description: 'Triggers an out-of-band data refresh for the PDP container with id `pdp_id`.
Publishes an OPAL data update instructing the PDP to immediately re-pull its
full authorization data, instead of waiting for the next periodic poll.'
operationId: refresh_pdp_data
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: pdp_id
in: path
required: true
schema:
type: string
format: uuid
description: The unique id of the pdp
title: Pdp Id
description: The unique id of the pdp
example: 42f0e413-219b-4bb9-ba90-c2c904761be1
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/PDPDataRefreshRequest'
- type: 'null'
title: Refresh In
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PDPDataRefreshResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/pdps/{proj_id}/{env_id}/configs/migrate-shards:
post:
tags:
- Policy Decision Points
summary: Migrate PDP Config number of shards
description: 'The migration process is as followed:
1. Perform request to this endpoint with the new number of shards
2. A new PDP Config will be created with the new number of shards and a new api-key
3. Create a new PDP cluster with the same instances as the number of shards defined in the new PDP Config
4. Wait for the new PDP cluster to be ready
5. Update your PDP load balancer to point to the new PDP cluster
More info can be found here https://docs.permit.io/concepts/pdp-sharding'
operationId: migrate_shards
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PDPShardMigration'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PDPConfigRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
PdpValues:
properties:
BACKEND_SERVICE_URL:
type: string
title: Backend Service Url
OPA_DECISION_LOG_ENABLED:
type: boolean
title: Opa Decision Log Enabled
OPA_DECISION_LOG_INGRESS_ROUTE:
type: string
title: Opa Decision Log Ingress Route
OPA_DECISION_LOG_INGRESS_BACKEND_TIER_URL:
type: string
title: Opa Decision Log Ingress Backend Tier Url
CONTROL_PLANE_RELAY_JWT_TIER:
type: string
title: Control Plane Relay Jwt Tier
CONTROL_PLANE_RELAY_API:
type: string
title: Control Plane Relay Api
CONTROL_PLANE_PDP_DELTAS_API:
type: string
title: Control Plane Pdp Deltas Api
additionalProperties: false
type: object
required:
- BACKEND_SERVICE_URL
- OPA_DECISION_LOG_ENABLED
- OPA_DECISION_LOG_INGRESS_ROUTE
- OPA_DECISION_LOG_INGRESS_BACKEND_TIER_URL
- CONTROL_PLANE_RELAY_JWT_TIER
- CONTROL_PLANE_RELAY_API
- CONTROL_PLANE_PDP_DELTAS_API
title: PdpValues
PDPDataRefreshResponse:
properties:
update_id:
type: string
format: uuid
title: Update Id
description: The id of the generated OPAL DataUpdate. It is injected as the X-Permit-Update-Id header on every entry for correlation. When a refresh targets several PDPs, the OPAL relay may deliver it as one update per PDP, each with its own update id (in OPAL logs and the relay's tracked messages); the relay's 'multi-topic message detected' log line maps this id to the split count. Because the refresh is a full-data reload (dst_path=""), the PDP confirms it by advancing PDPInstance.current_data_date once the new bundle is fetched and saved (most_recent_data_fetch_id is only set for scoped/delta updates).
pdp_ids:
items:
type: string
format: uuid
type: array
title: Pdp Ids
description: The ids of the PDP configurations that were targeted by this refresh.
additionalProperties: false
type: object
required:
- update_id
- pdp_ids
title: PDPDataRefreshResponse
PDPConfigRead:
properties:
id:
type: string
format: uuid
title: Id
name:
anyOf:
- type: string
- type: 'null'
title: Name
organization_id:
type: string
format: uuid
title: Organization Id
description: Unique id of the organization that the pdp_config belongs to.
project_id:
type: string
format: uuid
title: Project Id
description: Unique id of the project that the pdp_config belongs to.
environment_id:
type: string
format: uuid
title: Environment Id
description: Unique id of the environment that the pdp_config belongs to.
client_secret:
type: string
title: Client Secret
opal_server_access_token:
anyOf:
- type: string
- type: 'null'
title: Opal Server Access Token
hidden_from_schema: true
num_shards:
anyOf:
- type: integer
exclusiveMinimum: 1.0
- type: 'null'
title: Num Shards
debug_audit_logs:
type: boolean
title: Debug Audit Logs
description: Whether debug audit logs are enabled or not
default: true
min_pdp_version:
anyOf:
- type: string
pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
- type: 'null'
title: Min Pdp Version
description: The minimum image version of PDP that can connect to this config
additionalProperties: false
type: object
required:
- id
- organization_id
- project_id
- environment_id
- client_secret
title: PDPConfigRead
PDPContext:
properties:
customer_id:
type: string
format: uuid
title: Customer Id
client_id:
type: string
title: Client Id
backend_tier:
type: string
maxLength: 65536
minLength: 1
format: uri
title: Backend Tier
component:
type: string
title: Component
default: sidecar
org_id:
type: string
format: uuid
title: Org Id
project_id:
type: string
format: uuid
title: Project Id
env_id:
type: string
format: uuid
title: Env Id
additionalProperties: false
type: object
required:
- customer_id
- client_id
- backend_tier
- org_id
- project_id
- env_id
title: PDPContext
OPALUpdateCallback:
properties:
callbacks:
items:
anyOf:
- type: string
- prefixItems:
- type: string
- $ref: '#/components/schemas/OPALHttpFetcherConfig'
type: array
maxItems: 2
minItems: 2
type: array
title: Callbacks
type: object
required:
- callbacks
title: OPALUpdateCallback
HttpMethods:
type: string
enum:
- get
- post
- put
- patch
- head
- delete
title: HttpMethods
OPALHttpFetcherConfig:
properties:
fetcher:
anyOf:
- type: string
- type: 'null'
title: Fetcher
description: indicates to OPAL client that it should use a custom FetcherProvider to fetch the data
headers:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Headers
is_json:
type: boolean
title: Is Json
default: true
process_data:
type: boolean
title: Process Data
default: true
method:
$ref: '#/components/schemas/HttpMethods'
default: get
data:
title: Data
type: object
title: OPALHttpFetcherConfig
description: Config for HttpFetchProvider's Adding HTTP headers.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
OPALClient:
properties:
DATA_TOPICS:
items:
type: string
type: array
title: Data Topics
CLIENT_TOKEN:
type: string
title: Client Token
SERVER_URL:
type: string
title: Server Url
SERVER_WS_URL:
type: string
title: Server Ws Url
SERVER_PUBSUB_URL:
type: string
title: Server Pubsub Url
DEFAULT_DATA_SOURCES_CONFIG_URL:
type: string
title: Default Data Sources Config Url
SCOPE_ID:
anyOf:
- type: string
- type: 'null'
title: Scope Id
SHOULD_REPORT_ON_DATA_UPDATES:
anyOf:
- type: boolean
- type: 'null'
title: Should Report On Data Updates
DEFAULT_UPDATE_CALLBACKS:
anyOf:
- $ref: '#/components/schemas/OPALUpdateCallback'
- type: 'null'
DEFAULT_UPDATE_CALLBACK_CONFIG:
anyOf:
- $ref: '#/components/schemas/OPALHttpFetcherConfig'
- type: 'null'
additionalProperties: false
type: object
required:
- DATA_TOPICS
- CLIENT_TOKEN
- SERVER_URL
- SERVER_WS_URL
- SERVER_PUBSUB_URL
- DEFAULT_DATA_SOURCES_CONFIG_URL
title: OPALClient
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
EdgePDPKeyRead:
properties:
env_id:
type: string
format: uuid
title: Env Id
description: The environment the key belongs to.
secret:
type: string
title: Secret
description: The environment's edge PDP API key, whose secret is its bootstrap bundle, spelled as every API key the API returns.
additionalProperties: false
type: object
required:
- env_id
- secret
title: EdgePDPKeyRead
description: An environment's edge PDP key, handed to a project or org key (PER-17948).
RemoteConfig:
properties:
opal_common:
$ref: '#/components/schemas/OPALCommon'
opal_client:
$ref: '#/components/schemas/OPALClient'
pdp:
$ref: '#/components/schemas/PdpValues'
default: {}
context:
$ref: '#/components/schemas/PDPContext'
additionalProperties: false
type: object
required:
- opal_common
- opal_client
- context
title: RemoteConfig
PDPShardMigration:
properties:
num_shards:
type: integer
exclusiveMinimum: 1.0
title: Num Shards
additionalProperties: false
type: object
required:
- num_shards
title: PDPShardMigration
PDPDataRefreshRequest:
properties:
reason:
anyOf:
- type: string
maxLength: 512
- type: 'null'
title: Reason
description: Optional human-readable reason for the refresh, propagated to the OPAL DataUpdate and visible in PDP/OPAL logs.
shard_id:
anyOf:
- type: integer
minimum: 0.0
- type: 'null'
title: Shard Id
description: For sharded PDPs, target only this shard. When omitted, the refresh targets the PDP's main topic (all shards).
additionalProperties: false
type: object
title: PDPDataRefreshRequest
OPALCommon:
properties:
FETCHING_CALLBACK_TIMEOUT:
type: integer
title: Fetching Callback Timeout
default: 60
AUTH_PUBLIC_KEY:
type: string
title: Auth Public Key
additionalProperties: false
type: object
required:
- AUTH_PUBLIC_KEY
title: OPALCommon
securitySchemes:
HTTPBearer:
type: http
description: 'Authorization header, we support the bearer authentication scheme (see: RFC 6750)'
scheme: bearer
bearerFormat: JWT