---
updatedAt: 2026-08-24T09:14:57.000Z
agentTools:
  projectIndex: https://developers.vibe.co/llms.txt
---

# Query purchase events

Returns detailed information about purchase events attributed to Vibe campaigns, including timestamps, values, and associated campaign and strategy data.
**Scopes:**
`reporting:read`
<br>*Rate limits*:<br>Burst: `2/s`<br>Steady: `60/m`


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/reports/purchases": {
      "post": {
        "description": "Returns detailed information about purchase events attributed to Vibe campaigns, including timestamps, values, and associated campaign and strategy data.\n**Scopes:**\n`reporting:read`\n<br>*Rate limits*:<br>Burst: `2/s`<br>Steady: `60/m`\n",
        "operationId": "queryPurchaseEvents",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseEventQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Purchase event list response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseEventList"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingApiKey": {
                    "summary": "Missing API key",
                    "value": {
                      "error": {
                        "type": "validation",
                        "message": "Missing API Key",
                        "status": 400,
                        "detail": null,
                        "request_id": "req_8f3a4b2c",
                        "doc_url": null
                      }
                    }
                  },
                  "validationError": {
                    "summary": "Validation error",
                    "value": {
                      "error": {
                        "type": "validation",
                        "message": "Validation error",
                        "status": 400,
                        "detail": {
                          "validation": [
                            "id must be a string"
                          ]
                        },
                        "request_id": "req_8f3a4b2c",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidApiKey": {
                    "summary": "Invalid API key",
                    "value": {
                      "error": {
                        "type": "invalid_token",
                        "message": "Unauthorized",
                        "status": 401,
                        "detail": null,
                        "request_id": "req_8f3a4b2c",
                        "doc_url": "https://developers.vibe.co/errors/invalid-token"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "insufficientScope": {
                    "summary": "Missing required scope",
                    "value": {
                      "error": {
                        "type": "insufficient_scope",
                        "message": "Missing required scope",
                        "status": 403,
                        "detail": {
                          "required": "reporting:read",
                          "granted": [
                            "test"
                          ]
                        },
                        "request_id": "req_8f3a4b2c",
                        "doc_url": "https://developers.vibe.co/reference/oauth2token"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Query purchase events",
        "tags": [
          "Reporting"
        ],
        "x-rate-limit": {
          "rps": 2,
          "rpm": 60
        },
        "x-scopes": [
          "reporting:read"
        ]
      }
    }
  },
  "info": {
    "title": "Vibe Public API",
    "description": "Vibe Public API revision 2026-06-01",
    "version": "2026-06-01",
    "contact": {}
  },
  "tags": [
    {
      "name": "Reporting",
      "description": "Aggregated delivery, spend, and outcome metrics, plus the purchase events attributed to Vibe campaigns.\n\nReports run asynchronously: create a report, poll it until its status is `READY`, then download it from the signed `download_url`, which is valid for 24 hours. Purchase events are pulled directly and are useful for reconciling Vibe reporting against e-commerce backends.\n\nDate windows are limited to the last 45 days. Reports typically complete within a few minutes — **do not poll more than once every 10 seconds**."
    }
  ],
  "servers": [
    {
      "url": "https://api.vibe.co",
      "description": "Production API"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "ErrorDetail": {
        "type": "object",
        "properties": {
          "required": {
            "type": "string",
            "example": "audiences:write"
          },
          "granted": {
            "example": [
              "audiences:read",
              "reporting:read"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "required",
          "granted"
        ]
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "insufficient_scope",
              "invalid_token",
              "validation",
              "internal_error"
            ]
          },
          "message": {
            "type": "string"
          },
          "status": {
            "type": "number",
            "example": 403
          },
          "detail": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorDetail"
              }
            ]
          },
          "request_id": {
            "type": "string",
            "example": "req_8f3a4b2c"
          },
          "doc_url": {
            "type": "string",
            "example": "https://developers.vibe.co/reference/oauth2token",
            "nullable": true
          }
        },
        "required": [
          "type",
          "message",
          "status",
          "request_id"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ApiError"
          }
        },
        "required": [
          "error"
        ]
      },
      "ReportFilter": {
        "type": "object",
        "properties": {
          "dimension": {
            "type": "string",
            "description": "Dimension to filter on",
            "enum": [
              "event_source_id",
              "campaign_id",
              "strategy_id"
            ]
          },
          "values": {
            "minItems": 1,
            "description": "Values to include",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "dimension"
        ]
      },
      "PurchaseEventQuery": {
        "type": "object",
        "properties": {
          "advertiser_id": {
            "type": "string",
            "format": "uuid",
            "description": "Advertiser to query purchase events for"
          },
          "start_date": {
            "type": "string",
            "description": "Start of the query period (inclusive)",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "description": "End of the query period (exclusive)",
            "format": "date"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier for reported data",
            "enum": [
              "UTC",
              "Europe/Amsterdam",
              "Europe/Berlin",
              "Europe/Helsinki",
              "Europe/Istanbul",
              "Europe/London",
              "Europe/Stockholm",
              "Asia/Seoul",
              "Asia/Shanghai",
              "Asia/Tel_Aviv",
              "America/Denver",
              "America/Los_Angeles",
              "America/New_York",
              "America/Phoenix"
            ],
            "default": "UTC"
          },
          "filters": {
            "description": "Optional filters, combined with AND",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportFilter"
            }
          }
        },
        "required": [
          "advertiser_id",
          "start_date",
          "end_date"
        ]
      },
      "PurchaseEvent": {
        "type": "object",
        "properties": {
          "purchase_id": {
            "type": "string",
            "description": "Unique identifier for the purchase"
          },
          "event_type": {
            "type": "string",
            "example": "purchase"
          },
          "event_value": {
            "type": "number",
            "description": "Value of the purchase in USD"
          },
          "impression_timestamp": {
            "type": "string",
            "description": "Time at which the ad impression occurred",
            "format": "date-time"
          },
          "event_timestamp": {
            "type": "string",
            "description": "Time at which the purchase event occurred",
            "format": "date-time"
          },
          "advertiser_id": {
            "type": "string",
            "format": "uuid"
          },
          "advertiser_name": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string",
            "format": "uuid"
          },
          "campaign_name": {
            "type": "string"
          },
          "strategy_id": {
            "type": "string",
            "format": "uuid"
          },
          "strategy_name": {
            "type": "string"
          }
        },
        "required": [
          "purchase_id",
          "event_type",
          "event_value",
          "impression_timestamp",
          "event_timestamp",
          "advertiser_id",
          "advertiser_name",
          "campaign_id",
          "campaign_name",
          "strategy_id",
          "strategy_name"
        ]
      },
      "PurchaseEventList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseEvent"
            }
          }
        },
        "required": [
          "data"
        ]
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ]
}
```