get https://a.klaviyo.com/api/custom-metrics
Get all custom metrics in an account.
Rate limits:
Burst: 3/s
Steady: 60/m
Scopes:
metrics:read
Responses
Get all custom metrics in an account.
Rate limits:
Burst: 3/s
Steady: 60/m
Scopes:
metrics:read
xxxxxxxxxx
curl --request GET \
--url https://a.klaviyo.com/api/custom-metrics \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/vnd.api+json' \
--header 'revision: 2025-04-15'
xxxxxxxxxx
101}
{
"data": [
{
"type": "custom-metric",
"id": "925e385b52fb405715f3616c337cc65c",
"attributes": {
"name": "My custom metric",
"created": "2025-04-15T00:00:00Z",
"updated": "2025-04-15T00:00:00Z",
"definition": {
"aggregation_method": "value",
"metric_groups": [
{
"metric_id": "AAAAAA",
"metric_filters": [
{
"property": "my_string_property",
"filter": {
"type": "string",
"operator": "starts-with",
"value": "some_substring"
}
},
{
"property": "my_numeric_property",