Skip to main content
The PickFu v2 API is a greenfield surface mounted at https://api.pickfu.com/v2, alongside the existing v0/v1 API. It is designed for partners integrating PickFu into their own products — drafting a survey, funding it, publishing it, and reading the results — end-to-end, without ever loading app.pickfu.com. v2 keeps the same team, same account, same billing, and the same pricing as the PickFu app. It is a new contract, not a new product.
If you’re already using v1 (/v1), you don’t need to switch. v0, v1, and v2 run side-by-side on the same production API. v2 now covers most of what v1 does, so new integrations should start on v2. Stay on v1 for the features listed in What stays on v1.

Base URLs

The machine-readable OpenAPI 3.1 contract is served unauthenticated at GET /v2/openapi.json. Point client generators (Stripe-style SDKs, Postman, openapi-typescript) at that URL. It’s the source of truth for every v2 route, request body, and response shape.

What’s in v2

Me and ownership

GET /v2/me returns the calling credential, its scopes, and the owner it acts for. Requests act for a team or for a personal account.

Survey authoring

Draft, edit, read, list, duplicate, stop, and delete surveys. Every read includes a cost quote.

Publish + pay

POST /v2/surveys/{id}/publish pays for and publishes a draft in one call. POST /v2/surveys/{id}/add-respondents extends a live survey.

Templates

GET /v2/templates lists ready-made PickFu templates. Send a template block to POST /v2/surveys to create a draft at the template’s price.

Own-audience collection

GET /v2/surveys/{id}/collection-link returns a link you share with your own respondents.

Results

Per-question scores and winners, a Markdown results document, cursor-paged responses, follow-up answers, pins and ratings, heatmaps, click regions, and Van Westendorp analysis.

Exports

GET /v2/surveys/{id}/exports returns a signed CSV download link plus existing PDF and PNG reports.

Insights

Read Insights themes and the answers behind them across your surveys.

Projects and tags

Create, list, and update projects (prj_) and tags (tag_). Partner keys can replace a survey’s tags with PATCH /v2/surveys/{id}/labels.

Media

POST /v2/media hosts images and videos on the PickFu CDN. POST /v2/media/generate generates an image with credits.

Discovery

Audience traits (GET /v2/traits, GET /v2/traits/reporting), playbooks, help search, and semantic search over your surveys.

Billing

Credit balance, credit packs on Stripe Checkout or embedded payments, coupons, invoices, and saved cards via the Stripe Billing Portal.

Credentials

Create, list, and revoke API keys with /v2/api-keys. Partner keys create embedded Builder, Results, or Listing sessions with POST /v2/embed-sessions.

Webhooks

Signed survey.completed and order.paid deliveries.

What stays on v1

These features don’t have v2 endpoints yet. Keep using v1 for them:
  • The AI survey builder
  • Subscriptions and plan changes
  • PostPay
  • Credit auto-reload
v2 can read existing subscription invoices with GET /v2/invoices, but it doesn’t create or change subscriptions.

How v2 differs from v1

v2 is a different resource shape from v1. It is not a drop-in upgrade — resource IDs, error envelopes, and pagination shapes are all different by design. Choose one surface per integration.

Canonical PickFu IDs

Every v2 resource identifies itself with a canonical, prefixed PickFu ID: v2 never accepts legacy GUIDs or numeric poll IDs as resource IDs. Every /v2/surveys/{id} route takes only a srv_ ID. The browser results page URL is unchanged and continues to use the survey’s GUID. That’s a browser URL, not a v2 identifier.

Look up legacy poll IDs

If you stored numeric poll IDs or poll GUIDs from v1 or the PickFu app, resolve them to srv_ IDs on GET /v2/surveys. Use the legacyId filter for numeric IDs and the legacyGuid filter for GUIDs. Every survey summary in the list response includes a read-only integer legacyId and a nullable string legacyGuid next to its srv_ id.
To look up by GUID instead, pass legacyGuid:
  • For legacyId, pass 1–100 comma-separated positive integers (maximum 2147483647). Don’t add whitespace, leading zeros, or signs.
  • For legacyGuid, pass 1–100 comma-separated GUIDs. Each GUID contains only letters, digits, _, and -. Matching is exact and case-sensitive, so cquUldWstS doesn’t match CQUULDWSTS.
  • Don’t add whitespace or empty entries, and don’t repeat either parameter.
  • Duplicate IDs count toward the 100-ID limit but appear once in the results.
  • A malformed or out-of-range value returns 400 parameter_invalid with param set to "legacyId" or "legacyGuid".
  • The lookup only returns non-deleted surveys your key’s owner owns. An ID you don’t own looks the same as one that doesn’t exist: PickFu leaves it out of data. If no IDs resolve, the response is 200 with an empty data array.
  • legacyId and legacyGuid combine with each other and with externalId, status, limit, and cursor. When you pass several filters, a survey must match all of them. Archived surveys are excluded unless you pass status=archived.
Use the returned srv_ id for every other v2 call. GUIDs and numeric IDs are never accepted as path parameters.

Replace survey tags with a partner key

Partner API keys can replace the tags on a survey with PATCH /v2/surveys/{id}/labels. Use this to import tags from your own backend onto existing PickFu surveys. Regular API keys and embed session tokens can’t call this route, and it doesn’t require an embed session or externalId. The path takes a srv_ ID. If you only have a historical poll GUID, resolve it first:
  • The tags array replaces every tag on the survey. Send { "tags": [] } to clear them.
  • tags is the only accepted body field. Send up to 100 non-blank names of up to 255 characters each.
  • PickFu reuses an existing tag when the name matches case-insensitively within your key’s owner. Otherwise PickFu creates the tag.
  • Drafts and published surveys are both supported. The survey’s title, content, ownership, customer attribution, and payment don’t change.
  • PickFu checks that your key’s owner owns the survey, not which of your customers it belongs to. Your backend is responsible for picking the right customer’s survey.
  • The lookup in step 1 excludes archived surveys by default. Add status=archived to resolve an archived survey.

Scoped API keys

v2 accepts API keys (sk_live_…) and verified PickFu user OAuth access tokens, including MCP OAuth tokens. POST /v2/surveys/{id}/add-respondents and partner integration endpoints currently require an API key. Keys carry explicit scopes: read, write, and/or spend. A key with no scopes is rejected with 403 api_key_unscoped — there is no implicit “god mode” any more. See Authentication.

Personal and team owners

Every v2 request acts for one owner: a team or a personal account. An API key is fixed to the owner it was created for. A user access token can act for any team the user is an active member of, or for their personal account. To pick the owner for a user access token, send X-PickFu-Team with a tm_ ID or personal:
If you omit the header, PickFu selects the user’s newest active team membership, then the personal account. Surveys, orders, credits, and rate limits all belong to the selected owner. If you send X-PickFu-Team with an API key and it doesn’t match the key’s owner, the request fails with 403 team_mismatch.

Human confirmation before publishing

Each survey quote includes a quoteToken. Show the quoted price to a person, then send the same quoteToken to POST /v2/surveys/{id}/publish or POST /v2/surveys/{id}/payment-intent. If the price or credit balance changed since the quote, PickFu answers 409 quote_changed and charges nothing. Use this in agents and assistants so a person approves every spend. See Publishing and payments.

Stripe-shaped error envelope

Every non-2xx response — validation, 404, 429, unknown route — uses the same envelope:
requestId is also returned as X-Request-Id. Quote it when you file a support ticket. See Errors.

Cursor pagination

List endpoints return { data, hasMore, nextCursor }. There are no offsets and no totals. Pass nextCursor back as ?cursor=… to fetch the next page. See Pagination.

Idempotency

POST /v2/orders and POST /v2/surveys/{id}/publish require an Idempotency-Key header. Retrying with the same key and body replays the original 2xx response for 24 hours. See Idempotency.

Webhook signing

Every delivery is a { id, type, createdAt, data: { object } } envelope signed with X-PickFu-Signature: t=<unix-seconds>,v1=<hex-hmac>. See Webhooks.

The publish flow

The single interesting workflow in v2 is draft → quote → publish → results. Everything else supports it.
1

Create a draft

POST /v2/surveys returns a draft survey (status: "unpublished") with a cost quote and the team’s current creditBalance. Nothing is charged yet.
2

Read or refresh the quote

GET /v2/surveys/{id} and PATCH /v2/surveys/{id} both return a fresh cost quote. The most recent quote is what publish will honour.
3

Publish

POST /v2/surveys/{id}/publish charges the quote — credits first (oldest expiry first), then any shortfall to the team’s default saved card. 200 means paid, not yet live.If the quote has changed since your last read, publish answers 409 quote_changed and doesn’t charge anything. If there’s a shortfall and no saved card, it answers 402 insufficient_credits with the smallest pack that would cover it.
4

Wait for completion

Poll GET /v2/surveys/{id} (status moves in-progress → completed) or listen for the survey.completed webhook.Each question in the survey carries a results summary with totalResponses, per-option votes, score, percentage, and rank, and the persisted winningOptionId. Rating questions return an averageScore instead. Partial results appear while the survey is still collecting. See Question results for the scoring rules by question type.For individual answers, read GET /v2/surveys/{id}/responses or download GET /v2/surveys/{id}/exports/csv.
The publishing and payments page walks through funding, 402 recovery, and the Stripe Billing Portal.

Next steps

Authentication

Mint a key, choose scopes, and identify your team.

Errors

The { error, requestId } envelope and per-status guidance.

Rate limits

Per-team limits and how to back off on 429.

Pagination

Cursor pagination for every list endpoint.

Idempotency

Safe retries for order creation and publish.

Publishing and payments

Quotes, credits, saved cards, credit packs, and the Billing Portal.

Question results

Per-question votes, scores, ranks, and winners.

Templates

List templates and create drafts from them.

Webhooks

Endpoints, signing, and the survey.completed / order.paid events.