Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mavera.io/llms.txt

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

Overview

Pull creative assets, audience insights, and campaign performance from Meta Marketing API (Facebook & Instagram) → analyze with Mavera (Video Analysis, Focus Groups, Personas, Mave, Generate, Brand Voice) → get persona-validated creative intelligence for paid media teams.
Meta Marketing API — Base URL: https://graph.facebook.com/v24.0/. Auth: OAuth 2.0 with System User tokens. Rate limits: 9,000 points / 300 seconds (sliding window). Each GET costs 1 point; batch calls cost 1 point per nested request.

Prerequisites

1

Meta System User token

Create a System User in Business Manager. Generate a token with permissions: ads_read, ads_management, pages_read_engagement, instagram_basic. Use a long-lived token or implement token refresh.
2

Ad Account ID

Find your Ad Account ID in Business Settings → Ad Accounts. Format: act_123456789.
3

Mavera API key

Get your key from Mavera dashboard.
4

Environment variables

export META_ACCESS_TOKEN="EAAxxxxxxx..."
export META_AD_ACCOUNT_ID="act_123456789"
export MAVERA_API_KEY="mvra_live_xxxxx"

Jobs

#JobMeta DataMavera SurfaceOutput
1Ad Creative Video AnalysisVideo ad creativesVideo AnalysisEmotional, cognitive, behavioral scoring
2Ad Creative Comparison MatrixAll active creativesVideo Analysis + MaveRanked creative matrix
3Audience Insight → Persona MappingDemographics from InsightsPersonasMapped + custom persona library
4Ad Copy A/B with Focus GroupsAd copy variantsFocus GroupsHeadline ratings + click intent
5Campaign-to-Content PipelineTop campaigns by CTRBrand Voice + GenerateBlog posts, social content
6Ad Fatigue DetectorFrequency + performanceMaveFresh angle recommendations
7Instagram Reels Analysis PipelineReels creativesVideo Analysis + Focus GroupsHook, recall, purchase intent
8Custom Audience → Focus Group MirrorCustom Audience definitionsPersonas + Focus GroupsTargeting-mirrored feedback
9Cross-Platform Creative OptimizationSame creative, 3 placementsVideo Analysis + MavePlacement-specific recommendations
10Lookalike Audience Persona ExpansionLookalike source dataPersonas + MaveAdjacent expansion personas

Rate Limits & Production Notes

Meta API EndpointCostStrategy
GET /insights1 point per callCache daily; batch date ranges
GET /adcreatives1 point per callPaginate with after cursor
GET /customaudiences1 point per callCache — audiences change infrequently
GET /{video-id} (source)1 point per callDownload immediately; URLs expire
Budget: 9,000 points / 300sMonitor via x-business-use-case-usage header
The 9,000-point budget is shared across all apps using the same System User. Monitor usage via the x-business-use-case-usage response header. For production pipelines processing 100+ creatives, implement a token-bucket rate limiter and queue video downloads.
Production checklist:
  • Store META_ACCESS_TOKEN, META_AD_ACCOUNT_ID, and MAVERA_API_KEY in a secrets manager — never commit tokens
  • System User tokens don’t expire but can be revoked. Implement health checks
  • Video source URLs are signed and short-lived — download within seconds of fetching
  • Cache Insights data locally for daily/weekly jobs; use date_preset for rolling windows
  • Monitor Mavera credits at Dashboard → Usage
  • Video Analysis is the most credit-intensive operation — batch wisely
Error reference:
ErrorCauseFix
Meta 190 (OAuthException)Expired or invalid tokenRefresh token or regenerate System User token
Meta 17 (API Too Many Calls)Rate limit exceededBack off; check x-business-use-case-usage header
Meta 100 (Invalid parameter)Wrong field name or filterVerify against Graph API Explorer
Meta 10 (Permissions error)Missing permission on tokenAdd required permission in Business Manager
Mavera 401Invalid API keyRotate key at app.mavera.io/settings
Mavera 413Video file too largeCompress video or split into segments before upload
Mavera 422Malformed request bodyCheck required fields (e.g., asset_id for video analysis)

What’s Next

All Integrations

Browse all platform integrations

Meta Marketing API

Official Meta API documentation

Video Analysis

Full guide to Mavera Video Analysis

Focus Groups

Full reference for synthetic focus groups

Personas

Creating and managing personas

Mave Agent

AI research agent reference