Skip to content

The store behind the key

GET
/v1/store
curl --request GET \
--url https://api.octaneai.com/v1/store \
--header 'Authorization: Bearer <token>'

The store behind the key: who it is, its currency and timezone, its plan class, limits, the key’s scopes and credit usage.

Media typeapplication/json
StoreResponse
object
credits
required
StoreCredits
object
limit
required
Any of:
Number of credits
integer
overages_enabled
required
Overages Enabled

Whether overage charges are permitted past the limit

boolean
threshold
required
Any of:
integer
used
required
Used

Credits consumed in the current billing cycle

integer
currency
required
Any of:
string
limits
required
Limits
object
analytics_soft_ttl_seconds
required
Analytics Soft Ttl Seconds

Seconds before a cached analytics answer may refresh

integer
bot_multiplier
required
Bot Multiplier

The store-wide bucket is this many times the key bucket

integer
capacity
required
Capacity

Requests a key may burst before its bucket is full

integer
export_page_pause_ms
required
Export Page Pause Ms

Milliseconds an export job rests between pages of the store’s data

integer
>= 1
leak_per_second
required
Leak Per Second

Sustained requests per second per key

number
webhook_endpoints
required
Webhook Endpoints

Maximum webhook endpoints for the store

integer
>= 1
webhook_sends_per_second
required
Webhook Sends Per Second

Sustained webhook sends per second per endpoint

integer
>= 1
name
required
Any of:
string
plan_class
required
Plan Class

Plus or enterprise; picks the limit table

string
scopes
required
Scopes

The scopes this key carries

Array<string>
shop_domain
required
Any of:
string
timezone
required
Any of:
string
Example
{
"credits": {
"limit": 50000,
"overages_enabled": true,
"threshold": 60000,
"used": 12450
},
"currency": "USD",
"limits": {
"analytics_soft_ttl_seconds": 60,
"bot_multiplier": 3,
"capacity": 72,
"export_page_pause_ms": 100,
"leak_per_second": 12,
"webhook_endpoints": 5,
"webhook_sends_per_second": 50
},
"name": "Bench store",
"plan_class": "plus",
"scopes": [
"analytics:read",
"quizzes:read"
],
"shop_domain": "bench-store.myshopify.com",
"timezone": "America/New_York"
}

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"
}

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"
}