v1.0.0OpenAPI 3.1.1

Performance Marketing API

Download OpenAPI Document

Connect Meta ad accounts, read performance and CAC, test existing assets and approve campaign operations.

Connect Meta, read saved reports and test existing organization assets. Start with the Performance Marketing guide for identifiers, attribution, CAC coverage, minor-unit budgets and the approval lifecycle.

Every ordinary operation accepts an organization-bound x-api-key acting with its creator's role. Meta browser consent still belongs to a person: keep the one-use verifier in the initiating browser. The public reference excludes internal worker and Meta callback routes.

Saving a plan or proposing an action makes no campaign write. Preparation writes paused provider objects. Launch and approval can spend the Meta account's advertising funds; the analyst separately uses Universe credits. Observed efficiency rankings do not establish statistical significance.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

Insights

Reports are snapshots for 7/30 account-local days. Null revenue, ROAS or CAC means unavailable evidence, not zero. CAC requires known first-time customer outcomes for every day. Analyst replies charge Universe credits and never execute campaign writes.

Analyze an ad account

Record new-customer outcomes

Get performance report

Auth Required

Read the last completed snapshot for 7 or 30 days and the preceding equal period. No snapshot means current/previous are null. Revenue/ROAS may be null; CAC requires full imported daily new-customer coverage. Campaign ranking is observational.

Permission: performance_marketing.insights:read. An API key acts with the role of the member who created it.

Path Parameters

idstring · uuidrequired

Universe resource ID in your organization; not a Meta object ID.

Example: c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b

Query Parameters

daysinteger

Account-local calendar days in the report, compared with the preceding equal period.

Enum values:730
Default: 7

Responses

200Read the last completed snapshot for 7 or 30 days and the preceding equal period. No snapshot means current/previous are null. Revenue/ROAS may be null; CAC requires full imported daily new-customer coverage. Campaign ranking is observational.
application/json
accountobjectrequired

account.

Show child attributes
idstring · uuidrequired

Universe ID. Meta object IDs are separate strings.

Example: c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5bPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
fk_orgIdstring · uuidrequired

Universe ID. Meta object IDs are separate strings.

Example: 8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6fPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
createdAtstringrequired

ISO 8601 timestamp.

Example: 2026-10-11T00:00:00Z
updatedAtstringrequired

ISO 8601 timestamp.

Example: 2026-10-11T00:00:00Z
connectionIdstring · uuidrequired

Universe ID. Meta object IDs are separate strings.

Example: c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5bPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
metaAccountIdstringrequired

Meta ad account ID with act_ prefix; use Universe account id in route paths.

Example: act_123456789
namestringrequired

name.

Example: Summer creative test
currencystringrequired

ISO currency of the Meta account; report money uses its major units.

Example: USD
timezonestringrequired

timezone.

Example: America/New_York
businessIdstring | nullrequired

business Id.

Example: example
contextobject | nullrequired

context.

Show child attributes
productstringrequired

product.

Example: example
landingPagestring · urirequired

landing Page.

Example: https://example.com/landing
countriesstring[]required

countries.

Example: ["US"]
goalstringrequired

goal.

Enum values:purchaseleadlanding_page_view
Example: purchase
targetCpanumber | nullrequired

target Cpa.

Example: 1
targetRoasnumber | nullrequired

target Roas.

Example: 1
grossMarginnumber | nullrequired

gross Margin.

Example: 1Min: 0Max: 100
averageOrderValuenumber | nullrequired

average Order Value.

Example: 1
lifetimeValuenumber | nullrequired

lifetime Value.

Example: 1
monthlyBudgetnumber | nullrequired

monthly Budget.

Example: 1
policyobjectrequired

policy.

Show child attributes
modestringrequired

Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.

Enum values:observerecommendguarded
Example: recommend
maxDailyBudgetMinorintegerrequired

max Daily Budget Minor.

Example: 1Min: 0Max: 1000000000000
maxBudgetChangePercentnumberrequired

max Budget Change Percent.

Example: 1Min: 1Max: 30
maxDailyIncreasePercentnumberrequired

max Daily Increase Percent.

Example: 1Min: 1Max: 50
minConversionsintegerrequired

min Conversions.

Example: 1Min: 10Max: 10000
minAgeHoursintegerrequired

min Age Hours.

Example: 1Min: 24Max: 720
cooldownHoursintegerrequired

cooldown Hours.

Example: 1Min: 24Max: 720
conversionDelayDaysintegerrequired

conversion Delay Days.

Example: 1Min: 1Max: 7
protectedIdsstring[]required

protected Ids.

Example: []
autoBudgetChangesbooleanrequired

auto Budget Changes.

Example: false
metaobjectrequired

Provider or execution-specific properties; preserve unknown fields.

Example: {}
snapshotIdstring · uuid | nullrequired

Universe ID. Meta object IDs are separate strings.

Example: c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5bPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
lastSyncAtstring | nullrequired

ISO 8601 timestamp.

Example: example
syncLeaseUntilstring | nullrequired

ISO 8601 timestamp.

Example: example
syncLeaseIdstring · uuid | nullrequired

Universe ID. Meta object IDs are separate strings.

Example: c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5bPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
syncErrorstring | nullrequired

sync Error.

Example: example
writeLockstring · uuid | nullrequired

Universe ID. Meta object IDs are separate strings.

Example: c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5bPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionobject | null

connection.

Show child attributes
statusstringrequired

Current connection, action or experiment lifecycle state. See the group guide.

Enum values:activeexpiredreplaceddisconnected
Example: active
statusReasonstring | nullrequired

status Reason.

Example: example
expiresAtstring | nullrequired

ISO 8601 timestamp.

Example: example
metaUserNamestring | nullrequired

meta User Name.

Example: example
snapshotAtstring | nullrequired

ISO 8601 timestamp.

Example: 2026-10-11T00:00:00Z
currentobject | nullrequired

current.

Show child attributes
spendnumberrequired

Spend in major units of the ad account currency.

Example: 100
revenuenumber | nullrequired

Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.

Example: 300
conversionsnumberrequired

Conversions for the configured goal.

Example: 1
purchasesnumberrequired

Canonical purchases without double-counting Meta aliases.

Example: 1
leadsnumberrequired

Canonical leads without double-counting aliases.

Example: 1
impressionsnumberrequired

Ad impressions.

Example: 1
clicksnumberrequired

All clicks.

Example: 1
linkClicksnumberrequired

Link clicks.

Example: 1
roasnumber | nullrequired

Attributed purchase revenue / spend; null when unavailable.

Example: 3
cpanumber | nullrequired

Spend / goal conversions; null without conversions.

Example: 10
cacnumber | nullrequired

Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.

Example: 20
ctrnumber | nullrequired

All clicks / impressions × 100 (percentage).

Example: 1
cpcnumber | nullrequired

Spend / all clicks.

Example: 1
cpmnumber | nullrequired

Spend / impressions × 1000.

Example: 1
cvrnumber | nullrequired

Goal conversions / link clicks × 100 (percentage).

Example: 1
frequencynumber | nullrequired

Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.

Example: 1
reachnumber | nullrequired

Deduplicated reach from one Meta reporting grain; never summed across rows.

Example: 1
previousobject | nullrequired

previous.

Show child attributes
spendnumberrequired

Spend in major units of the ad account currency.

Example: 100
revenuenumber | nullrequired

Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.

Example: 300
conversionsnumberrequired

Conversions for the configured goal.

Example: 1
purchasesnumberrequired

Canonical purchases without double-counting Meta aliases.

Example: 1
leadsnumberrequired

Canonical leads without double-counting aliases.

Example: 1
impressionsnumberrequired

Ad impressions.

Example: 1
clicksnumberrequired

All clicks.

Example: 1
linkClicksnumberrequired

Link clicks.

Example: 1
roasnumber | nullrequired

Attributed purchase revenue / spend; null when unavailable.

Example: 3
cpanumber | nullrequired

Spend / goal conversions; null without conversions.

Example: 10
cacnumber | nullrequired

Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.

Example: 20
ctrnumber | nullrequired

All clicks / impressions × 100 (percentage).

Example: 1
cpcnumber | nullrequired

Spend / all clicks.

Example: 1
cpmnumber | nullrequired

Spend / impressions × 1000.

Example: 1
cvrnumber | nullrequired

Goal conversions / link clicks × 100 (percentage).

Example: 1
frequencynumber | nullrequired

Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.

Example: 1
reachnumber | nullrequired

Deduplicated reach from one Meta reporting grain; never summed across rows.

Example: 1
campaignsobject[]required

campaigns.

Show child attributes
idstringrequired

Meta resource ID, not a Universe UUID.

Example: 123456789
namestringrequired

name.

Example: Summer creative test
metricsobjectrequired

metrics.

Show child attributes
spendnumberrequired

Spend in major units of the ad account currency.

Example: 100
revenuenumber | nullrequired

Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.

Example: 300
conversionsnumberrequired

Conversions for the configured goal.

Example: 1
purchasesnumberrequired

Canonical purchases without double-counting Meta aliases.

Example: 1
leadsnumberrequired

Canonical leads without double-counting aliases.

Example: 1
impressionsnumberrequired

Ad impressions.

Example: 1
clicksnumberrequired

All clicks.

Example: 1
linkClicksnumberrequired

Link clicks.

Example: 1
roasnumber | nullrequired

Attributed purchase revenue / spend; null when unavailable.

Example: 3
cpanumber | nullrequired

Spend / goal conversions; null without conversions.

Example: 10
cacnumber | nullrequired

Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.

Example: 20
ctrnumber | nullrequired

All clicks / impressions × 100 (percentage).

Example: 1
cpcnumber | nullrequired

Spend / all clicks.

Example: 1
cpmnumber | nullrequired

Spend / impressions × 1000.

Example: 1
cvrnumber | nullrequired

Goal conversions / link clicks × 100 (percentage).

Example: 1
frequencynumber | nullrequired

Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.

Example: 1
reachnumber | nullrequired

Deduplicated reach from one Meta reporting grain; never summed across rows.

Example: 1
eligiblebooleanrequired

Whether the row has enough conversions for efficiency ranking; does not establish statistical significance.

Example: false
objectobject | nullrequired

Provider or execution-specific properties; preserve unknown fields.

Example: {}
budgetOwnerobject | nullrequired

Provider or execution-specific properties; preserve unknown fields.

Example: {}
adsobject[]required

ads.

Show child attributes
idstringrequired

Meta resource ID, not a Universe UUID.

Example: 123456789
namestringrequired

name.

Example: Summer creative test
metricsobjectrequired

metrics.

Show child attributes
spendnumberrequired

Spend in major units of the ad account currency.

Example: 100
revenuenumber | nullrequired

Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.

Example: 300
conversionsnumberrequired

Conversions for the configured goal.

Example: 1
purchasesnumberrequired

Canonical purchases without double-counting Meta aliases.

Example: 1
leadsnumberrequired

Canonical leads without double-counting aliases.

Example: 1
impressionsnumberrequired

Ad impressions.

Example: 1
clicksnumberrequired

All clicks.

Example: 1
linkClicksnumberrequired

Link clicks.

Example: 1
roasnumber | nullrequired

Attributed purchase revenue / spend; null when unavailable.

Example: 3
cpanumber | nullrequired

Spend / goal conversions; null without conversions.

Example: 10
cacnumber | nullrequired

Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.

Example: 20
ctrnumber | nullrequired

All clicks / impressions × 100 (percentage).

Example: 1
cpcnumber | nullrequired

Spend / all clicks.

Example: 1
cpmnumber | nullrequired

Spend / impressions × 1000.

Example: 1
cvrnumber | nullrequired

Goal conversions / link clicks × 100 (percentage).

Example: 1
frequencynumber | nullrequired

Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.

Example: 1
reachnumber | nullrequired

Deduplicated reach from one Meta reporting grain; never summed across rows.

Example: 1
campaignIdstring

campaign Id.

Example: example
dailyobject[]required

daily.

Show child attributes
datestringrequired

date.

Example: 2026-10-11
metricsobjectrequired

metrics.

Show child attributes
spendnumberrequired

Spend in major units of the ad account currency.

Example: 100
revenuenumber | nullrequired

Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.

Example: 300
conversionsnumberrequired

Conversions for the configured goal.

Example: 1
purchasesnumberrequired

Canonical purchases without double-counting Meta aliases.

Example: 1
leadsnumberrequired

Canonical leads without double-counting aliases.

Example: 1
impressionsnumberrequired

Ad impressions.

Example: 1
clicksnumberrequired

All clicks.

Example: 1
linkClicksnumberrequired

Link clicks.

Example: 1
roasnumber | nullrequired

Attributed purchase revenue / spend; null when unavailable.

Example: 3
cpanumber | nullrequired

Spend / goal conversions; null without conversions.

Example: 10
cacnumber | nullrequired

Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.

Example: 20
ctrnumber | nullrequired

All clicks / impressions × 100 (percentage).

Example: 1
cpcnumber | nullrequired

Spend / all clicks.

Example: 1
cpmnumber | nullrequired

Spend / impressions × 1000.

Example: 1
cvrnumber | nullrequired

Goal conversions / link clicks × 100 (percentage).

Example: 1
frequencynumber | nullrequired

Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.

Example: 1
reachnumber | nullrequired

Deduplicated reach from one Meta reporting grain; never summed across rows.

Example: 1
recommendationsobject[]required

recommendations.

Example: []
recommendationsErrorstring | nullrequired

recommendations Error.

Example: example
attributionstringrequired

attribution.

Example: 7-day click / 1-day view; conversion date
sincestring

since.

Example: 2026-10-04T09:00:00Z
untilstring

until.

Example: 2026-10-11T09:00:00Z
cacCoverageobject

cac Coverage.

Show child attributes
providedDaysnumberrequired

provided Days.

Example: 1
requiredDaysnumberrequired

required Days.

Example: 1
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
404The resource is not in this organization, has been removed, or lacks a required completed snapshot.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
GET/v1/galaxy/performance-marketing/accounts/{id}/report
curl '{{API_BASE_URL}}/v1/galaxy/performance-marketing/accounts/c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b/report' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "account": {},
  "snapshotAt": "2026-10-11T00:00:00Z",
  "since": "2026-10-04T09:00:00Z",
  "until": "2026-10-11T09:00:00Z",
  "current": {},
  "previous": {},
  "campaigns": [],
  "ads": [],
  "daily": [],
  "recommendations": [],
  "recommendationsError": "example",
  "attribution": "7-day click / 1-day view; conversion date",
  "cacCoverage": {}
}

Queue account sync

List experiments

Create an experiment

Get an experiment

Get live delivery from Meta

Launch a prepared experiment

Preview experiment assets

Prepare paused campaign objects

Move an experiment to a project

Recover an uncertain creation

Get experiment efficiency results

Get native Meta study results

Models

InsufficientCreditsErrorDto