---
title: "Prepare a fresh local repurpose handoff"
method: POST
path: "/analytics/repurpose"
tags: ["Analytics"]
---

# Prepare a fresh local repurpose handoff

`POST /analytics/repurpose`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/analytics/repurpose`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

Resolves bounded stored source fields and private evidence without creating or changing a Publication, Rendition, provider item, or AI build.

## Request body

- RepurposeAnalyticsInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `range` RepurposeRange, required
    - `days` 7 | 30 | 90, required: Reporting window in days
  - `reference` ContentReference, required
    - `publication_id` string
    - `rendition_id` string
    - `type` 'openpost', required
  - `workspace_id` string, required: Workspace ID

## Response `200`

OK

- RepurposeSource
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `content_profile` string, required
  - `destination_account_ids` string[], nullable, required
  - `evidence` RepurposeEvidence[], nullable, required
    - `collected_at` string, date-time, required
    - `metadata` AnalyticsMetricMetadata, required
      - `aggregation` 'current_snapshot' | 'lifetime_total' | 'reporting_period_total' | 'reporting_period_average', required
      - `period_end` string, date-time
      - `period_start` string, date-time
      - `scale` integer
      - `source` string
      - `unit` 'count' | 'milliseconds' | 'basis_points', required
    - `metric` string, required
    - `scope` 'requested_range' | 'lifetime' | 'current_snapshot', required
    - `value` integer, required
  - `handoff_id` string, required
  - `provenance` RepurposeProvenance, required
    - `origin` 'openpost', required
    - `platform` string, required
    - `published_at` string, date-time, required
    - `reference` ContentReference, required
      - `publication_id` string
      - `rendition_id` string
      - `type` 'openpost', required
  - `range` RepurposeRange, required
    - `days` 7 | 30 | 90, required: Reporting window in days
  - `source_text` string, required
  - `title` string, required
  - `workspace_id` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `410`: Gone
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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