Skip to content

Store analytics summary

GET
/v1/analytics/summary
curl --request GET \
--url 'https://api.octaneai.com/v1/analytics/summary?period=7d&tz=UTC' \
--header 'Authorization: Bearer <token>'
period
Period
string
default: 7d
Allowed values: 7d 30d
tz
Tz
string
default: UTC <= 64 characters
if-none-match
Any of:
string
<= 1024 characters

Analytics for the range. ETag identifies the cached response.

Media typeapplication/json
AnalyticsSummary
object
completions
required
SummaryCount
object
current
required
Current
integer
delta_pct
required
Any of:
number
previous
required
Previous
integer
sparkline
required
Sparkline
Array<integer>
freshness
required
Freshness
object
as_of
required
Any of:
string format: date-time
closed_days_through
required
Closed Days Through
string format: date
next_refresh_at
required
Any of:
string format: date-time
pending
required
Pending
boolean
stale
required
Stale
boolean
today_live
required
Today Live
boolean
opt_ins
required
SummaryCount
object
current
required
Current
integer
delta_pct
required
Any of:
number
previous
required
Previous
integer
sparkline
required
Sparkline
Array<integer>
orders
required
SummaryCount
object
current
required
Current
integer
delta_pct
required
Any of:
number
previous
required
Previous
integer
sparkline
required
Sparkline
Array<integer>
period
required
Period
string
Allowed values: 7d 30d
previous_range
required
AnalyticsRange
object
days
required
Days
integer
end
required
End
string format: date
start
required
Start
string format: date
timezone
required
Timezone
string
range
required
AnalyticsRange
object
days
required
Days
integer
end
required
End
string format: date
start
required
Start
string format: date
timezone
required
Timezone
string
revenue
required
SummaryMoney
object
current
required
Any of:
Money
object
amount
required
Amount
string
currency
required
Currency
string
delta_pct
required
Any of:
number
previous
required
Any of:
Money
object
amount
required
Amount
string
currency
required
Currency
string
sparkline
required
Sparkline
Array
Any of:
Money
object
amount
required
Amount
string
currency
required
Currency
string
starts
required
SummaryCount
object
current
required
Current
integer
delta_pct
required
Any of:
number
previous
required
Previous
integer
sparkline
required
Sparkline
Array<integer>
views
required
SummaryCount
object
current
required
Current
integer
delta_pct
required
Any of:
number
previous
required
Previous
integer
sparkline
required
Sparkline
Array<integer>
Example
{
"completions": {
"current": 10,
"delta_pct": 100,
"previous": 5,
"sparkline": [
1,
2,
1,
2,
1,
2,
1
]
},
"freshness": {
"as_of": "2026-09-07T12:00:00Z",
"closed_days_through": "2026-09-06",
"next_refresh_at": "2026-09-07T13:00:00Z",
"pending": false,
"stale": false,
"today_live": true
},
"opt_ins": {
"current": 10,
"delta_pct": 100,
"previous": 5,
"sparkline": [
1,
2,
1,
2,
1,
2,
1
]
},
"orders": {
"current": 10,
"delta_pct": 100,
"previous": 5,
"sparkline": [
1,
2,
1,
2,
1,
2,
1
]
},
"period": "7d",
"previous_range": {
"days": 7,
"end": "2026-08-31",
"start": "2026-08-25",
"timezone": "UTC"
},
"range": {
"days": 7,
"end": "2026-09-07",
"start": "2026-09-01",
"timezone": "UTC"
},
"revenue": {
"current": {
"amount": "12.50",
"currency": "USD"
},
"previous": {
"amount": "0",
"currency": "USD"
},
"sparkline": [
{
"amount": "12.50",
"currency": "USD"
},
{
"amount": "0",
"currency": "USD"
},
{
"amount": "0",
"currency": "USD"
},
{
"amount": "0",
"currency": "USD"
},
{
"amount": "0",
"currency": "USD"
},
{
"amount": "0",
"currency": "USD"
},
{
"amount": "0",
"currency": "USD"
}
]
},
"starts": {
"current": 10,
"delta_pct": 100,
"previous": 5,
"sparkline": [
1,
2,
1,
2,
1,
2,
1
]
},
"views": {
"current": 10,
"delta_pct": 100,
"previous": 5,
"sparkline": [
1,
2,
1,
2,
1,
2,
1
]
}
}
ETag
string
Example
"5a23d8"

If-None-Match matches the cached response; no body is sent.

ETag
string

The key is missing, malformed, revoked or expired.

Media typeapplication/problem+json
Problem

The body of every non-2xx response.

object
detail
required
Detail

What went wrong, for people

string
errors
Any of:
Array<object>
FieldError
object
field
required
Field

The input that failed, as a dotted path (body.label, query.from)

string
message
required
Message

Why it failed

string
export
Any of:
object
key
additional properties
any
request_id
required
Request Id

The same value as the Request-Id header; quote it to support

string
required
Any of:
Array<string>
retry_after
Any of:
integer
status
required
Status

The HTTP status of the response

integer
title
required
Title

The machine-readable error code

string
type
required
Type

A stable URI naming the error, on this API’s public host

string
Example
{
"detail": "The API key is missing, malformed, revoked or expired",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": 401,
"title": "invalid_api_key",
"type": "https://api.octaneai.com/errors/invalid_api_key"
}
WWW-Authenticate
string
Example
Bearer

The store’s plan has no API access, or the key lacks the scope.

Media typeapplication/problem+json
Problem

The body of every non-2xx response.

object
detail
required
Detail

What went wrong, for people

string
errors
Any of:
Array<object>
FieldError
object
field
required
Field

The input that failed, as a dotted path (body.label, query.from)

string
message
required
Message

Why it failed

string
export
Any of:
object
key
additional properties
any
request_id
required
Request Id

The same value as the Request-Id header; quote it to support

string
required
Any of:
Array<string>
retry_after
Any of:
integer
status
required
Status

The HTTP status of the response

integer
title
required
Title

The machine-readable error code

string
type
required
Type

A stable URI naming the error, on this API’s public host

string
Examples
{
"detail": "The API key does not carry the scope this route needs",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"required": [
"quizzes:read"
],
"status": 403,
"title": "insufficient_scope",
"type": "https://api.octaneai.com/errors/insufficient_scope"
}

A request parameter is invalid.

Media typeapplication/problem+json
Problem

The body of every non-2xx response.

object
detail
required
Detail

What went wrong, for people

string
errors
Any of:
Array<object>
FieldError
object
field
required
Field

The input that failed, as a dotted path (body.label, query.from)

string
message
required
Message

Why it failed

string
export
Any of:
object
key
additional properties
any
request_id
required
Request Id

The same value as the Request-Id header; quote it to support

string
required
Any of:
Array<string>
retry_after
Any of:
integer
status
required
Status

The HTTP status of the response

integer
title
required
Title

The machine-readable error code

string
type
required
Type

A stable URI naming the error, on this API’s public host

string
Example
{
"detail": "A request parameter is invalid.",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": 422,
"title": "validation_error",
"type": "https://api.octaneai.com/errors/validation_error"
}

The key’s or the store’s bucket is full; Retry-After says when to try again.

Media typeapplication/problem+json
Problem

The body of every non-2xx response.

object
detail
required
Detail

What went wrong, for people

string
errors
Any of:
Array<object>
FieldError
object
field
required
Field

The input that failed, as a dotted path (body.label, query.from)

string
message
required
Message

Why it failed

string
export
Any of:
object
key
additional properties
any
request_id
required
Request Id

The same value as the Request-Id header; quote it to support

string
required
Any of:
Array<string>
retry_after
Any of:
integer
status
required
Status

The HTTP status of the response

integer
title
required
Title

The machine-readable error code

string
type
required
Type

A stable URI naming the error, on this API’s public host

string
Example
{
"detail": "Too many requests",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"retry_after": 1,
"status": 429,
"title": "rate_limited",
"type": "https://api.octaneai.com/errors/rate_limited"
}

Request limits could not be checked for the body, or the store’s details could not be read.

Media typeapplication/problem+json
Problem

The body of every non-2xx response.

object
detail
required
Detail

What went wrong, for people

string
errors
Any of:
Array<object>
FieldError
object
field
required
Field

The input that failed, as a dotted path (body.label, query.from)

string
message
required
Message

Why it failed

string
export
Any of:
object
key
additional properties
any
request_id
required
Request Id

The same value as the Request-Id header; quote it to support

string
required
Any of:
Array<string>
retry_after
Any of:
integer
status
required
Status

The HTTP status of the response

integer
title
required
Title

The machine-readable error code

string
type
required
Type

A stable URI naming the error, on this API’s public host

string
Examples
{
"detail": "A backing service is temporarily unavailable; retry shortly",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"retry_after": 2,
"status": 503,
"title": "dependency_unavailable",
"type": "https://api.octaneai.com/errors/dependency_unavailable"
}

The request timed out.

Media typeapplication/problem+json
Problem

The body of every non-2xx response.

object
detail
required
Detail

What went wrong, for people

string
errors
Any of:
Array<object>
FieldError
object
field
required
Field

The input that failed, as a dotted path (body.label, query.from)

string
message
required
Message

Why it failed

string
export
Any of:
object
key
additional properties
any
request_id
required
Request Id

The same value as the Request-Id header; quote it to support

string
required
Any of:
Array<string>
retry_after
Any of:
integer
status
required
Status

The HTTP status of the response

integer
title
required
Title

The machine-readable error code

string
type
required
Type

A stable URI naming the error, on this API’s public host

string
Example
{
"detail": "The request timed out.",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": 504,
"title": "timeout",
"type": "https://api.octaneai.com/errors/timeout"
}