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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/peeve-ai:peeve-ai-configuration-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
openapi: 3.2.0
info:
title: Peeve Configuration API
version: '2026-08-17'
description: 'The `/v1` API. Server-to-server only — no CORS headers are sent, no `Origin` is checked, and publishable keys are rejected everywhere.
Most endpoints take a **API token** (`pv_ut_…`), which carries its owner''s live workspace role. `/v1/users` and `/v1/answer` take the **workspace secret key** (`sk_…`). The credential and the required role are stated on every operation — they are not uniform.'
servers:
- url: https://api.peeve.ai
security:
- userToken: []
tags:
- name: Configuration
description: Guardrails and the kill switch.
paths:
/v1/guardrails:
get:
operationId: getGuardrails
summary: Get guardrails
tags:
- Configuration
description: 'How the agent is allowed to behave.
**Credential:** API token · **Role:** any (`read`)'
responses:
'200':
description: The workspace's guardrails.
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectEnvelope'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
x-mint:
metadata:
description: 'Get the guardrails: how the Peeve agent is allowed to behave. Credential: API token · Role: any (read), so any team role can call it.'
patch:
operationId: updateGuardrails
summary: Update guardrails
tags:
- Configuration
description: '**Credential:** API token · **Role:** owner or admin (`manage_team`)
The same gate the Settings screens use — a viewer''s token cannot write a guardrail, decided by the same function.
Writes use strict schemas: unknown keys are **rejected, not dropped**.'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
responses:
'200':
description: The updated guardrails.
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
x-mint:
metadata:
description: Update the agent's guardrails with an owner or admin API token, the same gate the Settings screens use. Strict schemas reject unknown keys, not drop them.
/v1/guardrails/stripe:
get:
operationId: getStripeGuardrails
summary: Get Stripe guardrails
tags:
- Configuration
description: 'Limits on the agent''s Stripe write actions — refunds and coupons.
**Credential:** API token · **Role:** any (`read`)
These govern your **connected** Stripe account, never Peeve''s.'
responses:
'200':
description: The Stripe guardrails.
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectEnvelope'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
x-mint:
metadata:
description: Read the limits on the agent's Stripe write actions, refunds and coupons. They govern your connected Stripe account, never Peeve's. Any role can read them.
patch:
operationId: updateStripeGuardrails
summary: Update Stripe guardrails
tags:
- Configuration
description: '**Credential:** API token · **Role:** owner or admin (`manage_team`)
Money is given in **minor units** (cents), never decimals.'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
responses:
'200':
description: The updated Stripe guardrails.
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
x-mint:
metadata:
description: 'Update the Stripe guardrails. Credential: API token · Role: owner or admin (manage_team). Money is given in minor units (cents), never decimals.'
/v1/kill-switch:
get:
operationId: getKillSwitchV1
summary: Read the kill switch
tags:
- Configuration
description: '**Credential:** API token · **Role:** any (`read`)'
responses:
'200':
description: The current state.
content:
application/json:
schema:
$ref: '#/components/schemas/KillSwitchObject'
example:
object: kill_switch
data:
object: kill_switch
enabled: false
request_id: req_xxx
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
x-mint:
metadata:
description: Read whether the Peeve kill switch is on. The kill switch stops the agent acting on your app. GET /v1/kill-switch with an API token; any role can read it.
post:
operationId: setKillSwitchV1
summary: Set the kill switch
tags:
- Configuration
description: 'Stop or resume Peeve serving.
**Credential:** API token · **Role:** owner, admin or **responder** (`kill_switch`)
Responder deliberately holds this: the safe direction must be available to whoever is on shift.
The kill switch is **not** enforced on this API — it stops the agent acting on your app, and it must never lock you out of the endpoint that turns it back off.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
enabled:
type: boolean
required:
- enabled
example:
enabled: true
responses:
'200':
description: The new state.
content:
application/json:
schema:
$ref: '#/components/schemas/KillSwitchObject'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
x-mint:
metadata:
description: Stop or resume Peeve serving. Owners, admins and responders can use it. It stops the agent acting on your app, but never locks you out of this endpoint.
components:
responses:
RateLimited:
description: Over the per-credential ceiling. Carries `Retry-After`. All `/v1` endpoints share one bucket per credential.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
type: rate_limit_error
code: rate_limit_exceeded
message: Too many requests (key limit). Retry in 60s.
request_id: req_xxx
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait.
Unauthorized:
description: 'Missing, invalid or revoked credential — or the wrong **kind** of credential.
Note the API''s own wording: the code is `user_token_required` and the message says "user token". That is the same thing the dashboard calls an **API token** (`pv_ut_…`), under Settings → API keys.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
examples:
wrongKind:
summary: A secret key on a user-token endpoint
value:
error:
type: authentication_error
code: user_token_required
message: This endpoint requires a user token (pv_ut_…), not a workspace secret key. A shared key cannot express a person's role, so it cannot be used to read workspace data or change configuration. Create your own token in Settings → API keys.
request_id: req_xxx
publishable:
summary: A publishable key
value:
error:
type: authentication_error
code: publishable_key_not_allowed
message: Publishable keys (pk_…) are public by construction and can never read or write workspace data.
request_id: req_xxx
invalid:
summary: Revoked, unknown, or the owner left the workspace
value:
error:
type: authentication_error
code: invalid_credential
message: That credential is not valid, has been revoked, or its owner is no longer a member of this workspace.
request_id: req_xxx
Forbidden:
description: The credential is valid but its **role** is insufficient. The message names the role it resolved to and the capability it lacked.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
type: invalid_request_error
code: insufficient_role
message: This credential acts as 'viewer', which cannot change workspace settings (owner or admin). An API token carries its owner's workspace role, so this needs a teammate whose role holds 'manage_team'.
request_id: req_xxx
BadRequest:
description: An unknown or duplicated parameter, a bad value, a backwards date window, or a rejected unknown body key. The `param` field names the offender.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
type: invalid_request_error
code: unknown_parameter
message: 'Unknown query parameter ''since''. This endpoint accepts: created_after, created_before, cursor, limit, order, sort.'
param: since
request_id: req_xxx
schemas:
ObjectEnvelope:
type: object
required:
- object
- data
- request_id
properties:
object:
type: string
description: The resource type, e.g. `lead`.
data:
type: object
additionalProperties: true
request_id:
type: string
description: Echoed in the `X-Request-Id` header. Quote it to support.
KillSwitchObject:
allOf:
- $ref: '#/components/schemas/ObjectEnvelope'
- type: object
properties:
data:
type: object
properties:
object:
type: string
const: kill_switch
enabled:
type: boolean
ErrorEnvelope:
type: object
required:
- error
- request_id
properties:
error:
type: object
required:
- type
- code
- message
properties:
type:
type: string
enum:
- authentication_error
- invalid_request_error
- not_found_error
- rate_limit_error
- api_error
description: The coarse family. Branch on this.
code:
type: string
description: The stable machine label.
message:
type: string
param:
type: string
description: The offending query parameter or dotted body path.
request_id:
type: string
securitySchemes:
userToken:
type: http
scheme: bearer
description: 'An API token (`pv_ut_…`) as `Authorization: Bearer pv_ut_…`. `X-Peeve-Key` is accepted too. **Never a query parameter** — URLs end up in proxy logs and `Referer` headers.
The token carries its owner''s **live** workspace role, re-read on every call.'
secretKey:
type: http
scheme: bearer
description: 'The workspace secret key (`sk_…`) as `Authorization: Bearer sk_…`. `X-Peeve-Key` is accepted too.'