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

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

List proposed actions

Propose a campaign change

Approve and execute an action

Reconcile action execution

Reject an action

Propose action rollback

Auth Required

Create a new reverse proposal from a prior executed action. It still needs separate approval and current policy validation.

Permission: performance_marketing.action:create. 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

Responses

201Create a new reverse proposal from a prior executed action. It still needs separate approval and current policy validation.
application/json
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
accountIdstring · 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)$
objectIdstringrequired

object Id.

Example: 123456789
kindstringrequired

kind.

Enum values:statusbudgetrecommendation
Example: status
sourcestringrequired

source.

Example: CRM import
ruleIdstring · 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)$
creatorIdstring · 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)$
approvedBystring · 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)$
statusstringrequired

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

Example: draft
beforeobjectrequired

Provider or execution-specific properties; preserve unknown fields.

Example: {}
afterobjectrequired

Exact proposed Meta field values; budget values are strings in minor units.

Example: {}
reasonstringrequired

reason.

Example: High spend with insufficient conversions
evidenceobjectrequired

Provider or execution-specific properties; preserve unknown fields.

Example: {}
errorstring | nullrequired

Failure explanation, or null.

Example: example
executedAtstring | nullrequired

ISO 8601 timestamp.

Example: example
runTokenstring · 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)$
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
POST/v1/galaxy/performance-marketing/actions/{id}/rollback
curl '{{API_BASE_URL}}/v1/galaxy/performance-marketing/actions/c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b/rollback' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY'
{
  "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",
  "objectId": "123456789",
  "kind": "status",
  "source": "CRM import",
  "ruleId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
  "creatorId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
  "approvedBy": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
  "status": "draft",
  "before": {},
  "after": {},
  "reason": "High spend with insufficient conversions",
  "evidence": {},
  "error": "example",
  "executedAt": "example",
  "runToken": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
}

Models

InsufficientCreditsErrorDto