All notable changes to the Prescient AI GraphQL API will be documented in this file. The format is based on Keep a Changelog.
api_token_channels join.
Scoped tokens see only campaigns, modeled metrics, and reported metrics
for their assigned channels in the GraphQL modeledMetrics and
reportedMetrics resolvers; unscoped tokens retain full
company-wide access. Channel assignments are managed through the API token
management UI.
modeledMetrics salesChannel now accepts
multiple values and defaults to both channels: The salesChannel argument is now a list
([SalesChannelEnum!]). When omitted it returns both
ECOMMERCE and RETAIL metrics (previously
defaulted to ECOMMERCE only). Pass one or more enum values to
filter (e.g. salesChannel: [RETAIL]).
modeledMetrics: Adds
RETAIL to the SalesChannelEnum so retail metrics
can be queried alongside e-commerce.
Default named token.
last_used_at, expires_at, and
revoked_at. Expired and revoked tokens are rejected at
authentication; last_used_at is updated on successful GraphQL
requests for usage auditing.
reportedMetrics query field: Returns
spend metrics per campaign/day from marketing channels.
startDate, endDate,
campaignIds, processDate
after argument
(BigInt cursor)
modeledMetricsReportedMetricQuery,
ReportedMetricRow