Performance Marketing API
Download OpenAPI DocumentConnect 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.
Connections
Consent attempts are member-bound, one-use and expire after ten minutes. No Meta tokens are returned. Reconnecting can transfer existing accounts from an older login.
List Meta connections
Discover Meta ad accounts
Start Meta authorization
Complete Meta authorization
Ad accounts
Use the Universe UUID in paths, not the Meta act_ ID. Account settings replace both business context and policy. Budget values use Meta minor currency units. Each account names the Meta pixel its results are counted with; its health comes from Meta's last seven days of event stats.
- GET/v1/galaxy/performance-marketing/accounts
- POST/v1/galaxy/performance-marketing/accounts
- GET/v1/galaxy/performance-marketing/accounts/{id}
- GET/v1/galaxy/performance-marketing/accounts/{id}/pixel
- PUT/v1/galaxy/performance-marketing/accounts/{id}/pixel
- POST/v1/galaxy/performance-marketing/accounts/{id}/pixel/check
- GET/v1/galaxy/performance-marketing/accounts/{id}/pixels
- GET/v1/galaxy/performance-marketing/accounts/{id}/resources
- PUT/v1/galaxy/performance-marketing/accounts/{id}/settings
List ad accounts
Select an ad account
Get an ad account
Get the account pixel
Set the account pixel
Check the account pixel
List the account pixels
List pages and pixels
Set account context and guardrails
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
Queue account sync
Experiments
Draft → prepare paused Meta objects → explicitly launch. Launch can spend advertising money. dailyBudgetMinor is per variant. Uncertain object creation requires verified recovery, not a blind retry. Observational rankings are distinct from native study significance.
- GET/v1/galaxy/performance-marketing/accounts/{id}/experiments
- POST/v1/galaxy/performance-marketing/accounts/{id}/experiments
- GET/v1/galaxy/performance-marketing/experiments/{id}
- GET/v1/galaxy/performance-marketing/experiments/{id}/delivery
- POST/v1/galaxy/performance-marketing/experiments/{id}/launch
- GET/v1/galaxy/performance-marketing/experiments/{id}/media
- POST/v1/galaxy/performance-marketing/experiments/{id}/prepare
- PATCH/v1/galaxy/performance-marketing/experiments/{id}/project
- POST/v1/galaxy/performance-marketing/experiments/{id}/recover
- GET/v1/galaxy/performance-marketing/experiments/{id}/results
- GET/v1/galaxy/performance-marketing/experiments/{id}/study-results
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
Actions
A proposal is local. Approval executes after live state and guardrail checks. Reconcile an uncertain response before retry. Rollback creates a new reverse proposal requiring separate approval.
- GET/v1/galaxy/performance-marketing/accounts/{id}/actions
- POST/v1/galaxy/performance-marketing/accounts/{id}/actions
- POST/v1/galaxy/performance-marketing/actions/{id}/approve
- POST/v1/galaxy/performance-marketing/actions/{id}/reconcile
- POST/v1/galaxy/performance-marketing/actions/{id}/reject
- POST/v1/galaxy/performance-marketing/actions/{id}/rollback
List proposed actions
Propose a campaign change
Approve and execute an action
Reconcile action execution
Reject an action
Propose action rollback
Automation
New rules start disabled in simulation. Preview before enabling. Guarded budget changes also require account policy; pauses always require approval. Null metrics never match.
List automation rules
Create a simulation rule
Preview rule matches
Set rule mode and enabled state
A rule must be previewed before enabling. Guarded mode permits approved budget changes only, subject to account policy; pauses require human approval. Frequency supports recommendations only.
Permission: performance_marketing.automation:update and performance_marketing.action:approve. An API key acts with the role of the member who created it.
Path Parameters
Universe resource ID in your organization; not a Meta object ID.
Bodyrequiredapplication/json
Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.
enabled.
Responses
200A rule must be previewed before enabling. Guarded mode permits approved budget changes only, subject to account policy; pauses require human approval. Frequency supports recommendations only.
Universe ID. Meta object IDs are separate strings.
Universe ID. Meta object IDs are separate strings.
ISO 8601 timestamp.
ISO 8601 timestamp.
Universe ID. Meta object IDs are separate strings.
name.
spec.
Show child attributes
conditions.
Show child attributes
metric.
operator.
value.
action.
change Percent.
days.
Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.
enabled.
ISO 8601 timestamp.
ISO 8601 timestamp.
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
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.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
404The resource is not in this organization, has been removed, or lacks a required completed snapshot.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/galaxy/performance-marketing/rules/c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b/status' \
--request PUT \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"mode": "recommend",
"enabled": false
}'{
"id": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
"fk_orgId": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f",
"createdAt": "2026-10-11T00:00:00Z",
"updatedAt": "2026-10-11T00:00:00Z",
"accountId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
"name": "Summer creative test",
"spec": {},
"enabled": false,
"lastPreviewAt": "example",
"lastEvaluatedAt": "example"
}