API reference
AttributionStream
Recent touchpoints in a window (partner posts, email and SMS sends, ads), newest first. Read access, attribution toolset, MCP tool get_attribution_stream.
Access: Read
Variables
| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
first | Int! | yes | 32-bit integer. MCP tools send 50 when it is left out | |
from | Datetime! | yes | ISO 8601 with a zone, e.g. 2026-01-01T00:00:00Z | Greater than or equal to the specified value. |
fromDay | Date! | yes | ISO 8601 date, YYYY-MM-DD | Greater than or equal to the specified value. |
to | Datetime! | yes | ISO 8601 with a zone, e.g. 2026-01-01T00:00:00Z | Less than or equal to the specified value. |
toDay | Date! | yes | ISO 8601 date, YYYY-MM-DD | Less than or equal to the specified value. |
Call it
bash
curl https://api.missin.co.uk/graphql/v1 \
-H "Authorization: Bearer $MISSIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"operationName":"AttributionStream","variables":{"first":50,"from":"2026-01-01T00:00:00Z","fromDay":"…","to":"2026-01-01T00:00:00Z","toDay":"…"},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"d7f575b02502798d1ab8616b6527262d099eeb4b6f72df23eb06e741d0e7f5e4"}}}'Document
graphql
query AttributionStream($first: Int!, $from: Datetime!, $fromDay: Date!, $to: Datetime!, $toDay: Date!) { __typename ads: allMarketingAds( filter: {startedAt: {greaterThanOrEqualTo: $from, lessThanOrEqualTo: $to}} orderBy: [STARTED_AT_DESC] first: $first ) { __typename nodes { __typename id name rowId startedAt } totalCount } sends: allMarketingSends( filter: {sentAt: {greaterThanOrEqualTo: $from, lessThanOrEqualTo: $to}} orderBy: [SENT_AT_DESC] first: $first ) { __typename nodes { __typename id name rowId sentAt subject } totalCount } posts: allPartnerPosts( filter: {publishedAt: {greaterThanOrEqualTo: $from, lessThanOrEqualTo: $to}} orderBy: [PUBLISHED_AT_DESC] first: $first ) { __typename nodes { __typename id partnerByPartnerId { __typename profileImage: avatarUrl id username } postType publishedAt rowId title } totalCount } tiers: allTouchpointAttributions( filter: {orderByOrderId: {placedDay: {greaterThanOrEqualTo: $fromDay, lessThanOrEqualTo: $toDay}}} ) { __typename groupedAggregates(groupBy: [TOUCHPOINT_ID, MEND_TIER]) { __typename distinctCount { __typename orderId } keys } } }