PinBridge Projects API
The Projects API from PinBridge — 4 operation(s) for projects.
The Projects API from PinBridge — 4 operation(s) for projects.
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-projects-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 Projects 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: Projects
paths:
/v1/projects:
get:
tags:
- Projects
summary: List Projects
description: List projects for the current organization.
operationId: list_projects_v1_projects_get
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectsContextResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/projects/sandbox:
post:
tags:
- Projects
summary: Create Sandbox Project
description: Create sandbox project for the current organization (idempotent).
operationId: create_sandbox_project_v1_projects_sandbox_post
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSandboxProjectRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectsContextResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/projects/sandbox/reset:
post:
tags:
- Projects
summary: Reset Sandbox Project Data
description: 'Delete sandbox-scoped resources so users can start fresh for testing.
Schedules, pins, Pinterest accounts, webhooks, API keys and API usage are
always deleted. With `delete_assets` true (the default, also when there is no
body) the sandbox''s media assets and uploaded template fonts and images are
deleted too, freeing their storage, and templates using those files are
archived. With `delete_assets` false, assets, template files and templates stay.'
operationId: reset_sandbox_project_data_v1_projects_sandbox_reset_post
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/ResetSandboxProjectRequest'
- type: 'null'
title: Data
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectsContextResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/projects/switch:
post:
tags:
- Projects
summary: Switch Project
description: Switch active project for the current session and issue a new JWT.
operationId: switch_project_v1_projects_switch_post
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SwitchProjectRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectSwitchResponse'
'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
ProjectSwitchResponse:
properties:
organization:
$ref: '#/components/schemas/OrganizationResponse'
active_project:
$ref: '#/components/schemas/ProjectResponse'
projects:
items:
$ref: '#/components/schemas/ProjectResponse'
type: array
title: Projects
access_token:
type: string
title: Access Token
token_type:
type: string
title: Token Type
default: bearer
expires_in:
type: integer
title: Expires In
type: object
required:
- organization
- active_project
- projects
- access_token
- expires_in
title: ProjectSwitchResponse
description: Project switch response including a fresh bearer token.
ResetSandboxProjectRequest:
properties:
delete_assets:
type: boolean
title: Delete Assets
description: 'true (the default): also delete the sandbox''s media assets and uploaded template fonts and images, and archive the templates that use those files. false: keep assets, template files and templates.'
default: true
type: object
title: ResetSandboxProjectRequest
description: Optional sandbox reset payload.
SwitchProjectRequest:
properties:
project_id:
type: string
format: uuid
title: Project Id
type: object
required:
- project_id
title: SwitchProjectRequest
description: Switch active project for current session.
OrganizationResponse:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
type: object
required:
- id
- name
title: OrganizationResponse
description: Organization summary.
ErrorResponse:
type: object
title: ErrorResponse
properties:
detail:
description: Legacy detail payload (string, object, or list).
error:
$ref: '#/components/schemas/ErrorEnvelope'
Plan:
type: string
enum:
- free
- starter
- growth
- pro
- enterprise
title: Plan
description: Subscription plan tiers.
ProjectsContextResponse:
properties:
organization:
$ref: '#/components/schemas/OrganizationResponse'
active_project:
$ref: '#/components/schemas/ProjectResponse'
projects:
items:
$ref: '#/components/schemas/ProjectResponse'
type: array
title: Projects
type: object
required:
- organization
- active_project
- projects
title: ProjectsContextResponse
description: Project context payload for current authenticated user.
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
ProjectResponse:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
environment:
$ref: '#/components/schemas/WorkspaceEnvironment'
plan:
$ref: '#/components/schemas/Plan'
created_at:
type: string
format: date-time
title: Created At
type: object
required:
- id
- name
- environment
- plan
- created_at
title: ProjectResponse
description: Project/workspace summary.
WorkspaceEnvironment:
type: string
enum:
- production
- sandbox
title: WorkspaceEnvironment
description: Environment mode for an isolated project/workspace.
CreateSandboxProjectRequest:
properties:
name:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Name
type: object
title: CreateSandboxProjectRequest
description: Optional sandbox project creation payload.
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>`.'