---
title: "Collect Account Analytics"
method: POST
path: "/v1/analytics/accounts/{account_id}/collect"
tags: ["Analytics"]
---

# Collect Account Analytics

`POST /v1/analytics/accounts/{account_id}/collect`

## Request

- Base URL: `https://api.pinbridge.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pinbridge.io/v1/analytics/accounts/{account_id}/collect`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Collect an account's analytics now instead of waiting for the nightly run.

This is a user action, so PinBridge refreshes the account's Pinterest token
if needed (the nightly run never does) and queues a sync. A paused account
resumes, and any missed days (up to 90) are filled in. Limited to once per
account every 15 minutes.

## Path parameters

- `account_id` string, uuid, required

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Response `202`

Successful Response

- AnalyticsCollectResponse: Result of asking PinBridge to collect an account's analytics now.
  - `account_id` string, uuid, required
  - `status` 'queued', required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pinbridge/apis/pinbridge-api.md) · [All operations](https://skmtc.dev/pinbridge/apis/pinbridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pinbridge/apis/pinbridge-api/revisions/b17603589d01?raw)
