Prescient AI API changelog
All notable changes to The Prescient AI GraphQL API will be documented in this file.
The format is based on Keep a Changelog.
2026-06-01
Added
- Channel-scoped API tokens: Tokens can be restricted to a subset of marketing channels via an
api_token_channelsjoin. Scoped tokens see only campaigns, modeled metrics, and reported metrics for their assigned channels in the GraphQLmodeledMetricsandreportedMetricsresolvers; unscoped tokens retain full company-wide access. Channel assignments are managed through the API token REST endpoints.
Changed
modeledMetricssalesChannelnow accepts multiple values and defaults to both channels: ThesalesChannelargument is now a list ([SalesChannel!]). When omitted it returns bothECOMMERCEandRETAILmetrics (previously defaulted toECOMMERCEonly). Pass one or more enum values to filter (e.g.salesChannel: [RETAIL]).
2026-05-26
Added
- Retail support in
modeledMetrics: Addsretailto theSalesChannelenum so retail metrics can be queried alongside e-commerce.
2026-04-24
Added
- Multiple API tokens per company: Companies can now provision and manage multiple named API tokens via the REST API instead of a single shared token. Existing tokens are preserved and migrated to a
Defaultnamed token. - Token lifecycle and last-used auditing: API tokens now track
last_used_at,expires_at, andrevoked_at. Expired and revoked tokens are rejected at authentication;last_used_atis updated on successful GraphQL requests for usage auditing.
2026-04-23
Added
- Subscription model target support: Modeled metric output now supports subscription-style model targets (e.g. recurring revenue) in addition to one-time revenue. CSV column ids and Modelbit targets are derived from
model_target_typesandcomputed_target_metricsso subscription customers see metrics tailored to their target type.
2026-03-03
Added
- New
reportedMetricsquery field: Returns spend metrics per campaign/day from marketing channels- Supports filtering by:
startDate,endDate,campaignIds,processDate - Includes offset-based pagination with
afterargument (BigInt cursor) - Returns spend data with optional campaign name lookup
- Implements same rate limiting patterns as
modeledMetrics
- Supports filtering by:
- New types:
ReportedMetricQueryType,ReportedMetricRowType
2025-05-07
Added
- Beta release of the API
- Added changelog