Skip to main content
POST
Create Calculated Metric

Authorizations

Authorization
string
header
required

Oviond API key (prefix oviond_) sent as a Bearer token — the credential for REST/programmatic and headless integrations. Manage keys in Settings → API Keys. API keys do NOT authenticate the MCP endpoint (/mcp), which uses OAuth 2.1 + PKCE.

Body

application/json
name
string
required
Minimum string length: 1
Example:

"CTR"

formula
required

Array of formula tokens in evaluation order. CTR = clicks ÷ impressions × 100 is five tokens: METRIC(clicks), OPERATOR(÷), METRIC(impressions), OPERATOR(×), NUMBER(100). Operators accept both the Unicode × ÷ the UI writes and the ASCII * / on migrated rows.

symbol
enum<string>
required
Available options:
numbers,
decimal,
%,
currency
Example:

"%"

Response

201 - application/json

Metric created

success
enum<boolean>
required
Available options:
true
data
object
required