PinBridge Team API
The Team API from PinBridge — 7 operation(s) for team.
The Team API from PinBridge — 7 operation(s) for team.
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-team-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 Team 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: Team
paths:
/v1/team/invitations/preview:
get:
tags:
- Team
summary: Preview Team Invitation
description: Return a public preview of an invitation token.
operationId: preview_team_invitation_v1_team_invitations_preview_get
parameters:
- name: token
in: query
required: true
schema:
type: string
minLength: 20
maxLength: 512
title: Token
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamInvitationPreviewResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/team/members:
get:
tags:
- Team
summary: List Team Members
description: List accepted organization members.
operationId: list_team_members_v1_team_members_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:
$ref: '#/components/schemas/TeamMembersListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/team/invitations:
get:
tags:
- Team
summary: List Team Invitations
description: List pending organization invitations.
operationId: list_team_invitations_v1_team_invitations_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:
$ref: '#/components/schemas/TeamInvitationsListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
post:
tags:
- Team
summary: Create Team Invitation Route
description: Create a new invitation for an organization member.
operationId: create_team_invitation_route_v1_team_invitations_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/TeamInvitationCreateRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamInvitationResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/team/invitations/{invitation_id}/resend:
post:
tags:
- Team
summary: Resend Team Invitation Route
description: Rotate an invitation token and send a fresh email.
operationId: resend_team_invitation_route_v1_team_invitations__invitation_id__resend_post
parameters:
- name: invitation_id
in: path
required: true
schema:
type: string
format: uuid
title: Invitation 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:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamInvitationResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/team/invitations/{invitation_id}:
delete:
tags:
- Team
summary: Revoke Team Invitation Route
description: Revoke a pending invitation.
operationId: revoke_team_invitation_route_v1_team_invitations__invitation_id__delete
parameters:
- name: invitation_id
in: path
required: true
schema:
type: string
format: uuid
title: Invitation 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:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamActionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/team/members/{member_id}:
patch:
tags:
- Team
summary: Update Team Member
description: Update a member role or transfer ownership.
operationId: update_team_member_v1_team_members__member_id__patch
parameters:
- name: member_id
in: path
required: true
schema:
type: string
format: uuid
title: Member 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/TeamMemberUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamMemberResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
delete:
tags:
- Team
summary: Remove Team Member
description: Remove a member or allow a non-owner to remove themselves.
operationId: remove_team_member_v1_team_members__member_id__delete
parameters:
- name: member_id
in: path
required: true
schema:
type: string
format: uuid
title: Member 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:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamActionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
/v1/team/invitations/accept:
post:
tags:
- Team
summary: Accept Team Invitation Route
description: Accept an invitation for the authenticated user and switch the session context.
operationId: accept_team_invitation_route_v1_team_invitations_accept_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/TeamInvitationAcceptRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TeamInvitationAcceptResponse'
'422':
description: Validation Error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/ErrorResponse'
security:
- ApiKeyAuth: []
- BearerAuth: []
components:
schemas:
TeamMemberUpdateRequest:
properties:
role:
type: string
maxLength: 32
minLength: 4
title: Role
type: object
required:
- role
title: TeamMemberUpdateRequest
description: Payload for updating a member role.
TeamMemberResponse:
properties:
id:
type: string
format: uuid
title: Id
organization_id:
type: string
format: uuid
title: Organization Id
user_id:
type: string
format: uuid
title: User Id
role:
type: string
title: Role
invited_by_user_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Invited By User Id
accepted_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Accepted At
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
user:
$ref: '#/components/schemas/AuthUserResponse'
invited_by:
anyOf:
- $ref: '#/components/schemas/AuthUserResponse'
- type: 'null'
type: object
required:
- id
- organization_id
- user_id
- role
- created_at
- updated_at
- user
title: TeamMemberResponse
description: Accepted organization member with user details.
TeamInvitationAcceptResponse:
properties:
access_token:
type: string
title: Access Token
token_type:
type: string
title: Token Type
default: bearer
expires_in:
type: integer
title: Expires In
user:
$ref: '#/components/schemas/AuthUserResponse'
organization:
$ref: '#/components/schemas/AuthOrganizationResponse'
organization_role:
type: string
title: Organization Role
permissions:
$ref: '#/components/schemas/AuthPermissionResponse'
active_project:
$ref: '#/components/schemas/AuthWorkspaceResponse'
projects:
items:
$ref: '#/components/schemas/AuthWorkspaceResponse'
type: array
title: Projects
available_organizations:
items:
$ref: '#/components/schemas/AuthOrganizationSessionResponse'
type: array
title: Available Organizations
workspace:
$ref: '#/components/schemas/AuthWorkspaceResponse'
type: object
required:
- access_token
- expires_in
- user
- organization
- organization_role
- permissions
- active_project
- projects
- available_organizations
- workspace
title: TeamInvitationAcceptResponse
description: Auth/session payload returned after accepting an invitation.
AuthOrganizationResponse:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
type: object
required:
- id
- name
title: AuthOrganizationResponse
description: Organization details.
TeamMembersListResponse:
properties:
items:
items:
$ref: '#/components/schemas/TeamMemberResponse'
type: array
title: Items
type: object
required:
- items
title: TeamMembersListResponse
description: Collection of accepted members.
TeamInvitationPreviewResponse:
properties:
organization_id:
type: string
format: uuid
title: Organization Id
organization_name:
type: string
title: Organization Name
email:
type: string
format: email
title: Email
role:
type: string
title: Role
status:
type: string
title: Status
expires_at:
type: string
format: date-time
title: Expires At
inviter_name:
anyOf:
- type: string
- type: 'null'
title: Inviter Name
inviter_email:
anyOf:
- type: string
format: email
- type: 'null'
title: Inviter Email
team_access_enabled:
type: boolean
title: Team Access Enabled
type: object
required:
- organization_id
- organization_name
- email
- role
- status
- expires_at
- team_access_enabled
title: TeamInvitationPreviewResponse
description: Public preview of an invitation link.
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
TeamInvitationResponse:
properties:
id:
type: string
format: uuid
title: Id
organization_id:
type: string
format: uuid
title: Organization Id
email:
type: string
format: email
title: Email
role:
type: string
title: Role
invited_by_user_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Invited By User Id
expires_at:
type: string
format: date-time
title: Expires At
accepted_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Accepted At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
inviter_name:
anyOf:
- type: string
- type: 'null'
title: Inviter Name
inviter_email:
anyOf:
- type: string
format: email
- type: 'null'
title: Inviter Email
type: object
required:
- id
- organization_id
- email
- role
- expires_at
- created_at
- updated_at
title: TeamInvitationResponse
description: Pending organization invitation.
TeamInvitationAcceptRequest:
properties:
token:
type: string
maxLength: 512
minLength: 20
title: Token
type: object
required:
- token
title: TeamInvitationAcceptRequest
description: Payload for accepting an invitation.
AuthOrganizationSessionResponse:
properties:
organization:
$ref: '#/components/schemas/AuthOrganizationResponse'
organization_role:
type: string
title: Organization Role
permissions:
$ref: '#/components/schemas/AuthPermissionResponse'
active_project:
$ref: '#/components/schemas/AuthWorkspaceResponse'
projects:
items:
$ref: '#/components/schemas/AuthWorkspaceResponse'
type: array
title: Projects
type: object
required:
- organization
- organization_role
- permissions
- active_project
- projects
title: AuthOrganizationSessionResponse
description: Accessible organization plus its default project context.
ErrorResponse:
type: object
title: ErrorResponse
properties:
detail:
description: Legacy detail payload (string, object, or list).
error:
$ref: '#/components/schemas/ErrorEnvelope'
TeamInvitationsListResponse:
properties:
items:
items:
$ref: '#/components/schemas/TeamInvitationResponse'
type: array
title: Items
type: object
required:
- items
title: TeamInvitationsListResponse
description: Collection of pending invitations.
AuthUserResponse:
properties:
id:
type: string
format: uuid
title: Id
email:
type: string
format: email
title: Email
full_name:
anyOf:
- type: string
- type: 'null'
title: Full Name
timezone:
type: string
title: Timezone
email_verified:
type: boolean
title: Email Verified
created_at:
type: string
format: date-time
title: Created At
type: object
required:
- id
- email
- timezone
- email_verified
- created_at
title: AuthUserResponse
description: Authenticated user details.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
TeamActionResponse:
properties:
message:
type: string
title: Message
type: object
required:
- message
title: TeamActionResponse
description: Simple success response for team mutations.
Plan:
type: string
enum:
- free
- starter
- growth
- pro
- enterprise
title: Plan
description: Subscription plan tiers.
TeamInvitationCreateRequest:
properties:
email:
type: string
format: email
title: Email
role:
type: string
maxLength: 32
minLength: 4
title: Role
type: object
required:
- email
- role
title: TeamInvitationCreateRequest
description: Payload for creating a team invitation.
AuthPermissionResponse:
properties:
can_manage_members:
type: boolean
title: Can Manage Members
can_manage_billing:
type: boolean
title: Can Manage Billing
can_manage_api_keys:
type: boolean
title: Can Manage Api Keys
can_manage_integrations:
type: boolean
title: Can Manage Integrations
can_publish:
type: boolean
title: Can Publish
can_delete_assets:
type: boolean
title: Can Delete Assets
can_reset_sandbox:
type: boolean
title: Can Reset Sandbox
can_view_reports:
type: boolean
title: Can View Reports
can_delete_content:
type: boolean
title: Can Delete Content
type: object
required:
- can_manage_members
- can_manage_billing
- can_manage_api_keys
- can_manage_integrations
- can_publish
- can_delete_assets
- can_reset_sandbox
- can_view_reports
- can_delete_content
title: AuthPermissionResponse
description: Resolved role-based permission flags for the current organization.
WorkspaceEnvironment:
type: string
enum:
- production
- sandbox
title: WorkspaceEnvironment
description: Environment mode for an isolated project/workspace.
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
AuthWorkspaceResponse:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
environment:
$ref: '#/components/schemas/WorkspaceEnvironment'
timezone:
type: string
title: Timezone
plan:
$ref: '#/components/schemas/Plan'
type: object
required:
- id
- name
- environment
- timezone
- plan
title: AuthWorkspaceResponse
description: Authenticated project/workspace details.
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>`.'