Aisle Statistics API
Canonical wedding counts and settled money totals.
Canonical wedding counts and settled money totals.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/aisle-wedding:aisle-wedding-statistics-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Aisle Statistics API
version: v1
summary: Run a wedding on Aisle behind your own frontend.
description: 'Aisle''s public backend API. Use it to run a wedding on Aisle while building
and hosting your own frontend. ## Authentication
Every request carries a wedding-scoped API key as a bearer token:
Authorization: Bearer
A key is scoped to exactly one wedding, and every read and write it makes
stays inside that wedding. **Keys are server-side credentials.** Call this
API from your own backend and never ship a key in browser JavaScript, where
anyone loading your site can read it and act as the couple. ## Requests and responses
Bodies are JSON. A request that sends a body must send
`Content-Type: application/json`. Object ids are opaque strings with a type prefix, such as `gst_1042`. Treat
them as strings: their shape may change and only the prefix is contractual. ## Dates and times
Two kinds of value, and mixing them up is the most expensive mistake an
integration can make here, because the result is a plausible number rather
than an error. **Scheduled wedding times** are instants: RFC 3339 in UTC, for example
`2026-06-13T14:00:00.000Z`. Event `starts_at` and `ends_at`,
meal-selection deadlines and transport-leg times are all instants. **Format them in the wedding''s `timezone` from `GET /wedding`, never in
the reader''s zone.** That ceremony is 16:00 at a wedding in `Europe/Rome`,
and a guest browsing from California must still be told 16:00. Rendered in
the reader''s own zone it reads 07:00, and a brunch the morning after moves to
the previous evening. Nothing in the response marks that as wrong, so it is
worth getting right once in a shared formatter. **Record timestamps** are instants too, and the same RFC 3339 UTC shape:
`created_at`, `updated_at` and `rsvp_responded_at` say when something
happened. Which zone you show those in is your choice, because they are not
part of the wedding''s schedule. **Wall-clock values** are a day or a time the couple owns at the venue, with
no instant behind them, so they are carried as separate date and time fields:
`wedding_date` and `wedding_end_date`, and stay `check_in_date` with
`check_in_time`. These are the same for every reader and need no zone. `timezone` is null on a wedding with no venue yet. Instants written before
a venue was chosen were anchored to UTC. ## Pagination
Collections are cursor-paged. Pass `limit` (1 to 100, default
25) and `cursor`. Each response carries `has_more` and
`next_cursor`; keep passing `next_cursor` back until `has_more` is false. An out-of-range `limit` is rejected rather than clamped, so a page you asked
for is either the page you get or an error. ## Filtering
Filters are query parameters named for the field they filter. Repeat a
parameter, or comma-separate it, to mean "any of these":
`?status=confirmed&status=pending`. Two different filters narrow each other. Each collection declares the filters it accepts; a parameter an endpoint does
not declare is rejected rather than ignored, so a misspelled filter is an
error and never a full page that looks filtered. A filter''s `next_cursor` is
bound to that filter, so keep passing the same query string while you page. ## Errors
Failures carry a JSON body with a stable `error.code`, a human-readable
`error.message`, and a `request_id`. Branch on the code, log the message,
and quote the request id when asking us about a specific call. Field-level
problems appear in `error.details`. A field we refuse is always a `422 validation_failed`, whether it arrived in
the query string or in the request body, and every field at fault is listed in
`error.details` rather than only the first. Each entry names the field in the
spelling you sent, dotted through objects and indexed through lists, such as
`options.1.id`. `error.message` is one sentence for the whole request and
carries nothing you need to parse. A `400 invalid_request` means the request
itself could not be read, such as a body that is not a JSON object. ## Rate limits
Responses carry `X-RateLimit-Limit`,
`X-RateLimit-Remaining` and `X-RateLimit-Reset`.'
contact:
name: Aisle
url: https://aisle.wedding
servers:
- url: https://api.aisle.wedding/v1
description: Production
security:
- bearerAuth: []
tags:
- name: Statistics
description: Canonical wedding counts and settled money totals.
paths:
/stats:
get:
tags:
- Statistics
summary: Get canonical wedding statistics
description: Guest totals use Aisle’s headcount model. Room totals use settlement groups and completed, unrefunded accommodation payments. Registry totals use completed, unrefunded registry payments.
responses:
'200':
description: The requested data.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/WeddingStatsResult'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/MembershipRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'409':
$ref: '#/components/responses/Conflict'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
operationId: getStats
x-operation-id-source: derived
components:
schemas:
ErrorDetail:
type: object
required:
- field
- issue
additionalProperties: false
properties:
field:
type: string
description: Dotted path to the offending field.
issue:
type: string
Error:
type: object
required:
- error
- request_id
additionalProperties: false
properties:
error:
type: object
required:
- code
- message
- details
additionalProperties: false
properties:
code:
type: string
enum:
- invalid_request
- unauthorized
- membership_required
- forbidden
- not_found
- method_not_allowed
- conflict
- unsupported_media_type
- validation_failed
- rate_limited
- internal_error
description: Stable machine-readable failure code.
message:
type: string
description: Human-readable explanation. Wording may change; do not match on it.
details:
type: array
description: Field-level problems, one entry per field at fault. Populated for validation_failed and empty for every other code.
items:
$ref: '#/components/schemas/ErrorDetail'
request_id:
type: string
WeddingStatsResult:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/PublicWeddingStats'
PublicWeddingStats:
type: object
description: Guest counts use the canonical headcount model. Event response counts are explicit guest-event replies. Room money uses settlement groups and completed, unrefunded accommodation payments. Registry totals use completed, unrefunded contribution payments and never registry_items.current_amount.
additionalProperties: false
required:
- guests
- events
- rooms
- registry
- content
properties:
guests:
type: object
additionalProperties: false
required:
- invited
- attending
- declined
- maybe
- pending
- replied
- awaiting_reply
- response_rate_percent
properties:
invited:
type: integer
attending:
type: integer
declined:
type: integer
maybe:
type: integer
pending:
type: integer
replied:
type: integer
response_rate_percent:
type: integer
awaiting_reply:
type: integer
description: Guests whose wedding RSVP is pending, null, unknown, or maybe.
events:
type: object
additionalProperties: false
required:
- total
- responses
- attending_responses
- declined_responses
- awaiting_responses
properties:
total:
type: integer
responses:
type: integer
attending_responses:
type: integer
declined_responses:
type: integer
awaiting_responses:
type: integer
description: Stored guest-event response rows whose attending value is null.
rooms:
type: object
additionalProperties: false
required:
- total
- occupied
- settlement_groups
- settled_groups
- priced_groups
- total_amount
- received_amount
- outstanding_amount
properties:
total:
type: integer
occupied:
type: integer
description: Distinct non-null room IDs assigned to guests.
settlement_groups:
type: integer
settled_groups:
type: integer
priced_groups:
type: integer
total_amount:
type: string
pattern: ^\d+(?:\.\d{1,2})?$
description: A decimal currency amount. It is serialized as a string.
received_amount:
type: string
pattern: ^\d+(?:\.\d{1,2})?$
description: A decimal currency amount. It is serialized as a string.
outstanding_amount:
type: string
pattern: ^\d+(?:\.\d{1,2})?$
description: A decimal currency amount. It is serialized as a string.
registry:
type: object
additionalProperties: false
required:
- items
- goal_amount
- received_amount
- gift_count
properties:
items:
type: integer
description: All registry items, including items hidden from guests.
goal_amount:
type: string
pattern: ^\d+(?:\.\d{1,2})?$
description: The sum of goal amounts across all registry items, including hidden items.
received_amount:
type: string
pattern: ^\d+(?:\.\d{1,2})?$
description: Completed, unrefunded registry contributions, including contributions to hidden items and unattributed contributions.
gift_count:
type: integer
description: Completed, unrefunded registry contributions, including contributions to hidden items and unattributed contributions.
content:
type: object
additionalProperties: false
required:
- recommendations
- faqs
- song_requests
- guestbook_entries
- approved_guestbook_entries
- predictions
- prediction_responses
properties:
recommendations:
type: integer
description: All stored recommendation rows.
faqs:
type: integer
description: All stored FAQ rows.
song_requests:
type: integer
description: All stored song request rows.
guestbook_entries:
type: integer
description: All guestbook entries, including unapproved entries.
approved_guestbook_entries:
type: integer
description: Guestbook entries whose approved value is true.
predictions:
type: integer
description: All predictions, including inactive predictions.
prediction_responses:
type: integer
description: Responses across active and inactive predictions.
responses:
Conflict:
description: The request collided with the current state of the resource.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: The key is valid but not permitted to do this.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InvalidRequest:
description: The request itself could not be read, such as a body that is not a JSON object. A field we refuse is validation_failed instead.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Too many requests. Retry after the time given in Retry-After.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No such resource inside the key's wedding.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ValidationFailed:
description: The request was well-formed but a field was not acceptable. Every field at fault is named in error.details.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
MethodNotAllowed:
description: That HTTP method is not supported here. See the Allow header.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalError:
description: Something went wrong on our side.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
UnsupportedMediaType:
description: A request body must be sent as application/json.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
MembershipRequired:
description: The operation requires an active Aisle membership for this wedding.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: The API key is missing, malformed, or no longer valid.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Aisle-Api-Version:
$ref: '#/components/headers/X-Aisle-Api-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
Retry-After:
description: Seconds to wait before retrying a rate-limited call.
schema:
type: integer
minimum: 1
X-RateLimit-Remaining:
description: Requests left in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix seconds at which the current window resets.
schema:
type: integer
X-RateLimit-Limit:
description: Requests permitted in the current window.
schema:
type: integer
X-Aisle-Api-Version:
description: The API version that served this request.
schema:
type: string
X-Request-Id:
description: Correlation id for this request. Quote it when reporting a problem.
schema:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A wedding-scoped API key. Send it from your own server; never from a browser.
externalDocs:
url: https://api.aisle.wedding/docs
description: API reference