Overview
The API Gateway is the entry point for all pluggable APIs.
Base URL
- Production API - https://api.picsart.com/gw-v2
- Stage API - https://api-stage.picsartstage2.com/gw-v2
- Dev API - https://api-dev.picsartstage2.com/gw-v2
Internal Base URL
- Production API - http://api-deft-virginia-prod.svc-internal.picsart.loc/v2
- Stage API - http://api-deft-virginia-stage.svc-internal.picsart.loc/v2
- Dev API - http://api-deft-virginia-dev.svc-internal.picsart.loc/v2
Authorization
- Client auth (
x-app-authorization): Client Token (passport). Required on every endpoint. - User auth (
Authorization): OAuth2 User Access Token. Required varies per endpoint. - Required headers (POST):
platformandx-touchpoint. Missing either →400 { reason: "missing_headers" }.
Workflows API
/workflows/:name/*
The primary entry point for executing workflows.
- Client auth: required
- User auth: required
The * resolves to a sub-route that selects the execution mode, documented in the following API pages. These sub-routes are available across all workflow entry points (regular, guest, and internal).
Guest API
/guest/workflows/:name/*
Run an allowlisted workflow without a user account.
- User auth: none
- reCAPTCHA: required on
POST(score ≥ 0.6) - Rate limits (POST): 3 / 7 days per IP + global 4000/hour (per-workflow override)
- Allowlist only (e.g.
image-gen-flow,remove-background,topaz/upscale/image,ai-enhance/diffbir,pcp/v1/chat/completions)
Internal (backend-to-backend)
/v2/workflows/:name/*
Service-to-service entry point for executing workflows. Exposed on the internal gateway only.
- User auth: required
- Impersonation: a caller holding the
WORKFLOWS_IMPERSONATIONscope can run a workflow on behalf of another user by sendingx-act-as-user-id; the request then executes as that user.
MCP API
/:mcpServerName/mcp
Entry point for Model Context Protocol clients
(Claude, ChatGPT). mcpServerName resolves to your worker by the
pa-<mcpServerName>-pluggable-worker naming convention.
- Method:
POST - User auth: required
See MCP Support for how to build and expose tools and resources.