---
title: "Queue analytics collection for a workspace"
method: POST
path: "/analytics/refresh"
tags: ["Analytics"]
---

# Queue analytics collection for a workspace

`POST /analytics/refresh`

## Request

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

## Request body

- RefreshAnalyticsInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `workspace_id` string, required: Workspace ID

## Response `200`

OK

- RefreshAnalyticsOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `message` string, required
  - `queued` integer, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `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)
