PinBridge API Keys API
The API Keys API from PinBridge — 2 operation(s) for api keys.
The API Keys API from PinBridge — 2 operation(s) for api keys.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pinbridge-io:pinbridge-io-api-keys-api"
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.
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: PinBridge API Keys API
description: 'Developer-first Pinterest publishing engine with queues, pacing, and webhooks
## Error contract
Every non-2xx JSON response carries a top-level `error` envelope next to the
legacy `detail` field:
```json
{
"detail": "...",
"error": {
"code": "board_access_denied",
"message": "Pinterest denied access to this board for the connected account.",
"remediation": "Refresh the board list and choose a board owned by this account.",
"request_id": "8c2c1f0e-...",
"board_id": "1234567890",
"account_id": "..."
}
}
```
`error.code` is stable and safe to branch on; `error.message` is for humans;
`error.remediation` says what to change; `error.request_id` matches the
`X-Request-ID` response header for support. Extra keys give machine-readable
context (`board_id`, `account_id`, `retry_after_seconds`, `required_scope`, ...).
Validation failures use `code: validation_error` and list field errors under
`error.errors`.
## Publish headroom headers
Publish-shaped responses (`POST /v1/pins`, `/v1/pins/batch`, `/v1/pins/validate`,
`/v1/pins/{id}/retry`) carry the remaining monthly quota and Pinterest rate
headroom: `X-PinBridge-Quota-Limit`, `X-PinBridge-Quota-Used`,
`X-PinBridge-Quota-Remaining`, `X-Pinterest-RateLimit-Remaining`,
`X-Pinterest-RateLimit-Capacity`, `X-Pinterest-RateLimit-Refill-Per-Second`.
On a batch the rate headers describe the first pin''s account and are omitted
when the batch spans several accounts.
## API key scopes
API keys carry `read`, `write` and `destructive` scopes and an optional Pinterest
account allow-list. A request outside the key''s grants fails with
`403 insufficient_scope` or `403 account_not_permitted`.'
version: 1.93.1
tags:
- name: API Keys
paths:
/v1/api-keys:
post:
tags:
- API Keys
summary: Create Api Key
description: 'Create a new API key.
Returns the API key once - save it, it won''t be shown again. Keys can be
restricted to a subset of scopes (`read`, `write`, `destructive`) and to
specific Pinterest accounts; an unrestricted key gets every scope.'
operationId: create_api_key_v1_api_keys_post
parameters:
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/APIKeyCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/APIKeyCreateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
get:
tags:
- API Keys
summary: List Api Keys
description: List all API keys for the workspace.
operationId: list_api_keys_v1_api_keys_get
parameters:
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/APIKeyResponse'
title: Response List Api Keys V1 Api Keys Get
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/api-keys/{key_id}:
patch:
tags:
- API Keys
summary: Update Api Key
description: Update API key name, scopes, or Pinterest account allow-list.
operationId: update_api_key_v1_api_keys__key_id__patch
parameters:
- name: key_id
in: path
required: true
schema:
type: string
format: uuid
title: Key Id
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/APIKeyUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/APIKeyResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
delete:
tags:
- API Keys
summary: Revoke Api Key
description: Revoke an API key.
operationId: revoke_api_key_v1_api_keys__key_id__delete
parameters:
- name: key_id
in: path
required: true
schema:
type: string
format: uuid
title: Key Id
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
APIKeyCreateResponse:
properties:
id:
type: string
format: uuid
title: Id
workspace_id:
type: string
format: uuid
title: Workspace Id
name:
type: string
title: Name
scopes:
items:
type: string
type: array
title: Scopes
pinterest_account_ids:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Pinterest Account Ids
api_key:
type: string
title: Api Key
description: The actual API key - save this, it won't be shown again
created_at:
type: string
format: date-time
title: Created At
type: object
required:
- id
- workspace_id
- name
- scopes
- api_key
- created_at
title: APIKeyCreateResponse
description: Response schema when creating an API key (includes the key once).
APIKeyCreate:
properties:
name:
type: string
maxLength: 255
title: Name
description: Human-readable name for this API key
scopes:
anyOf:
- items:
type: string
enum:
- read
- write
- destructive
type: array
- type: 'null'
title: Scopes
description: Scopes granted to this key. `read` covers list/get endpoints, `write` covers creating and updating pins, schedules, boards, assets and webhooks, and `destructive` covers deletes and revocations. Omit to grant every scope.
pinterest_account_ids:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Pinterest Account Ids
description: Optional allow-list of Pinterest account IDs this key may act on. Omit or send null to allow every account in the workspace.
type: object
required:
- name
title: APIKeyCreate
description: Request schema for creating an API key.
ErrorResponse:
type: object
title: ErrorResponse
properties:
detail:
description: Legacy detail payload (string, object, or list).
error:
$ref: '#/components/schemas/ErrorEnvelope'
APIKeyUpdate:
properties:
name:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Name
description: Human-readable name for this API key
scopes:
anyOf:
- items:
type: string
enum:
- read
- write
- destructive
type: array
- type: 'null'
title: Scopes
description: Scopes granted to this key. `read` covers list/get endpoints, `write` covers creating and updating pins, schedules, boards, assets and webhooks, and `destructive` covers deletes and revocations. Omit to grant every scope.
pinterest_account_ids:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Pinterest Account Ids
description: Optional allow-list of Pinterest account IDs this key may act on. Omit or send null to allow every account in the workspace.
type: object
title: APIKeyUpdate
description: 'Request schema for updating API key metadata, scopes, or account allow-list.
Fields left out are unchanged. Send ``pinterest_account_ids: null`` to lift an
account restriction.'
APIKeyResponse:
properties:
id:
type: string
format: uuid
title: Id
workspace_id:
type: string
format: uuid
title: Workspace Id
name:
type: string
title: Name
scopes:
items:
type: string
type: array
title: Scopes
pinterest_account_ids:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Pinterest Account Ids
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
created_at:
type: string
format: date-time
title: Created At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
source:
type: string
enum:
- manual
- oauth
title: Source
description: '`manual` for keys created in the dashboard or API, `oauth` for keys minted when an AI agent or app connected through OAuth'
client_name:
anyOf:
- type: string
- type: 'null'
title: Client Name
description: Name the OAuth client registered with. Null for manual keys, and for oauth keys whose client registered without a name.
authorized_by_email:
anyOf:
- type: string
- type: 'null'
title: Authorized By Email
description: Email of the member who authorized the connection. Null for manual keys, and for oauth keys whose authorizing member no longer exists.
type: object
required:
- id
- workspace_id
- name
- scopes
- created_at
- source
title: APIKeyResponse
description: Response schema for API key (without the actual key).
ErrorEnvelope:
type: object
title: ErrorEnvelope
description: Documented error contract carried by every non-2xx response.
required:
- code
- message
properties:
code:
type: string
description: Stable machine-readable error code.
message:
type: string
description: Human-readable explanation.
remediation:
type: string
nullable: true
description: What to change to make the request succeed.
request_id:
type: string
nullable: true
description: Correlates with the X-Request-ID header; quote it to support.
additionalProperties: true
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: API key created via `/v1/api-keys`.
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT or API Key
description: 'Auth header: `Authorization: Bearer <jwt-or-api-key>`.'