OverviewProductsPlatformsAPI ReferenceResources

Conversions API

Send server-side events to Pinterest with POST /v1/events and read their Event Quality Score.


Send server-side events to Pinterest with POST /v1/events on your pinterestads account, then read their Event Quality Score.

Before you start

The connected Pinterest user needs a Business Access role on the ad account (403 otherwise).

destinationId is the numeric ad account id: Pinterest attributes to the ad account, not to a tag. GET /v1/ads/conversions/destinations lists them.

Send a conversion event

The call maps to Pinterest's POST /v5/ad_accounts/{id}/events. Events deduplicate against the Pinterest tag by eventId, the same id the Shopify install sends.

FieldPinterest
destinationIdThe numeric ad account id.
eventNameStandard names map to Pinterest's: Purchase = checkout, AddToCart, InitiateCheckout, AddPaymentInfo, Lead, CompleteRegistration = signup, Subscribe, ViewContent, Search, PageView = page_visit. Any other string is sent as is, so it matches a custom event of that name.
userNeeds email, or ipAddress plus userAgent. Identifiers are hashed before they leave Zernio.
user.clickIds.epikThe epik click id (the _epik cookie), sent as click_id.
actionSourceweb stays web; offline, crm, phone_call, system_generated and business_messaging become offline. App events need platformData.action_source app_android or app_ios.
testCodeAny value sends the batch with test=true: Pinterest validates it without recording it.
consent.adUserData: "DENIED"Sets opt_out on every event.
TypeScript
const { data } = await zernio.conversions.sendEvents({
  body: {
    profileId: '66a1f0c2a4b9d3e8f1a2b3c4',
    destinations: [{ accountId: '66b2e19d8c3f5a7e9d0b1c2d', destinationId: '549755885175' }],
    events: [{
      eventName: 'Purchase',
      eventTime: 1804150800,
      eventId: 'order_1042',
      value: 59.9,
      currency: 'USD',
      user: { email: 'ana@example.com', clickIds: { epik: 'dj0yJnU9...' } }
    }]
  }
});

Response (200):

JSON
{
  "eventsReceived": 1,
  "stored": true,
  "testCode": null,
  "destinations": [
    { "accountId": "66b2e19d8c3f5a7e9d0b1c2d", "destinationId": "549755885175", "platform": "pinterestads", "eventsSent": 1, "eventsFailed": 0, "failures": [] }
  ],
  "queuedDestinations": 0
}

Pinterest answers per event, so one bad event does not fail the batch. Failed events are listed in failures.

Event Quality Score

Call this endpoint (reference):

Text
GET /v1/ads/conversions/quality?accountId=...&destinationId=<ad account id>

It returns Pinterest's Event Quality Score for Conversions API web events over the last 14 days:

  • one row per event name
  • each identifier's coverage in matchKeys
  • eventCoveragePercentage, the share of events whose event_id overlaps with the tag

Pinterest has no composite score, so compositeScore is absent.

If it fails

ErrorCauseFix
INVALID_EVENT in failuresAn event without an identity, caught before sendingSend user.email, or user.ipAddress plus user.userAgent.
PINTEREST_EVENT_FAILED in failuresPinterest rejected that eventRead the failure's message, fix the event and resend it.
403The Pinterest user lacks a Business Access role on the ad accountGrant a Business Access role on the ad account.
Event recorded nowheretestCode was set, so Pinterest validated the batch without recording itDrop testCode for live events.
Was this page helpful?

On this page