---
title: "Conversions"
method: GET
path: "/conversions"
tags: ["Analytics"]
---

# Conversions

`GET /conversions`

## Request

- Base URL: `https://api.onelence.com/v1`
- URL: `https://api.onelence.com/v1/conversions`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.onelence.com/oauth/authorize`, token URL `https://api.onelence.com/oauth/token`, scopes: `analytics:read`)
  - HTTP bearer

Conversions newest first with type, value, attribution method, affiliate and coupon, and the total for the window. Pass site to keep one site's conversions; without it, the whole workspace. Visitor identities are never included.

## Query parameters

- `site` string
- `start` string
- `end` string
- `limit` integer
- `cursor` string

## Response `200`

Success.

- object
  - `object` 'list', required
  - `data` object[], required
    - `object` 'conversion', required
    - `id` string, required
    - `occurred_at` string, nullable, required
    - `type` string, nullable, required
    - `value` number, nullable, required
    - `currency` string, nullable, required
    - `attribution` string, nullable, required
    - `affiliate` string, nullable, required
    - `coupon` string, nullable, required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required
  - `window` object, required
    - `start` string, nullable, required
    - `end` string, nullable, required
  - `total` number, required
  - `attribution` 'available' | 'unavailable', required
  - `site` object, nullable, required
    - `id` string, required
    - `domain` string, required

## Other responses

- `400`: Invalid input; `error.param` names the field.
- `401`: Missing, expired or revoked token. WWW-Authenticate points to the resource metadata.
- `402`: subscription_required or upgrade_required; the error carries billing_url.
- `403`: insufficient_scope or admin_required.
- `404`: Unknown endpoint, site, source or record.
- `429`: Rate limited. Retry after Retry-After seconds.
- `500`: OneLence could not complete the request.

---

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