{ "openapi": "3.0.2", "info": { "title": "Klaviyo API (Beta)", "version": "2026-10-15.pre", "description": "The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.", "contact": { "name": "Klaviyo Developer Experience Team", "email": "developers@klaviyo.com", "url": "https://developers.klaviyo.com" }, "termsOfService": "https://www.klaviyo.com/legal/api-terms", "license": { "name": "License", "url": "https://www.klaviyo.com/legal" } }, "servers": [ { "url": "https://a.klaviyo.com", "description": "Production" } ], "security": [ { "Klaviyo-API-Key": [] } ], "paths": { "/api/social-values-reports": { "post": { "operationId": "query_social_values_beta", "summary": "Query Social Values", "description": "\n > \ud83d\udea7 This endpoint is in beta and subject to change.\n >\n > A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy) for more information.\n\nPoint-in-time aggregate statistics, optionally broken down by dimension.\n\nOmit ``dimension`` for a single account-level row, or set it to ``content``, ``creator``, or ``auto_reply`` for one row per item. The revenue statistics (``social_revenue``, ``auto_reply_revenue``, ``engagement_revenue``) can't be combined with a dimension. An invalid statistic / dimension combination returns ``422`` with code ``invalid_statistic``; a combination that is not yet available returns ``422`` with code ``statistic_not_yet_available``.

*Rate limits*:
Burst: `3/s`
Steady: `60/m`\n\n**Scopes:**\n`social:read`\n\n[OpenAPI Spec](https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/beta/apis/query_social_values_beta.json)", "parameters": [ { "name": "fields[social-values-report]", "in": "query", "description": "For more information please visit https://developers.klaviyo.com/en/v2026-10-15.pre/reference/api-overview#sparse-fieldsets", "required": false, "schema": { "type": "array", "items": { "type": "string", "enum": [ "id", "results" ] } }, "explode": false }, { "name": "revision", "in": "header", "description": "API endpoint revision (format: YYYY-MM-DD[.suffix])", "required": true, "schema": { "type": "string", "default": "2026-10-15.pre" } } ], "requestBody": { "description": "Request body for the social-values-report endpoint.", "required": true, "content": { "application/vnd.api+json": { "schema": { "$ref": "#/components/schemas/SocialValuesReportQueryRequestDataWrapper" } } } }, "responses": { "200": { "description": "Success", "content": { "application/vnd.api+json": { "schema": { "$ref": "#/components/schemas/SocialValuesReportResponseDataWrapper" } } } }, "4XX": { "$ref": "#/components/responses/ClientError" }, "5XX": { "$ref": "#/components/responses/ServerError" } }, "tags": [ "Beta APIs" ], "x-klaviyo-beta-revision": "2026-10-15.pre", "x-klaviyo-operation-aliases": [ "create_social_values_report" ], "x-klaviyo-pre-release": "BETA", "x-klaviyo-ratelimit": { "burst": "3/s", "steady": "60/m" }, "x-klaviyo-scopes": [ "social:read" ], "x-klaviyo-subtag": "Reporting" } } }, "components": { "responses": { "ClientError": { "description": "Client Error", "content": { "application/vnd.api+json": { "schema": { "type": "object", "properties": { "errors": { "type": "array", "items": { "type": "object", "required": [ "id", "code", "title", "detail" ], "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "title": { "type": "string" }, "detail": { "type": "string" }, "source": { "type": "object", "properties": { "pointer": { "type": "string" }, "parameter": { "type": "string" } } } } } } }, "required": [ "errors" ] } } } }, "ServerError": { "description": "Server Error", "content": { "application/vnd.api+json": { "schema": { "type": "object", "properties": { "errors": { "type": "array", "items": { "type": "object", "required": [ "id", "code", "title", "detail" ], "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "title": { "type": "string" }, "detail": { "type": "string" }, "source": { "type": "object", "properties": { "pointer": { "type": "string" }, "parameter": { "type": "string" } } } } } } }, "required": [ "errors" ] } } } } }, "schemas": { "ObjectLinks": { "type": "object", "properties": { "self": { "type": "string", "format": "uri" } }, "required": [ "self" ] }, "SocialReportTimeframeRequest": { "type": "object", "properties": { "key": { "description": "Named preset window.", "type": "string", "example": "last_90_days", "enum": [ "last_7_days", "last_30_days", "last_90_days", "month_to_date" ], "nullable": true }, "start": { "description": "ISO-8601 lower-bound (inclusive) for the report window.", "type": "string", "format": "date-time", "example": "2026-08-07T00:00:00+00:00", "nullable": true }, "end": { "description": "ISO-8601 upper-bound (exclusive) for the report window.", "type": "string", "format": "date-time", "example": "2026-08-14T00:00:00+00:00", "nullable": true } } }, "SocialValuesData": { "type": "object", "properties": { "groupings": { "description": "Bucket-identifying values for this row. Empty when the request omits a dimension for a single account-level row. dimension=content rows also include 'posted_date' (YYYY-MM-DD) when available.", "type": "object", "example": { "content": "a2f90559e8e7471a92f17a3c8b62636e", "posted_date": "2026-08-15" } }, "statistics": { "description": "Computed metrics for this row. Only the statistics named in the request appear here. A value is null when the aggregate has no data to report (e.g. no post reported a value) rather than being omitted.", "type": "object", "example": { "likes": 12, "views": 340, "engagement_rate": 0.83333 } } }, "required": [ "groupings", "statistics" ] }, "SocialValuesFilterRequest": { "type": "object", "properties": { "content_type": { "description": "Restrict dimension=content rows to owned or user_generated content. Ignored for every other dimension. Omit to rank across both.", "type": "string", "enum": [ "owned", "user_generated" ], "nullable": true } } }, "SocialValuesReportQueryRequest": { "type": "object", "properties": { "statistics": { "description": "Statistics to compute. Combine multiple in one call to receive all of them per row.", "type": "array", "items": { "$ref": "#/components/schemas/SocialValuesStatistic" }, "example": [ "likes", "views", "engagement_rate" ] }, "timeframe": { "description": "Time window for the report.", "example": { "key": "last_90_days" }, "allOf": [ { "$ref": "#/components/schemas/SocialReportTimeframeRequest" } ] }, "dimension": { "description": "Optional breakdown dimension. Omit for a single account-level row. Not valid combined with any revenue statistic (engagement_revenue, auto_reply_revenue, social_revenue).", "type": "string", "example": "content", "enum": [ "content", "creator", "auto_reply" ], "nullable": true }, "filter": { "description": "Statistic-appropriate filters.", "allOf": [ { "$ref": "#/components/schemas/SocialValuesFilterRequest" } ], "nullable": true }, "sort": { "description": "Sort key when dimension is set; prefix '-' for descending. Ignored otherwise.", "type": "string", "nullable": true }, "page_cursor": { "description": "Cursor for the next page of results.", "type": "string", "nullable": true }, "page_size": { "description": "Rows per page. Only applies when dimension is set.", "type": "integer", "example": 20, "default": 20 } }, "required": [ "statistics", "timeframe" ] }, "SocialValuesReportQueryRequestData": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/SocialValuesReportResourceName" }, "attributes": { "$ref": "#/components/schemas/SocialValuesReportQueryRequest" } }, "required": [ "type", "attributes" ] }, "SocialValuesReportQueryRequestDataWrapper": { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/SocialValuesReportQueryRequestData" } }, "required": [ "data" ] }, "SocialValuesReportResourceName": { "type": "string", "enum": [ "social-values-report" ] }, "SocialValuesReportResponse": { "type": "object", "properties": { "results": { "description": "Computed values-report rows.", "type": "array", "items": { "$ref": "#/components/schemas/SocialValuesData" } } }, "required": [ "results" ] }, "SocialValuesReportResponseData": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/SocialValuesReportResourceName" }, "id": { "description": "Opaque identifier for the values report response.", "type": "string", "example": "a2f90559-e8e7-471a-92f1-7a3c8b62636e" }, "attributes": { "$ref": "#/components/schemas/SocialValuesReportResponse" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "type", "id", "attributes", "links" ] }, "SocialValuesReportResponseDataWrapper": { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/SocialValuesReportResponseData" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ] }, "SocialValuesStatistic": { "description": "Metrics computable for each social values-report row.", "type": "string", "enum": [ "engagement_revenue", "auto_reply_revenue", "social_revenue", "views", "engagement_rate", "engagements_total", "followers", "follower_growth", "shares", "saves", "posts", "likes", "comments", "engagement_per_post", "tags_used", "funnel_started", "funnel_responded", "funnel_submitted_identifier", "funnel_ended", "completion_rate", "subscribers", "revenue" ] } }, "securitySchemes": { "Klaviyo-API-Key": { "type": "apiKey", "in": "header", "name": "Authorization", "description": "Private key authentication for /api/ endpoints is performed by setting the `Authorization` header to `Klaviyo-API-Key your-private-api-key`
For more information please visit https://developers.klaviyo.com/en/v2026-10-15.pre/reference/api-overview#authentication", "x-default": "Klaviyo-API-Key your-private-api-key" } } }, "tags": [ { "name": "Beta APIs", "description": "beta apis" } ] }