docs/ai-agents/connectors/pinterest/README.md
The Pinterest agent connector is a Python package that equips AI agents to interact with Pinterest through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.
Connector for the Pinterest API v5, enabling access to Pinterest advertising and content management data. Supports reading ad accounts, boards, campaigns, ad groups, ads, board sections, board pins, catalogs, catalog feeds, catalog product groups, audiences, conversion tags, customer lists, and keywords.
The Pinterest connector is optimized to handle prompts like these.
The Pinterest connector isn't currently able to handle prompts like these.
uv pip install airbyte-agent-pinterest
Connectors can run in open source or hosted mode.
In open source mode, you provide API credentials directly to the connector.
from airbyte_agent_pinterest import PinterestConnector
from airbyte_agent_pinterest.models import PinterestAuthConfig
connector = PinterestConnector(
auth_config=PinterestAuthConfig(
refresh_token="<Pinterest OAuth2 refresh token.>",
client_id="<Pinterest OAuth2 client ID.>",
client_secret="<Pinterest OAuth2 client secret.>"
)
)
@agent.tool_plain # assumes you're using Pydantic AI
@PinterestConnector.tool_utils
async def pinterest_execute(entity: str, action: str, params: dict | None = None):
return await connector.execute(entity, action, params or {})
In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.
If your Airbyte client can access multiple organizations, also set organization_id.
This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.
from airbyte_agent_pinterest import PinterestConnector, AirbyteAuthConfig
connector = PinterestConnector(
auth_config=AirbyteAuthConfig(
customer_name="<your_customer_name>",
organization_id="<your_organization_id>", # Optional for multi-org clients
airbyte_client_id="<your-client-id>",
airbyte_client_secret="<your-client-secret>"
)
)
@agent.tool_plain # assumes you're using Pydantic AI
@PinterestConnector.tool_utils
async def pinterest_execute(entity: str, action: str, params: dict | None = None):
return await connector.execute(entity, action, params or {})
This connector supports the following entities and actions. For more details, see this connector's full reference documentation.
| Entity | Actions |
|---|---|
| Ad Accounts | List, Get, Search |
| Boards | List, Get, Search |
| Campaigns | List, Search |
| Ad Groups | List, Search |
| Ads | List, Search |
| Board Sections | List, Search |
| Board Pins | List, Search |
| Catalogs | List, Search |
| Catalogs Feeds | List, Search |
| Catalogs Product Groups | List, Search |
| Audiences | List, Search |
| Conversion Tags | List, Search |
| Customer Lists | List, Search |
| Keywords | List, Search |
For all authentication options, see the connector's authentication documentation.
See the official Pinterest API reference.