Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/KingPsychopath/oooc-fete-finder/llms.txt

Use this file to discover all available pages before exploring further.

The partner stats endpoint provides secure, tokenized access to event performance analytics for partner activations. This allows event hosts and partners to view their event’s engagement metrics.

GET /api/partner-stats/[activationId]

Retrieves performance statistics for a specific partner activation using a secure access token.

Path parameters

activationId
string
required
Unique partner activation identifier

Query parameters

token
string
required
Secure access token for the activationTokens are generated when a partner activation is created and provide read-only access to stats.
format
string
Response format: omit for JSON, or set to csv for CSV export

Response (JSON format)

success
boolean
required
Indicates if the request was successful
data
object
Partner statistics data (returned on success)
error
string
Error message (returned on failure)

Response (CSV format)

When format=csv, returns a CSV file with the following headers:
activation_id,event_key,event_name,tier,start_at,end_at,views,outbound_clicks,calendar_syncs,unique_sessions,unique_view_sessions,unique_outbound_sessions,unique_calendar_sessions,outbound_session_rate,calendar_session_rate,outbound_interaction_rate,calendar_interaction_rate
The response includes:
  • Content-Type: text/csv; charset=utf-8
  • Content-Disposition: attachment; filename="oooc-partner-stats-{eventKey}.csv"

Error codes

  • 400 Bad Request: Missing token parameter
  • 403 Forbidden: Invalid or expired token
  • 404 Not Found: Activation ID not found
  • 409 Conflict: Activation exists but is in an invalid state

Security

Tokens provide read-only access to partner statistics. They should be treated as sensitive credentials:
  • Tokens are generated per-activation and cannot be regenerated
  • Each token grants access only to its associated activation’s stats
  • Tokens do not expire but can be invalidated if the activation is deleted
  • Share tokens only with authorized partners or event hosts

Examples

const activationId = 'act_abc123xyz';
const token = 'tok_secure_token_here';

const response = await fetch(
  `/api/partner-stats/${activationId}?token=${token}`
);

const result = await response.json();
// {
//   "success": true,
//   "data": {
//     "activationId": "act_abc123xyz",
//     "eventKey": "jazz-sunset-2026-03-15",
//     "eventName": "Jazz Night at Le Sunset",
//     "tier": "premium",
//     "range": {
//       "startAt": "2026-03-01T00:00:00.000Z",
//       "endAt": "2026-03-31T23:59:59.999Z"
//     },
//     "metrics": {
//       "clickCount": 1250,
//       "outboundClickCount": 342,
//       "calendarSyncCount": 158,
//       "uniqueSessionCount": 892,
//       "uniqueViewSessionCount": 867,
//       "uniqueOutboundSessionCount": 298,
//       "uniqueCalendarSessionCount": 142,
//       "outboundSessionRate": 34.4,
//       "calendarSessionRate": 16.4,
//       "outboundInteractionRate": 33.4,
//       "calendarInteractionRate": 15.9
//     }
//   }
// }

Use cases