{
  "openapi": "3.1.1",
  "info": {
    "title": "Performance Marketing API",
    "description": "Connect Meta ad accounts, read performance and CAC, test existing assets and approve campaign operations.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Connections"
    },
    {
      "name": "Ad accounts"
    },
    {
      "name": "Insights"
    },
    {
      "name": "Experiments"
    },
    {
      "name": "Actions"
    },
    {
      "name": "Automation"
    }
  ],
  "paths": {
    "/v1/galaxy/performance-marketing/accounts": {
      "get": {
        "operationId": "list-ad-accounts",
        "parameters": [],
        "responses": {
          "200": {
            "description": "List organization accounts with connection summaries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        ]
                      },
                      "fk_orgId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "ISO 8601 timestamp.",
                        "examples": [
                          "2026-10-11T00:00:00Z"
                        ]
                      },
                      "updatedAt": {
                        "type": "string",
                        "description": "ISO 8601 timestamp.",
                        "examples": [
                          "2026-10-11T00:00:00Z"
                        ]
                      },
                      "connectionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        ]
                      },
                      "metaAccountId": {
                        "type": "string",
                        "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                        "examples": [
                          "act_123456789"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "name.",
                        "examples": [
                          "Summer creative test"
                        ]
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO currency of the Meta account; report money uses its major units.",
                        "examples": [
                          "USD"
                        ]
                      },
                      "timezone": {
                        "type": "string",
                        "description": "timezone.",
                        "examples": [
                          "America/New_York"
                        ]
                      },
                      "businessId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "business Id.",
                        "examples": [
                          "example"
                        ]
                      },
                      "context": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "product": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "description": "product.",
                            "examples": [
                              "example"
                            ]
                          },
                          "landingPage": {
                            "type": "string",
                            "format": "uri",
                            "description": "landing Page.",
                            "examples": [
                              "https://example.com/landing"
                            ]
                          },
                          "countries": {
                            "minItems": 1,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            },
                            "description": "countries.",
                            "examples": [
                              [
                                "US"
                              ]
                            ]
                          },
                          "goal": {
                            "type": "string",
                            "enum": [
                              "purchase",
                              "lead",
                              "landing_page_view"
                            ],
                            "description": "goal.",
                            "examples": [
                              "purchase"
                            ]
                          },
                          "targetCpa": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "exclusiveMinimum": 0,
                            "description": "target Cpa.",
                            "examples": [
                              1
                            ]
                          },
                          "targetRoas": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "exclusiveMinimum": 0,
                            "description": "target Roas.",
                            "examples": [
                              1
                            ]
                          },
                          "grossMargin": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 0,
                            "maximum": 100,
                            "description": "gross Margin.",
                            "examples": [
                              1
                            ]
                          },
                          "averageOrderValue": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "exclusiveMinimum": 0,
                            "description": "average Order Value.",
                            "examples": [
                              1
                            ]
                          },
                          "lifetimeValue": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "exclusiveMinimum": 0,
                            "description": "lifetime Value.",
                            "examples": [
                              1
                            ]
                          },
                          "monthlyBudget": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "exclusiveMinimum": 0,
                            "description": "monthly Budget.",
                            "examples": [
                              1
                            ]
                          }
                        },
                        "required": [
                          "product",
                          "landingPage",
                          "countries",
                          "goal",
                          "targetCpa",
                          "targetRoas",
                          "grossMargin",
                          "averageOrderValue",
                          "lifetimeValue",
                          "monthlyBudget"
                        ],
                        "additionalProperties": false,
                        "description": "context.",
                        "examples": [
                          {}
                        ]
                      },
                      "policy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "observe",
                              "recommend",
                              "guarded"
                            ],
                            "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                            "examples": [
                              "recommend"
                            ]
                          },
                          "maxDailyBudgetMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1000000000000,
                            "description": "max Daily Budget Minor.",
                            "examples": [
                              1
                            ]
                          },
                          "maxBudgetChangePercent": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 30,
                            "description": "max Budget Change Percent.",
                            "examples": [
                              1
                            ]
                          },
                          "maxDailyIncreasePercent": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 50,
                            "description": "max Daily Increase Percent.",
                            "examples": [
                              1
                            ]
                          },
                          "minConversions": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 10000,
                            "description": "min Conversions.",
                            "examples": [
                              1
                            ]
                          },
                          "minAgeHours": {
                            "type": "integer",
                            "minimum": 24,
                            "maximum": 720,
                            "description": "min Age Hours.",
                            "examples": [
                              1
                            ]
                          },
                          "cooldownHours": {
                            "type": "integer",
                            "minimum": 24,
                            "maximum": 720,
                            "description": "cooldown Hours.",
                            "examples": [
                              1
                            ]
                          },
                          "conversionDelayDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 7,
                            "description": "conversion Delay Days.",
                            "examples": [
                              1
                            ]
                          },
                          "protectedIds": {
                            "maxItems": 500,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^\\d{1,30}$"
                            },
                            "description": "protected Ids.",
                            "examples": [
                              []
                            ]
                          },
                          "autoBudgetChanges": {
                            "type": "boolean",
                            "description": "auto Budget Changes.",
                            "examples": [
                              false
                            ]
                          }
                        },
                        "required": [
                          "mode",
                          "maxDailyBudgetMinor",
                          "maxBudgetChangePercent",
                          "maxDailyIncreasePercent",
                          "minConversions",
                          "minAgeHours",
                          "cooldownHours",
                          "conversionDelayDays",
                          "protectedIds",
                          "autoBudgetChanges"
                        ],
                        "additionalProperties": false,
                        "description": "policy.",
                        "examples": [
                          {}
                        ]
                      },
                      "meta": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Provider or execution-specific properties; preserve unknown fields.",
                        "examples": [
                          {}
                        ]
                      },
                      "snapshotId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        ]
                      },
                      "lastSyncAt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "ISO 8601 timestamp.",
                        "examples": [
                          "example"
                        ]
                      },
                      "syncLeaseUntil": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "ISO 8601 timestamp.",
                        "examples": [
                          "example"
                        ]
                      },
                      "syncLeaseId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        ]
                      },
                      "syncError": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "sync Error.",
                        "examples": [
                          "example"
                        ]
                      },
                      "writeLock": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        ]
                      },
                      "connection": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "expired",
                              "replaced",
                              "disconnected"
                            ],
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "examples": [
                              "active"
                            ]
                          },
                          "statusReason": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "status Reason.",
                            "examples": [
                              "example"
                            ]
                          },
                          "expiresAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          },
                          "metaUserName": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "meta User Name.",
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "statusReason",
                          "expiresAt",
                          "metaUserName"
                        ],
                        "additionalProperties": false,
                        "description": "connection.",
                        "examples": [
                          {}
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "fk_orgId",
                      "createdAt",
                      "updatedAt",
                      "connectionId",
                      "metaAccountId",
                      "name",
                      "currency",
                      "timezone",
                      "businessId",
                      "context",
                      "policy",
                      "meta",
                      "snapshotId",
                      "lastSyncAt",
                      "syncLeaseUntil",
                      "syncLeaseId",
                      "syncError",
                      "writeLock"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List ad accounts",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List organization accounts with connection summaries."
      },
      "post": {
        "operationId": "select-an-ad-account",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "connectionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([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)$",
                    "description": "connection Id.",
                    "examples": [
                      "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    ]
                  },
                  "metaAccountId": {
                    "type": "string",
                    "pattern": "^act_\\d{1,30}$",
                    "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                    "examples": [
                      "act_123456789"
                    ]
                  }
                },
                "required": [
                  "connectionId",
                  "metaAccountId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Save an accessible Meta ad account as a Universe account. Re-selecting the same account reuses its row. Configure business context and guardrails, then sync.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "connectionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "metaAccountId": {
                      "type": "string",
                      "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                      "examples": [
                        "act_123456789"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "examples": [
                        "USD"
                      ]
                    },
                    "timezone": {
                      "type": "string",
                      "description": "timezone.",
                      "examples": [
                        "America/New_York"
                      ]
                    },
                    "businessId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "business Id.",
                      "examples": [
                        "example"
                      ]
                    },
                    "context": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "product": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "product.",
                          "examples": [
                            "example"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "goal": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "lead",
                            "landing_page_view"
                          ],
                          "description": "goal.",
                          "examples": [
                            "purchase"
                          ]
                        },
                        "targetCpa": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "target Cpa.",
                          "examples": [
                            1
                          ]
                        },
                        "targetRoas": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "target Roas.",
                          "examples": [
                            1
                          ]
                        },
                        "grossMargin": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 0,
                          "maximum": 100,
                          "description": "gross Margin.",
                          "examples": [
                            1
                          ]
                        },
                        "averageOrderValue": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "average Order Value.",
                          "examples": [
                            1
                          ]
                        },
                        "lifetimeValue": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "lifetime Value.",
                          "examples": [
                            1
                          ]
                        },
                        "monthlyBudget": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "monthly Budget.",
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "product",
                        "landingPage",
                        "countries",
                        "goal",
                        "targetCpa",
                        "targetRoas",
                        "grossMargin",
                        "averageOrderValue",
                        "lifetimeValue",
                        "monthlyBudget"
                      ],
                      "additionalProperties": false,
                      "description": "context.",
                      "examples": [
                        {}
                      ]
                    },
                    "policy": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "observe",
                            "recommend",
                            "guarded"
                          ],
                          "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                          "examples": [
                            "recommend"
                          ]
                        },
                        "maxDailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000,
                          "description": "max Daily Budget Minor.",
                          "examples": [
                            1
                          ]
                        },
                        "maxBudgetChangePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "max Budget Change Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "maxDailyIncreasePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 50,
                          "description": "max Daily Increase Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "minAgeHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "min Age Hours.",
                          "examples": [
                            1
                          ]
                        },
                        "cooldownHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "cooldown Hours.",
                          "examples": [
                            1
                          ]
                        },
                        "conversionDelayDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 7,
                          "description": "conversion Delay Days.",
                          "examples": [
                            1
                          ]
                        },
                        "protectedIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\d{1,30}$"
                          },
                          "description": "protected Ids.",
                          "examples": [
                            []
                          ]
                        },
                        "autoBudgetChanges": {
                          "type": "boolean",
                          "description": "auto Budget Changes.",
                          "examples": [
                            false
                          ]
                        }
                      },
                      "required": [
                        "mode",
                        "maxDailyBudgetMinor",
                        "maxBudgetChangePercent",
                        "maxDailyIncreasePercent",
                        "minConversions",
                        "minAgeHours",
                        "cooldownHours",
                        "conversionDelayDays",
                        "protectedIds",
                        "autoBudgetChanges"
                      ],
                      "additionalProperties": false,
                      "description": "policy.",
                      "examples": [
                        {}
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "snapshotId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "lastSyncAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "syncLeaseUntil": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "syncLeaseId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "syncError": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "sync Error.",
                      "examples": [
                        "example"
                      ]
                    },
                    "writeLock": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "connection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "replaced",
                            "disconnected"
                          ],
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "examples": [
                            "active"
                          ]
                        },
                        "statusReason": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "status Reason.",
                          "examples": [
                            "example"
                          ]
                        },
                        "expiresAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "example"
                          ]
                        },
                        "metaUserName": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "meta User Name.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "statusReason",
                        "expiresAt",
                        "metaUserName"
                      ],
                      "additionalProperties": false,
                      "description": "connection.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "connectionId",
                    "metaAccountId",
                    "name",
                    "currency",
                    "timezone",
                    "businessId",
                    "context",
                    "policy",
                    "meta",
                    "snapshotId",
                    "lastSyncAt",
                    "syncLeaseUntil",
                    "syncLeaseId",
                    "syncError",
                    "writeLock"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Select an ad account",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.connection:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Save an accessible Meta ad account as a Universe account. Re-selecting the same account reuses its row. Configure business context and guardrails, then sync."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}": {
      "get": {
        "operationId": "get-an-ad-account",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get the saved account, currency, business context, policy and sync state. This does not call Meta.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "connectionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "metaAccountId": {
                      "type": "string",
                      "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                      "examples": [
                        "act_123456789"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "examples": [
                        "USD"
                      ]
                    },
                    "timezone": {
                      "type": "string",
                      "description": "timezone.",
                      "examples": [
                        "America/New_York"
                      ]
                    },
                    "businessId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "business Id.",
                      "examples": [
                        "example"
                      ]
                    },
                    "context": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "product": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "product.",
                          "examples": [
                            "example"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "goal": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "lead",
                            "landing_page_view"
                          ],
                          "description": "goal.",
                          "examples": [
                            "purchase"
                          ]
                        },
                        "targetCpa": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "target Cpa.",
                          "examples": [
                            1
                          ]
                        },
                        "targetRoas": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "target Roas.",
                          "examples": [
                            1
                          ]
                        },
                        "grossMargin": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 0,
                          "maximum": 100,
                          "description": "gross Margin.",
                          "examples": [
                            1
                          ]
                        },
                        "averageOrderValue": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "average Order Value.",
                          "examples": [
                            1
                          ]
                        },
                        "lifetimeValue": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "lifetime Value.",
                          "examples": [
                            1
                          ]
                        },
                        "monthlyBudget": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "monthly Budget.",
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "product",
                        "landingPage",
                        "countries",
                        "goal",
                        "targetCpa",
                        "targetRoas",
                        "grossMargin",
                        "averageOrderValue",
                        "lifetimeValue",
                        "monthlyBudget"
                      ],
                      "additionalProperties": false,
                      "description": "context.",
                      "examples": [
                        {}
                      ]
                    },
                    "policy": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "observe",
                            "recommend",
                            "guarded"
                          ],
                          "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                          "examples": [
                            "recommend"
                          ]
                        },
                        "maxDailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000,
                          "description": "max Daily Budget Minor.",
                          "examples": [
                            1
                          ]
                        },
                        "maxBudgetChangePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "max Budget Change Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "maxDailyIncreasePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 50,
                          "description": "max Daily Increase Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "minAgeHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "min Age Hours.",
                          "examples": [
                            1
                          ]
                        },
                        "cooldownHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "cooldown Hours.",
                          "examples": [
                            1
                          ]
                        },
                        "conversionDelayDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 7,
                          "description": "conversion Delay Days.",
                          "examples": [
                            1
                          ]
                        },
                        "protectedIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\d{1,30}$"
                          },
                          "description": "protected Ids.",
                          "examples": [
                            []
                          ]
                        },
                        "autoBudgetChanges": {
                          "type": "boolean",
                          "description": "auto Budget Changes.",
                          "examples": [
                            false
                          ]
                        }
                      },
                      "required": [
                        "mode",
                        "maxDailyBudgetMinor",
                        "maxBudgetChangePercent",
                        "maxDailyIncreasePercent",
                        "minConversions",
                        "minAgeHours",
                        "cooldownHours",
                        "conversionDelayDays",
                        "protectedIds",
                        "autoBudgetChanges"
                      ],
                      "additionalProperties": false,
                      "description": "policy.",
                      "examples": [
                        {}
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "snapshotId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "lastSyncAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "syncLeaseUntil": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "syncLeaseId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "syncError": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "sync Error.",
                      "examples": [
                        "example"
                      ]
                    },
                    "writeLock": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "connection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "replaced",
                            "disconnected"
                          ],
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "examples": [
                            "active"
                          ]
                        },
                        "statusReason": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "status Reason.",
                          "examples": [
                            "example"
                          ]
                        },
                        "expiresAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "example"
                          ]
                        },
                        "metaUserName": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "meta User Name.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "statusReason",
                        "expiresAt",
                        "metaUserName"
                      ],
                      "additionalProperties": false,
                      "description": "connection.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "connectionId",
                    "metaAccountId",
                    "name",
                    "currency",
                    "timezone",
                    "businessId",
                    "context",
                    "policy",
                    "meta",
                    "snapshotId",
                    "lastSyncAt",
                    "syncLeaseUntil",
                    "syncLeaseId",
                    "syncError",
                    "writeLock"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get an ad account",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Get the saved account, currency, business context, policy and sync state. This does not call Meta."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/actions": {
      "get": {
        "operationId": "list-proposed-actions",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Zero-based page, 50 rows per page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read pending and decided operations with evidence and execution results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "fk_orgId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "objectId": {
                            "type": "string",
                            "description": "object Id.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "status",
                              "budget",
                              "recommendation"
                            ],
                            "description": "kind.",
                            "examples": [
                              "status"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "description": "source.",
                            "examples": [
                              "CRM import"
                            ]
                          },
                          "ruleId": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "creatorId": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "approvedBy": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "examples": [
                              "draft"
                            ]
                          },
                          "before": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          },
                          "after": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                            "examples": [
                              {}
                            ]
                          },
                          "reason": {
                            "type": "string",
                            "description": "reason.",
                            "examples": [
                              "High spend with insufficient conversions"
                            ]
                          },
                          "evidence": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          },
                          "error": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Failure explanation, or null.",
                            "examples": [
                              "example"
                            ]
                          },
                          "executedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          },
                          "runToken": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "fk_orgId",
                          "createdAt",
                          "updatedAt",
                          "accountId",
                          "objectId",
                          "kind",
                          "source",
                          "ruleId",
                          "creatorId",
                          "approvedBy",
                          "status",
                          "before",
                          "after",
                          "reason",
                          "evidence",
                          "error",
                          "executedAt",
                          "runToken"
                        ],
                        "additionalProperties": false
                      },
                      "description": "items.",
                      "examples": [
                        []
                      ]
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "total.",
                      "examples": [
                        1
                      ]
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "page.",
                      "examples": [
                        0
                      ]
                    },
                    "pageSize": {
                      "type": "number",
                      "enum": [
                        50
                      ],
                      "description": "page Size.",
                      "examples": [
                        50
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "page",
                    "pageSize"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List proposed actions",
        "tags": [
          "Actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.action:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read pending and decided operations with evidence and execution results."
      },
      "post": {
        "operationId": "propose-a-campaign-change",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "objectId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "object Id.",
                    "examples": [
                      "123456789"
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "status",
                      "budget"
                    ],
                    "description": "kind.",
                    "examples": [
                      "status"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "PAUSED"
                    ],
                    "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                    "examples": [
                      "ACTIVE"
                    ]
                  },
                  "budgetMinor": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000,
                    "description": "New daily budget in Meta minor currency units; not a currency float.",
                    "examples": [
                      2000
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 1000,
                    "description": "reason.",
                    "examples": [
                      "High spend with insufficient conversions"
                    ]
                  }
                },
                "required": [
                  "objectId",
                  "kind",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Save exactly one status or daily budget change against an object in the complete snapshot. This does not execute it.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "examples": [
                        "123456789"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "examples": [
                        "status"
                      ]
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "examples": [
                        "CRM import"
                      ]
                    },
                    "ruleId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "examples": [
                        {}
                      ]
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "examples": [
                        "High spend with insufficient conversions"
                      ]
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "executedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "objectId",
                    "kind",
                    "source",
                    "ruleId",
                    "creatorId",
                    "approvedBy",
                    "status",
                    "before",
                    "after",
                    "reason",
                    "evidence",
                    "error",
                    "executedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Propose a campaign change",
        "tags": [
          "Actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.action:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Save exactly one status or daily budget change against an object in the complete snapshot. This does not execute it."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/analyze": {
      "post": {
        "operationId": "analyze-an-ad-account",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 3000,
                    "description": "question.",
                    "examples": [
                      "example"
                    ]
                  },
                  "days": {
                    "anyOf": [
                      {
                        "type": "number",
                        "enum": [
                          7
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          30
                        ]
                      }
                    ],
                    "description": "days.",
                    "examples": [
                      7
                    ]
                  },
                  "model": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "model.",
                    "examples": [
                      "example"
                    ]
                  }
                },
                "required": [
                  "question",
                  "days"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Ask the analyst a question about the saved 7/30-day report. The reply and actual credits return after completion; it proposes discussion, never executes a campaign write. The request may take up to 180 seconds. A completed delivered reply remains billed even if chat history persistence fails.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "text.",
                      "examples": [
                        "Review the highest-spend campaign before making changes."
                      ]
                    },
                    "sessionId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "credits": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Actual charged analysis credits; null if the completed reply could not be saved. A completed delivered reply is still billed.",
                      "examples": [
                        1
                      ]
                    },
                    "snapshotAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    }
                  },
                  "required": [
                    "text",
                    "sessionId",
                    "credits",
                    "snapshotAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "InsufficientCredits: nothing started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Analyze an ad account",
        "tags": [
          "Insights"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.insights:analyze` and `performance_marketing.action:read` and `performance_marketing.campaign:read` and `chat:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged at start at the selected model’s token rate; failures without a completed reply are refunded.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Performance analysis | The analyst’s written read of an ad account. Charged per 1,000 prompt/completion tokens, by model, exactly like a chat reply. Cached prompt tokens are billed at 25% of the input rate. | gpt-5.6-luna: 2 credits per 1K tokens; gpt-5.6-terra: 8 credits per 1K tokens; gpt-5.6-sol: 16 credits per 1K tokens; gpt-5.4-nano: 2 credits per 1K tokens; gpt-5.4-mini: 4 credits per 1K tokens; gpt-5.4: 8 credits per 1K tokens; chat-latest: 8 credits per 1K tokens; gpt-5.5: 16 credits per 1K tokens; gpt-5.5-pro: 24 credits per 1K tokens; gemini-3.5-flash-lite: 2 credits per 1K tokens; gemini-3.6-flash: 4 credits per 1K tokens; gemini-3.7-flash: 4 credits per 1K tokens; gemini-3.8-flash: 4 credits per 1K tokens; gemini-3.1-flash-lite: 2 credits per 1K tokens; gemini-3.5-flash: 4 credits per 1K tokens; gemini-3.1-pro-preview: 16 credits per 1K tokens; claude-haiku-4-5: 4 credits per 1K tokens; claude-sonnet-5: 16 credits per 1K tokens; claude-opus-5: 24 credits per 1K tokens; claude-sonnet-4-6: 16 credits per 1K tokens; claude-opus-4-8: 24 credits per 1K tokens |",
            "position": "after-description"
          }
        ],
        "description": "Ask the analyst a question about the saved 7/30-day report. The reply and actual credits return after completion; it proposes discussion, never executes a campaign write. The request may take up to 180 seconds. A completed delivered reply remains billed even if chat history persistence fails."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/experiments": {
      "get": {
        "operationId": "list-experiments",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Zero-based page, 50 rows per page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "Same-organization project UUID, or none for unassigned experiments.",
            "schema": {
              "type": "string",
              "examples": [
                "none"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List saved plans and execution state, newest first, with whole-process assignees and project capability.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "fk_orgId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "creatorId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "approvedBy": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "plan": {
                            "type": "object",
                            "properties": {
                              "standardCommercial": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ],
                                "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                                "examples": [
                                  true
                                ]
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "hypothesis": {
                                "type": "string",
                                "minLength": 10,
                                "maxLength": 2000,
                                "description": "hypothesis.",
                                "examples": [
                                  "The localized creative improves qualified purchases."
                                ]
                              },
                              "objective": {
                                "type": "string",
                                "enum": [
                                  "OUTCOME_SALES",
                                  "OUTCOME_LEADS",
                                  "OUTCOME_TRAFFIC"
                                ],
                                "description": "objective.",
                                "examples": [
                                  "OUTCOME_SALES"
                                ]
                              },
                              "testKind": {
                                "type": "string",
                                "enum": [
                                  "creative",
                                  "campaign"
                                ],
                                "description": "test Kind.",
                                "examples": [
                                  "creative"
                                ]
                              },
                              "pageId": {
                                "type": "string",
                                "pattern": "^\\d{1,30}$",
                                "description": "page Id.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "pixelId": {
                                "type": "string",
                                "pattern": "^\\d{1,30}$",
                                "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                                "examples": [
                                  "771204559813206"
                                ]
                              },
                              "landingPage": {
                                "type": "string",
                                "format": "uri",
                                "description": "landing Page.",
                                "examples": [
                                  "https://example.com/landing"
                                ]
                              },
                              "countries": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                },
                                "description": "countries.",
                                "examples": [
                                  [
                                    "US"
                                  ]
                                ]
                              },
                              "dailyBudgetMinor": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 1000000000000,
                                "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                                "examples": [
                                  2000
                                ]
                              },
                              "startTime": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "description": "start Time.",
                                "examples": [
                                  "2026-10-12T00:00:00Z"
                                ]
                              },
                              "endTime": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "description": "end Time.",
                                "examples": [
                                  "2026-10-19T00:00:00Z"
                                ]
                              },
                              "minConversions": {
                                "type": "integer",
                                "minimum": 10,
                                "maximum": 10000,
                                "description": "min Conversions.",
                                "examples": [
                                  1
                                ]
                              },
                              "successMetric": {
                                "type": "string",
                                "enum": [
                                  "roas",
                                  "cpa"
                                ],
                                "description": "success Metric.",
                                "examples": [
                                  "roas"
                                ]
                              },
                              "variants": {
                                "minItems": 2,
                                "maxItems": 5,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "description": "name.",
                                      "examples": [
                                        "Summer creative test"
                                      ]
                                    },
                                    "assetId": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([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)$",
                                      "description": "asset Id.",
                                      "examples": [
                                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                      ]
                                    },
                                    "thumbnailAssetId": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([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)$",
                                      "description": "thumbnail Asset Id.",
                                      "examples": [
                                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                      ]
                                    },
                                    "headline": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "description": "headline.",
                                      "examples": [
                                        "example"
                                      ]
                                    },
                                    "message": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 2000,
                                      "description": "message.",
                                      "examples": [
                                        "example"
                                      ]
                                    },
                                    "cta": {
                                      "type": "string",
                                      "enum": [
                                        "LEARN_MORE",
                                        "SHOP_NOW",
                                        "SIGN_UP"
                                      ],
                                      "description": "cta.",
                                      "examples": [
                                        "LEARN_MORE"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "assetId",
                                    "headline",
                                    "message",
                                    "cta"
                                  ],
                                  "additionalProperties": false
                                },
                                "description": "variants.",
                                "examples": [
                                  []
                                ]
                              }
                            },
                            "required": [
                              "standardCommercial",
                              "name",
                              "hypothesis",
                              "objective",
                              "testKind",
                              "pageId",
                              "landingPage",
                              "countries",
                              "dailyBudgetMinor",
                              "startTime",
                              "endTime",
                              "minConversions",
                              "successMetric",
                              "variants"
                            ],
                            "additionalProperties": false,
                            "description": "plan.",
                            "examples": [
                              {}
                            ]
                          },
                          "status": {
                            "type": "string",
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "examples": [
                              "draft"
                            ]
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "description": "key.",
                                  "examples": [
                                    "ad:0"
                                  ]
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "sending",
                                    "done",
                                    "uncertain"
                                  ],
                                  "description": "state.",
                                  "examples": [
                                    "done"
                                  ]
                                },
                                "id": {
                                  "type": "string",
                                  "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                                  "examples": [
                                    "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                  ]
                                },
                                "result": {
                                  "type": "object",
                                  "additionalProperties": {},
                                  "description": "Provider or execution-specific properties; preserve unknown fields.",
                                  "examples": [
                                    {}
                                  ]
                                }
                              },
                              "required": [
                                "key",
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "description": "steps.",
                            "examples": [
                              []
                            ]
                          },
                          "error": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Failure explanation, or null.",
                            "examples": [
                              "example"
                            ]
                          },
                          "approvedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          },
                          "runToken": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "fk_projectId": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "assignees": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "memberId": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([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)$",
                                  "description": "Universe ID. Meta object IDs are separate strings.",
                                  "examples": [
                                    "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "name.",
                                  "examples": [
                                    "Summer creative test"
                                  ]
                                },
                                "image": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "image.",
                                  "examples": [
                                    "example"
                                  ]
                                },
                                "languages": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "languages.",
                                  "examples": [
                                    []
                                  ]
                                }
                              },
                              "required": [
                                "memberId",
                                "name",
                                "image",
                                "languages"
                              ],
                              "additionalProperties": false
                            },
                            "description": "assignees.",
                            "examples": [
                              []
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "fk_orgId",
                          "createdAt",
                          "updatedAt",
                          "accountId",
                          "creatorId",
                          "approvedBy",
                          "name",
                          "plan",
                          "status",
                          "steps",
                          "error",
                          "approvedAt",
                          "runToken"
                        ],
                        "additionalProperties": false
                      },
                      "description": "items.",
                      "examples": [
                        []
                      ]
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "total.",
                      "examples": [
                        1
                      ]
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "page.",
                      "examples": [
                        0
                      ]
                    },
                    "pageSize": {
                      "type": "number",
                      "enum": [
                        50
                      ],
                      "description": "page Size.",
                      "examples": [
                        50
                      ]
                    },
                    "projects": {
                      "type": "boolean",
                      "description": "Whether the experiment project migration is installed on this server.",
                      "examples": [
                        false
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "page",
                    "pageSize",
                    "projects"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List experiments",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List saved plans and execution state, newest first, with whole-process assignees and project capability."
      },
      "post": {
        "operationId": "create-an-experiment",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "standardCommercial": {
                    "type": "boolean",
                    "enum": [
                      true
                    ],
                    "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                    "examples": [
                      true
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "name.",
                    "examples": [
                      "Summer creative test"
                    ]
                  },
                  "hypothesis": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2000,
                    "description": "hypothesis.",
                    "examples": [
                      "The localized creative improves qualified purchases."
                    ]
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "OUTCOME_SALES",
                      "OUTCOME_LEADS",
                      "OUTCOME_TRAFFIC"
                    ],
                    "description": "objective.",
                    "examples": [
                      "OUTCOME_SALES"
                    ]
                  },
                  "testKind": {
                    "type": "string",
                    "enum": [
                      "creative",
                      "campaign"
                    ],
                    "description": "test Kind.",
                    "examples": [
                      "creative"
                    ]
                  },
                  "pageId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "page Id.",
                    "examples": [
                      "example"
                    ]
                  },
                  "pixelId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                    "examples": [
                      "771204559813206"
                    ]
                  },
                  "landingPage": {
                    "type": "string",
                    "format": "uri",
                    "description": "landing Page.",
                    "examples": [
                      "https://example.com/landing"
                    ]
                  },
                  "countries": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    },
                    "description": "countries.",
                    "examples": [
                      [
                        "US"
                      ]
                    ]
                  },
                  "dailyBudgetMinor": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000,
                    "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                    "examples": [
                      2000
                    ]
                  },
                  "startTime": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "description": "start Time.",
                    "examples": [
                      "2026-10-12T00:00:00Z"
                    ]
                  },
                  "endTime": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "description": "end Time.",
                    "examples": [
                      "2026-10-19T00:00:00Z"
                    ]
                  },
                  "minConversions": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 10000,
                    "description": "min Conversions.",
                    "examples": [
                      1
                    ]
                  },
                  "successMetric": {
                    "type": "string",
                    "enum": [
                      "roas",
                      "cpa"
                    ],
                    "description": "success Metric.",
                    "examples": [
                      "roas"
                    ]
                  },
                  "variants": {
                    "minItems": 2,
                    "maxItems": 5,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "assetId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "asset Id.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "thumbnailAssetId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "thumbnail Asset Id.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "headline": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "headline.",
                          "examples": [
                            "example"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "message.",
                          "examples": [
                            "example"
                          ]
                        },
                        "cta": {
                          "type": "string",
                          "enum": [
                            "LEARN_MORE",
                            "SHOP_NOW",
                            "SIGN_UP"
                          ],
                          "description": "cta.",
                          "examples": [
                            "LEARN_MORE"
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "assetId",
                        "headline",
                        "message",
                        "cta"
                      ],
                      "additionalProperties": false
                    },
                    "description": "variants.",
                    "examples": [
                      []
                    ]
                  },
                  "projectId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid",
                    "pattern": "^([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)$",
                    "description": "project Id.",
                    "examples": [
                      "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    ]
                  }
                },
                "required": [
                  "standardCommercial",
                  "name",
                  "hypothesis",
                  "objective",
                  "testKind",
                  "pageId",
                  "landingPage",
                  "countries",
                  "dailyBudgetMinor",
                  "startTime",
                  "endTime",
                  "minConversions",
                  "successMetric",
                  "variants"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Save a draft plan using 2–5 distinct organization assets. JPEG/PNG or MP4/MOV are supported; videos need an image thumbnail. The test lasts 3–30 days. Sales/leads need pixelId; ROAS requires sales. Saving the plan makes no Meta write.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "examples": [
                            true
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "examples": [
                            "The localized creative improves qualified purchases."
                          ]
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "examples": [
                            "OUTCOME_SALES"
                          ]
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "examples": [
                            "creative"
                          ]
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "examples": [
                            "example"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "examples": [
                            "771204559813206"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "dailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000,
                          "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                          "examples": [
                            2000
                          ]
                        },
                        "startTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "start Time.",
                          "examples": [
                            "2026-10-12T00:00:00Z"
                          ]
                        },
                        "endTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "end Time.",
                          "examples": [
                            "2026-10-19T00:00:00Z"
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "examples": [
                            "roas"
                          ]
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "assetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "thumbnailAssetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "thumbnail Asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "examples": [
                                  "LEARN_MORE"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "examples": [
                            []
                          ]
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "examples": [
                        {}
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "examples": [
                              "ad:0"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "examples": [
                              "done"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "examples": [
                        []
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "approvedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_projectId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "assignees": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "image": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "image.",
                            "examples": [
                              "example"
                            ]
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "examples": [
                              []
                            ]
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "creatorId",
                    "approvedBy",
                    "name",
                    "plan",
                    "status",
                    "steps",
                    "error",
                    "approvedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Create an experiment",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:create` and `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Save a draft plan using 2–5 distinct organization assets. JPEG/PNG or MP4/MOV are supported; videos need an image thumbnail. The test lasts 3–30 days. Sales/leads need pixelId; ROAS requires sales. Saving the plan makes no Meta write."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/outcomes": {
      "put": {
        "operationId": "record-new-customer-outcomes",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "description": "date.",
                    "examples": [
                      "2026-10-11"
                    ]
                  },
                  "newCustomers": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000,
                    "description": "First-time customers for this account-local date, not purchases or attributed conversions.",
                    "examples": [
                      5
                    ]
                  },
                  "source": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 200,
                    "description": "source.",
                    "examples": [
                      "CRM import"
                    ]
                  }
                },
                "required": [
                  "date",
                  "newCustomers",
                  "source"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Upsert the first-time customer total for an account-local day with its source label. These inputs unlock account-level CAC; purchases are not assumed to be new customers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "saved": {
                      "type": "boolean",
                      "enum": [
                        true
                      ],
                      "description": "saved.",
                      "examples": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "saved"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Record new-customer outcomes",
        "tags": [
          "Insights"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.insights:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Upsert the first-time customer total for an account-local day with its source label. These inputs unlock account-level CAC; purchases are not assumed to be new customers."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/pixel": {
      "get": {
        "operationId": "get-the-account-pixel",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The Meta pixel this account counts its results with, and its last health check. This does not call Meta. available is false until the server has the pixel table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean",
                      "description": "available.",
                      "examples": [
                        false
                      ]
                    },
                    "pixel": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "examples": [
                            "123456789"
                          ]
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "examples": [
                            "Shop website pixel"
                          ]
                        },
                        "linkedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "health": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "examples": [
                                "healthy"
                              ]
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "examples": [
                                "purchase"
                              ]
                            },
                            "lastFiredTime": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T08:00:00Z"
                              ]
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "examples": [
                                false
                              ]
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-04T09:00:00Z"
                              ]
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T09:00:00Z"
                              ]
                            },
                            "events": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "examples": [
                                      "Summer creative test"
                                    ]
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "examples": [
                                      1
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "examples": [
                                []
                              ]
                            },
                            "purchases": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withValue": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withCurrency": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "examples": [
                                    1
                                  ]
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "examples": [
                                {}
                              ]
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "examples": [
                                      "available"
                                    ]
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "examples": [
                                      "ok"
                                    ]
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "examples": [
                                      "example"
                                    ]
                                  }
                                },
                                "required": [
                                  "key",
                                  "level",
                                  "message"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Each part of the health check: ok, warning, error, or unknown when Meta did not answer that part.",
                              "examples": [
                                []
                              ]
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "examples": [
                            {}
                          ]
                        },
                        "checkedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T09:00:00Z"
                          ]
                        },
                        "checkError": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "check Error.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "pixel.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "available",
                    "pixel"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get the account pixel",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The Meta pixel this account counts its results with, and its last health check. This does not call Meta. available is false until the server has the pixel table."
      },
      "put": {
        "operationId": "set-the-account-pixel",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^\\d{1,30}$",
                    "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                    "examples": [
                      "771204559813206"
                    ]
                  }
                },
                "required": [
                  "pixelId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Choose the pixel this account counts its results with (pixelId null removes it), then check it at once. Nothing is written to Meta. The pixel must be one the ad account may use.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pixel": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "examples": [
                            "123456789"
                          ]
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "examples": [
                            "Shop website pixel"
                          ]
                        },
                        "linkedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "health": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "examples": [
                                "healthy"
                              ]
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "examples": [
                                "purchase"
                              ]
                            },
                            "lastFiredTime": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T08:00:00Z"
                              ]
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "examples": [
                                false
                              ]
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-04T09:00:00Z"
                              ]
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T09:00:00Z"
                              ]
                            },
                            "events": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "examples": [
                                      "Summer creative test"
                                    ]
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "examples": [
                                      1
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "examples": [
                                []
                              ]
                            },
                            "purchases": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withValue": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withCurrency": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "examples": [
                                    1
                                  ]
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "examples": [
                                {}
                              ]
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "examples": [
                                      "available"
                                    ]
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "examples": [
                                      "ok"
                                    ]
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "examples": [
                                      "example"
                                    ]
                                  }
                                },
                                "required": [
                                  "key",
                                  "level",
                                  "message"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Each part of the health check: ok, warning, error, or unknown when Meta did not answer that part.",
                              "examples": [
                                []
                              ]
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "examples": [
                            {}
                          ]
                        },
                        "checkedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T09:00:00Z"
                          ]
                        },
                        "checkError": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "check Error.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "pixel.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "pixel"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Pixel tracking is not set up on this server yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Set the account pixel",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Choose the pixel this account counts its results with (pixelId null removes it), then check it at once. Nothing is written to Meta. The pixel must be one the ad account may use."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/pixel/check": {
      "post": {
        "operationId": "check-the-account-pixel",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Re-read the linked pixel and its last seven days of event stats from Meta. A pixel Meta will not return is reported in checkError and keeps its previous health. Syncs also refresh it.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pixel": {
                      "type": "object",
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "examples": [
                            "123456789"
                          ]
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "examples": [
                            "Shop website pixel"
                          ]
                        },
                        "linkedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "health": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "examples": [
                                "healthy"
                              ]
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "examples": [
                                "purchase"
                              ]
                            },
                            "lastFiredTime": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T08:00:00Z"
                              ]
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "examples": [
                                false
                              ]
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-04T09:00:00Z"
                              ]
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T09:00:00Z"
                              ]
                            },
                            "events": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "examples": [
                                      "Summer creative test"
                                    ]
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "examples": [
                                      1
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "examples": [
                                []
                              ]
                            },
                            "purchases": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withValue": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withCurrency": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "examples": [
                                    1
                                  ]
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "examples": [
                                {}
                              ]
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "examples": [
                                      "available"
                                    ]
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "examples": [
                                      "ok"
                                    ]
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "examples": [
                                      "example"
                                    ]
                                  }
                                },
                                "required": [
                                  "key",
                                  "level",
                                  "message"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Each part of the health check: ok, warning, error, or unknown when Meta did not answer that part.",
                              "examples": [
                                []
                              ]
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "examples": [
                            {}
                          ]
                        },
                        "checkedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T09:00:00Z"
                          ]
                        },
                        "checkError": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "check Error.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "pixel.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "pixel"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Pixel tracking is not set up on this server yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Check the account pixel",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Re-read the linked pixel and its last seven days of event stats from Meta. A pixel Meta will not return is reported in checkError and keeps its previous health. Syncs also refresh it."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/pixels": {
      "get": {
        "operationId": "list-the-account-pixels",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read every Meta pixel this ad account may use, with when each last received an event, plus the linked pixel.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "linked": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "examples": [
                            "123456789"
                          ]
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "examples": [
                            "Shop website pixel"
                          ]
                        },
                        "linkedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "health": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "examples": [
                                "healthy"
                              ]
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "examples": [
                                "purchase"
                              ]
                            },
                            "lastFiredTime": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T08:00:00Z"
                              ]
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "examples": [
                                false
                              ]
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-04T09:00:00Z"
                              ]
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "2026-10-11T09:00:00Z"
                              ]
                            },
                            "events": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "examples": [
                                      "Summer creative test"
                                    ]
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "examples": [
                                      1
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "examples": [
                                []
                              ]
                            },
                            "purchases": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withValue": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "examples": [
                                    1
                                  ]
                                },
                                "withCurrency": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "examples": [
                                    1
                                  ]
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "examples": [
                                {}
                              ]
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "examples": [
                                      "available"
                                    ]
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "examples": [
                                      "ok"
                                    ]
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "examples": [
                                      "example"
                                    ]
                                  }
                                },
                                "required": [
                                  "key",
                                  "level",
                                  "message"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Each part of the health check: ok, warning, error, or unknown when Meta did not answer that part.",
                              "examples": [
                                []
                              ]
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "examples": [
                            {}
                          ]
                        },
                        "checkedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T09:00:00Z"
                          ]
                        },
                        "checkError": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "check Error.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "linked.",
                      "examples": [
                        {}
                      ]
                    },
                    "pixels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "lastFiredTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T08:00:00Z"
                            ]
                          },
                          "isUnavailable": {
                            "type": "boolean",
                            "description": "is Unavailable.",
                            "examples": [
                              false
                            ]
                          },
                          "createdTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "lastFiredTime",
                          "isUnavailable",
                          "createdTime"
                        ],
                        "additionalProperties": false
                      },
                      "description": "pixels.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "linked",
                    "pixels"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Pixel tracking is not set up on this server yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List the account pixels",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read every Meta pixel this ad account may use, with when each last received an event, plus the linked pixel."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/report": {
      "get": {
        "operationId": "get-performance-report",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "days",
            "required": false,
            "in": "query",
            "description": "Account-local calendar days in the report, compared with the preceding equal period.",
            "schema": {
              "type": "integer",
              "enum": [
                7,
                30
              ],
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "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.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "fk_orgId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T00:00:00Z"
                          ]
                        },
                        "updatedAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T00:00:00Z"
                          ]
                        },
                        "connectionId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "metaAccountId": {
                          "type": "string",
                          "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                          "examples": [
                            "act_123456789"
                          ]
                        },
                        "name": {
                          "type": "string",
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "currency": {
                          "type": "string",
                          "description": "ISO currency of the Meta account; report money uses its major units.",
                          "examples": [
                            "USD"
                          ]
                        },
                        "timezone": {
                          "type": "string",
                          "description": "timezone.",
                          "examples": [
                            "America/New_York"
                          ]
                        },
                        "businessId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "business Id.",
                          "examples": [
                            "example"
                          ]
                        },
                        "context": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "product": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "description": "product.",
                              "examples": [
                                "example"
                              ]
                            },
                            "landingPage": {
                              "type": "string",
                              "format": "uri",
                              "description": "landing Page.",
                              "examples": [
                                "https://example.com/landing"
                              ]
                            },
                            "countries": {
                              "minItems": 1,
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "description": "countries.",
                              "examples": [
                                [
                                  "US"
                                ]
                              ]
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "examples": [
                                "purchase"
                              ]
                            },
                            "targetCpa": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "exclusiveMinimum": 0,
                              "description": "target Cpa.",
                              "examples": [
                                1
                              ]
                            },
                            "targetRoas": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "exclusiveMinimum": 0,
                              "description": "target Roas.",
                              "examples": [
                                1
                              ]
                            },
                            "grossMargin": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 0,
                              "maximum": 100,
                              "description": "gross Margin.",
                              "examples": [
                                1
                              ]
                            },
                            "averageOrderValue": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "exclusiveMinimum": 0,
                              "description": "average Order Value.",
                              "examples": [
                                1
                              ]
                            },
                            "lifetimeValue": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "exclusiveMinimum": 0,
                              "description": "lifetime Value.",
                              "examples": [
                                1
                              ]
                            },
                            "monthlyBudget": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "exclusiveMinimum": 0,
                              "description": "monthly Budget.",
                              "examples": [
                                1
                              ]
                            }
                          },
                          "required": [
                            "product",
                            "landingPage",
                            "countries",
                            "goal",
                            "targetCpa",
                            "targetRoas",
                            "grossMargin",
                            "averageOrderValue",
                            "lifetimeValue",
                            "monthlyBudget"
                          ],
                          "additionalProperties": false,
                          "description": "context.",
                          "examples": [
                            {}
                          ]
                        },
                        "policy": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "observe",
                                "recommend",
                                "guarded"
                              ],
                              "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                              "examples": [
                                "recommend"
                              ]
                            },
                            "maxDailyBudgetMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000000000000,
                              "description": "max Daily Budget Minor.",
                              "examples": [
                                1
                              ]
                            },
                            "maxBudgetChangePercent": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 30,
                              "description": "max Budget Change Percent.",
                              "examples": [
                                1
                              ]
                            },
                            "maxDailyIncreasePercent": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 50,
                              "description": "max Daily Increase Percent.",
                              "examples": [
                                1
                              ]
                            },
                            "minConversions": {
                              "type": "integer",
                              "minimum": 10,
                              "maximum": 10000,
                              "description": "min Conversions.",
                              "examples": [
                                1
                              ]
                            },
                            "minAgeHours": {
                              "type": "integer",
                              "minimum": 24,
                              "maximum": 720,
                              "description": "min Age Hours.",
                              "examples": [
                                1
                              ]
                            },
                            "cooldownHours": {
                              "type": "integer",
                              "minimum": 24,
                              "maximum": 720,
                              "description": "cooldown Hours.",
                              "examples": [
                                1
                              ]
                            },
                            "conversionDelayDays": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 7,
                              "description": "conversion Delay Days.",
                              "examples": [
                                1
                              ]
                            },
                            "protectedIds": {
                              "maxItems": 500,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^\\d{1,30}$"
                              },
                              "description": "protected Ids.",
                              "examples": [
                                []
                              ]
                            },
                            "autoBudgetChanges": {
                              "type": "boolean",
                              "description": "auto Budget Changes.",
                              "examples": [
                                false
                              ]
                            }
                          },
                          "required": [
                            "mode",
                            "maxDailyBudgetMinor",
                            "maxBudgetChangePercent",
                            "maxDailyIncreasePercent",
                            "minConversions",
                            "minAgeHours",
                            "cooldownHours",
                            "conversionDelayDays",
                            "protectedIds",
                            "autoBudgetChanges"
                          ],
                          "additionalProperties": false,
                          "description": "policy.",
                          "examples": [
                            {}
                          ]
                        },
                        "meta": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Provider or execution-specific properties; preserve unknown fields.",
                          "examples": [
                            {}
                          ]
                        },
                        "snapshotId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "lastSyncAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "example"
                          ]
                        },
                        "syncLeaseUntil": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "example"
                          ]
                        },
                        "syncLeaseId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "syncError": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "sync Error.",
                          "examples": [
                            "example"
                          ]
                        },
                        "writeLock": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "connection": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "expired",
                                "replaced",
                                "disconnected"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "examples": [
                                "active"
                              ]
                            },
                            "statusReason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "status Reason.",
                              "examples": [
                                "example"
                              ]
                            },
                            "expiresAt": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "ISO 8601 timestamp.",
                              "examples": [
                                "example"
                              ]
                            },
                            "metaUserName": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "meta User Name.",
                              "examples": [
                                "example"
                              ]
                            }
                          },
                          "required": [
                            "status",
                            "statusReason",
                            "expiresAt",
                            "metaUserName"
                          ],
                          "additionalProperties": false,
                          "description": "connection.",
                          "examples": [
                            {}
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "fk_orgId",
                        "createdAt",
                        "updatedAt",
                        "connectionId",
                        "metaAccountId",
                        "name",
                        "currency",
                        "timezone",
                        "businessId",
                        "context",
                        "policy",
                        "meta",
                        "snapshotId",
                        "lastSyncAt",
                        "syncLeaseUntil",
                        "syncLeaseId",
                        "syncError",
                        "writeLock"
                      ],
                      "additionalProperties": false,
                      "description": "account.",
                      "examples": [
                        {}
                      ]
                    },
                    "snapshotAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "since": {
                      "type": "string",
                      "description": "since.",
                      "examples": [
                        "2026-10-04T09:00:00Z"
                      ]
                    },
                    "until": {
                      "type": "string",
                      "description": "until.",
                      "examples": [
                        "2026-10-11T09:00:00Z"
                      ]
                    },
                    "current": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "spend": {
                          "type": "number",
                          "description": "Spend in major units of the ad account currency.",
                          "examples": [
                            100
                          ]
                        },
                        "revenue": {
                          "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            300
                          ]
                        },
                        "conversions": {
                          "type": "number",
                          "description": "Conversions for the configured goal.",
                          "examples": [
                            1
                          ]
                        },
                        "purchases": {
                          "type": "number",
                          "description": "Canonical purchases without double-counting Meta aliases.",
                          "examples": [
                            1
                          ]
                        },
                        "leads": {
                          "type": "number",
                          "description": "Canonical leads without double-counting aliases.",
                          "examples": [
                            1
                          ]
                        },
                        "impressions": {
                          "type": "number",
                          "description": "Ad impressions.",
                          "examples": [
                            1
                          ]
                        },
                        "clicks": {
                          "type": "number",
                          "description": "All clicks.",
                          "examples": [
                            1
                          ]
                        },
                        "linkClicks": {
                          "type": "number",
                          "description": "Link clicks.",
                          "examples": [
                            1
                          ]
                        },
                        "roas": {
                          "description": "Attributed purchase revenue / spend; null when unavailable.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            3
                          ]
                        },
                        "cpa": {
                          "description": "Spend / goal conversions; null without conversions.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            10
                          ]
                        },
                        "cac": {
                          "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            20
                          ]
                        },
                        "ctr": {
                          "description": "All clicks / impressions × 100 (percentage).",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "cpc": {
                          "description": "Spend / all clicks.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "cpm": {
                          "description": "Spend / impressions × 1000.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "cvr": {
                          "description": "Goal conversions / link clicks × 100 (percentage).",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "frequency": {
                          "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "reach": {
                          "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "spend",
                        "revenue",
                        "conversions",
                        "purchases",
                        "leads",
                        "impressions",
                        "clicks",
                        "linkClicks",
                        "roas",
                        "cpa",
                        "cac",
                        "ctr",
                        "cpc",
                        "cpm",
                        "cvr",
                        "frequency",
                        "reach"
                      ],
                      "additionalProperties": false,
                      "description": "current.",
                      "examples": [
                        {}
                      ]
                    },
                    "previous": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "spend": {
                          "type": "number",
                          "description": "Spend in major units of the ad account currency.",
                          "examples": [
                            100
                          ]
                        },
                        "revenue": {
                          "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            300
                          ]
                        },
                        "conversions": {
                          "type": "number",
                          "description": "Conversions for the configured goal.",
                          "examples": [
                            1
                          ]
                        },
                        "purchases": {
                          "type": "number",
                          "description": "Canonical purchases without double-counting Meta aliases.",
                          "examples": [
                            1
                          ]
                        },
                        "leads": {
                          "type": "number",
                          "description": "Canonical leads without double-counting aliases.",
                          "examples": [
                            1
                          ]
                        },
                        "impressions": {
                          "type": "number",
                          "description": "Ad impressions.",
                          "examples": [
                            1
                          ]
                        },
                        "clicks": {
                          "type": "number",
                          "description": "All clicks.",
                          "examples": [
                            1
                          ]
                        },
                        "linkClicks": {
                          "type": "number",
                          "description": "Link clicks.",
                          "examples": [
                            1
                          ]
                        },
                        "roas": {
                          "description": "Attributed purchase revenue / spend; null when unavailable.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            3
                          ]
                        },
                        "cpa": {
                          "description": "Spend / goal conversions; null without conversions.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            10
                          ]
                        },
                        "cac": {
                          "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            20
                          ]
                        },
                        "ctr": {
                          "description": "All clicks / impressions × 100 (percentage).",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "cpc": {
                          "description": "Spend / all clicks.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "cpm": {
                          "description": "Spend / impressions × 1000.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "cvr": {
                          "description": "Goal conversions / link clicks × 100 (percentage).",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "frequency": {
                          "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        },
                        "reach": {
                          "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "spend",
                        "revenue",
                        "conversions",
                        "purchases",
                        "leads",
                        "impressions",
                        "clicks",
                        "linkClicks",
                        "roas",
                        "cpa",
                        "cac",
                        "ctr",
                        "cpc",
                        "cpm",
                        "cvr",
                        "frequency",
                        "reach"
                      ],
                      "additionalProperties": false,
                      "description": "previous.",
                      "examples": [
                        {}
                      ]
                    },
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "examples": [
                                  100
                                ]
                              },
                              "revenue": {
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  300
                                ]
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "examples": [
                                  1
                                ]
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "examples": [
                                  1
                                ]
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "roas": {
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  3
                                ]
                              },
                              "cpa": {
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  10
                                ]
                              },
                              "cac": {
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  20
                                ]
                              },
                              "ctr": {
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpc": {
                                "description": "Spend / all clicks.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpm": {
                                "description": "Spend / impressions × 1000.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cvr": {
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "frequency": {
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "reach": {
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "examples": [
                              {}
                            ]
                          },
                          "eligible": {
                            "type": "boolean",
                            "description": "Whether the row has enough conversions for efficiency ranking; does not establish statistical significance.",
                            "examples": [
                              false
                            ]
                          },
                          "object": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          },
                          "budgetOwner": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "metrics",
                          "eligible",
                          "object",
                          "budgetOwner"
                        ],
                        "additionalProperties": false
                      },
                      "description": "campaigns.",
                      "examples": [
                        []
                      ]
                    },
                    "ads": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "examples": [
                                  100
                                ]
                              },
                              "revenue": {
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  300
                                ]
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "examples": [
                                  1
                                ]
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "examples": [
                                  1
                                ]
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "roas": {
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  3
                                ]
                              },
                              "cpa": {
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  10
                                ]
                              },
                              "cac": {
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  20
                                ]
                              },
                              "ctr": {
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpc": {
                                "description": "Spend / all clicks.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpm": {
                                "description": "Spend / impressions × 1000.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cvr": {
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "frequency": {
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "reach": {
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "examples": [
                              {}
                            ]
                          },
                          "campaignId": {
                            "type": "string",
                            "description": "campaign Id.",
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "metrics"
                        ],
                        "additionalProperties": false
                      },
                      "description": "ads.",
                      "examples": [
                        []
                      ]
                    },
                    "daily": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "date.",
                            "examples": [
                              "2026-10-11"
                            ]
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "examples": [
                                  100
                                ]
                              },
                              "revenue": {
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  300
                                ]
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "examples": [
                                  1
                                ]
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "examples": [
                                  1
                                ]
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "roas": {
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  3
                                ]
                              },
                              "cpa": {
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  10
                                ]
                              },
                              "cac": {
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  20
                                ]
                              },
                              "ctr": {
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpc": {
                                "description": "Spend / all clicks.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpm": {
                                "description": "Spend / impressions × 1000.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cvr": {
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "frequency": {
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "reach": {
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "date",
                          "metrics"
                        ],
                        "additionalProperties": false
                      },
                      "description": "daily.",
                      "examples": [
                        []
                      ]
                    },
                    "recommendations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Provider or execution-specific properties; preserve unknown fields."
                      },
                      "description": "recommendations.",
                      "examples": [
                        []
                      ]
                    },
                    "recommendationsError": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "recommendations Error.",
                      "examples": [
                        "example"
                      ]
                    },
                    "attribution": {
                      "type": "string",
                      "description": "attribution.",
                      "examples": [
                        "7-day click / 1-day view; conversion date"
                      ]
                    },
                    "cacCoverage": {
                      "type": "object",
                      "properties": {
                        "providedDays": {
                          "type": "number",
                          "description": "provided Days.",
                          "examples": [
                            1
                          ]
                        },
                        "requiredDays": {
                          "type": "number",
                          "description": "required Days.",
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "providedDays",
                        "requiredDays"
                      ],
                      "additionalProperties": false,
                      "description": "cac Coverage.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "account",
                    "snapshotAt",
                    "current",
                    "previous",
                    "campaigns",
                    "ads",
                    "daily",
                    "recommendations",
                    "recommendationsError",
                    "attribution"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get performance report",
        "tags": [
          "Insights"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.insights:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "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."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/resources": {
      "get": {
        "operationId": "list-pages-and-pixels",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read available Meta pages and pixels for experiment setup through the account connection.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "description": "pages.",
                      "examples": [
                        []
                      ]
                    },
                    "pixels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "lastFiredTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T08:00:00Z"
                            ]
                          },
                          "isUnavailable": {
                            "type": "boolean",
                            "description": "is Unavailable.",
                            "examples": [
                              false
                            ]
                          },
                          "createdTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "lastFiredTime",
                          "isUnavailable",
                          "createdTime"
                        ],
                        "additionalProperties": false
                      },
                      "description": "pixels.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "pages",
                    "pixels"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List pages and pixels",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read available Meta pages and pixels for experiment setup through the account connection."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/rules": {
      "get": {
        "operationId": "list-automation-rules",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Zero-based page, 50 rows per page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read saved rules and their mode, preview and evaluation timestamps.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "fk_orgId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "spec": {
                            "type": "object",
                            "properties": {
                              "conditions": {
                                "minItems": 1,
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "metric": {
                                      "type": "string",
                                      "enum": [
                                        "spend",
                                        "revenue",
                                        "roas",
                                        "cpa",
                                        "conversions",
                                        "ctr",
                                        "cpc",
                                        "cpm",
                                        "cvr",
                                        "frequency"
                                      ],
                                      "description": "metric.",
                                      "examples": [
                                        "spend"
                                      ]
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "gt",
                                        "lt",
                                        "gte",
                                        "lte"
                                      ],
                                      "description": "operator.",
                                      "examples": [
                                        "gt"
                                      ]
                                    },
                                    "value": {
                                      "type": "number",
                                      "minimum": 0,
                                      "description": "value.",
                                      "examples": [
                                        1
                                      ]
                                    }
                                  },
                                  "required": [
                                    "metric",
                                    "operator",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                },
                                "description": "conditions.",
                                "examples": [
                                  []
                                ]
                              },
                              "action": {
                                "type": "string",
                                "enum": [
                                  "pause",
                                  "increase_budget",
                                  "decrease_budget",
                                  "recommend"
                                ],
                                "description": "action.",
                                "examples": [
                                  "pause"
                                ]
                              },
                              "changePercent": {
                                "type": "number",
                                "minimum": 1,
                                "maximum": 30,
                                "description": "change Percent.",
                                "examples": [
                                  1
                                ]
                              },
                              "days": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "enum": [
                                      7
                                    ]
                                  },
                                  {
                                    "type": "number",
                                    "enum": [
                                      30
                                    ]
                                  }
                                ],
                                "description": "days.",
                                "examples": [
                                  7
                                ]
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "simulation",
                                  "recommend",
                                  "guarded"
                                ],
                                "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                                "examples": [
                                  "recommend"
                                ]
                              }
                            },
                            "required": [
                              "conditions",
                              "action",
                              "changePercent",
                              "days",
                              "mode"
                            ],
                            "additionalProperties": false,
                            "description": "spec.",
                            "examples": [
                              {}
                            ]
                          },
                          "enabled": {
                            "type": "boolean",
                            "description": "enabled.",
                            "examples": [
                              false
                            ]
                          },
                          "lastPreviewAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          },
                          "lastEvaluatedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "fk_orgId",
                          "createdAt",
                          "updatedAt",
                          "accountId",
                          "name",
                          "spec",
                          "enabled",
                          "lastPreviewAt",
                          "lastEvaluatedAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "items.",
                      "examples": [
                        []
                      ]
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "total.",
                      "examples": [
                        1
                      ]
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "page.",
                      "examples": [
                        0
                      ]
                    },
                    "pageSize": {
                      "type": "number",
                      "enum": [
                        50
                      ],
                      "description": "page Size.",
                      "examples": [
                        50
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "page",
                    "pageSize"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List automation rules",
        "tags": [
          "Automation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.automation:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read saved rules and their mode, preview and evaluation timestamps."
      },
      "post": {
        "operationId": "create-a-simulation-rule",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "name.",
                    "examples": [
                      "Summer creative test"
                    ]
                  },
                  "spec": {
                    "type": "object",
                    "properties": {
                      "conditions": {
                        "minItems": 1,
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "metric": {
                              "type": "string",
                              "enum": [
                                "spend",
                                "revenue",
                                "roas",
                                "cpa",
                                "conversions",
                                "ctr",
                                "cpc",
                                "cpm",
                                "cvr",
                                "frequency"
                              ],
                              "description": "metric.",
                              "examples": [
                                "spend"
                              ]
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "gt",
                                "lt",
                                "gte",
                                "lte"
                              ],
                              "description": "operator.",
                              "examples": [
                                "gt"
                              ]
                            },
                            "value": {
                              "type": "number",
                              "minimum": 0,
                              "description": "value.",
                              "examples": [
                                1
                              ]
                            }
                          },
                          "required": [
                            "metric",
                            "operator",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "description": "conditions.",
                        "examples": [
                          []
                        ]
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "pause",
                          "increase_budget",
                          "decrease_budget",
                          "recommend"
                        ],
                        "description": "action.",
                        "examples": [
                          "pause"
                        ]
                      },
                      "changePercent": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 30,
                        "description": "change Percent.",
                        "examples": [
                          1
                        ]
                      },
                      "days": {
                        "anyOf": [
                          {
                            "type": "number",
                            "enum": [
                              7
                            ]
                          },
                          {
                            "type": "number",
                            "enum": [
                              30
                            ]
                          }
                        ],
                        "description": "days.",
                        "examples": [
                          7
                        ]
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "simulation",
                          "recommend",
                          "guarded"
                        ],
                        "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                        "examples": [
                          "recommend"
                        ]
                      }
                    },
                    "required": [
                      "conditions",
                      "action",
                      "changePercent",
                      "days",
                      "mode"
                    ],
                    "additionalProperties": false,
                    "description": "spec.",
                    "examples": [
                      {}
                    ]
                  }
                },
                "required": [
                  "name",
                  "spec"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Save a disabled rule. spec.mode must be simulation on creation. Conditions require 7/30-day metrics; null metrics never match.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "spec": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "minItems": 1,
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "metric": {
                                "type": "string",
                                "enum": [
                                  "spend",
                                  "revenue",
                                  "roas",
                                  "cpa",
                                  "conversions",
                                  "ctr",
                                  "cpc",
                                  "cpm",
                                  "cvr",
                                  "frequency"
                                ],
                                "description": "metric.",
                                "examples": [
                                  "spend"
                                ]
                              },
                              "operator": {
                                "type": "string",
                                "enum": [
                                  "gt",
                                  "lt",
                                  "gte",
                                  "lte"
                                ],
                                "description": "operator.",
                                "examples": [
                                  "gt"
                                ]
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "description": "value.",
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "metric",
                              "operator",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "conditions.",
                          "examples": [
                            []
                          ]
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "pause",
                            "increase_budget",
                            "decrease_budget",
                            "recommend"
                          ],
                          "description": "action.",
                          "examples": [
                            "pause"
                          ]
                        },
                        "changePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "change Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "number",
                              "enum": [
                                7
                              ]
                            },
                            {
                              "type": "number",
                              "enum": [
                                30
                              ]
                            }
                          ],
                          "description": "days.",
                          "examples": [
                            7
                          ]
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "simulation",
                            "recommend",
                            "guarded"
                          ],
                          "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                          "examples": [
                            "recommend"
                          ]
                        }
                      },
                      "required": [
                        "conditions",
                        "action",
                        "changePercent",
                        "days",
                        "mode"
                      ],
                      "additionalProperties": false,
                      "description": "spec.",
                      "examples": [
                        {}
                      ]
                    },
                    "enabled": {
                      "type": "boolean",
                      "description": "enabled.",
                      "examples": [
                        false
                      ]
                    },
                    "lastPreviewAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "lastEvaluatedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "name",
                    "spec",
                    "enabled",
                    "lastPreviewAt",
                    "lastEvaluatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Create a simulation rule",
        "tags": [
          "Automation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.automation:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Save a disabled rule. spec.mode must be simulation on creation. Conditions require 7/30-day metrics; null metrics never match."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/settings": {
      "put": {
        "operationId": "set-account-context-and-guardrails",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "context": {
                    "type": "object",
                    "properties": {
                      "product": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000,
                        "description": "product.",
                        "examples": [
                          "example"
                        ]
                      },
                      "landingPage": {
                        "type": "string",
                        "format": "uri",
                        "description": "landing Page.",
                        "examples": [
                          "https://example.com/landing"
                        ]
                      },
                      "countries": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        },
                        "description": "countries.",
                        "examples": [
                          [
                            "US"
                          ]
                        ]
                      },
                      "goal": {
                        "type": "string",
                        "enum": [
                          "purchase",
                          "lead",
                          "landing_page_view"
                        ],
                        "description": "goal.",
                        "examples": [
                          "purchase"
                        ]
                      },
                      "targetCpa": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "exclusiveMinimum": 0,
                        "description": "target Cpa.",
                        "examples": [
                          1
                        ]
                      },
                      "targetRoas": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "exclusiveMinimum": 0,
                        "description": "target Roas.",
                        "examples": [
                          1
                        ]
                      },
                      "grossMargin": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "minimum": 0,
                        "maximum": 100,
                        "description": "gross Margin.",
                        "examples": [
                          1
                        ]
                      },
                      "averageOrderValue": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "exclusiveMinimum": 0,
                        "description": "average Order Value.",
                        "examples": [
                          1
                        ]
                      },
                      "lifetimeValue": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "exclusiveMinimum": 0,
                        "description": "lifetime Value.",
                        "examples": [
                          1
                        ]
                      },
                      "monthlyBudget": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "exclusiveMinimum": 0,
                        "description": "monthly Budget.",
                        "examples": [
                          1
                        ]
                      }
                    },
                    "required": [
                      "product",
                      "landingPage",
                      "countries",
                      "goal",
                      "targetCpa",
                      "targetRoas",
                      "grossMargin",
                      "averageOrderValue",
                      "lifetimeValue",
                      "monthlyBudget"
                    ],
                    "additionalProperties": false,
                    "description": "context.",
                    "examples": [
                      {}
                    ]
                  },
                  "policy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "observe",
                          "recommend",
                          "guarded"
                        ],
                        "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                        "examples": [
                          "recommend"
                        ]
                      },
                      "maxDailyBudgetMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000000,
                        "description": "max Daily Budget Minor.",
                        "examples": [
                          1
                        ]
                      },
                      "maxBudgetChangePercent": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 30,
                        "description": "max Budget Change Percent.",
                        "examples": [
                          1
                        ]
                      },
                      "maxDailyIncreasePercent": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50,
                        "description": "max Daily Increase Percent.",
                        "examples": [
                          1
                        ]
                      },
                      "minConversions": {
                        "type": "integer",
                        "minimum": 10,
                        "maximum": 10000,
                        "description": "min Conversions.",
                        "examples": [
                          1
                        ]
                      },
                      "minAgeHours": {
                        "type": "integer",
                        "minimum": 24,
                        "maximum": 720,
                        "description": "min Age Hours.",
                        "examples": [
                          1
                        ]
                      },
                      "cooldownHours": {
                        "type": "integer",
                        "minimum": 24,
                        "maximum": 720,
                        "description": "cooldown Hours.",
                        "examples": [
                          1
                        ]
                      },
                      "conversionDelayDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 7,
                        "description": "conversion Delay Days.",
                        "examples": [
                          1
                        ]
                      },
                      "protectedIds": {
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$"
                        },
                        "description": "protected Ids.",
                        "examples": [
                          []
                        ]
                      },
                      "autoBudgetChanges": {
                        "type": "boolean",
                        "description": "auto Budget Changes.",
                        "examples": [
                          false
                        ]
                      }
                    },
                    "required": [
                      "mode",
                      "maxDailyBudgetMinor",
                      "maxBudgetChangePercent",
                      "maxDailyIncreasePercent",
                      "minConversions",
                      "minAgeHours",
                      "cooldownHours",
                      "conversionDelayDays",
                      "protectedIds",
                      "autoBudgetChanges"
                    ],
                    "additionalProperties": false,
                    "description": "policy.",
                    "examples": [
                      {}
                    ]
                  }
                },
                "required": [
                  "context",
                  "policy"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Replace context and policy. Zero maxDailyBudgetMinor disallows budget growth/launch. Protected objects, cooldown, age and conversion requirements constrain writes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "connectionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "metaAccountId": {
                      "type": "string",
                      "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                      "examples": [
                        "act_123456789"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "examples": [
                        "USD"
                      ]
                    },
                    "timezone": {
                      "type": "string",
                      "description": "timezone.",
                      "examples": [
                        "America/New_York"
                      ]
                    },
                    "businessId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "business Id.",
                      "examples": [
                        "example"
                      ]
                    },
                    "context": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "product": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "product.",
                          "examples": [
                            "example"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "goal": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "lead",
                            "landing_page_view"
                          ],
                          "description": "goal.",
                          "examples": [
                            "purchase"
                          ]
                        },
                        "targetCpa": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "target Cpa.",
                          "examples": [
                            1
                          ]
                        },
                        "targetRoas": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "target Roas.",
                          "examples": [
                            1
                          ]
                        },
                        "grossMargin": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 0,
                          "maximum": 100,
                          "description": "gross Margin.",
                          "examples": [
                            1
                          ]
                        },
                        "averageOrderValue": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "average Order Value.",
                          "examples": [
                            1
                          ]
                        },
                        "lifetimeValue": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "lifetime Value.",
                          "examples": [
                            1
                          ]
                        },
                        "monthlyBudget": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "description": "monthly Budget.",
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "product",
                        "landingPage",
                        "countries",
                        "goal",
                        "targetCpa",
                        "targetRoas",
                        "grossMargin",
                        "averageOrderValue",
                        "lifetimeValue",
                        "monthlyBudget"
                      ],
                      "additionalProperties": false,
                      "description": "context.",
                      "examples": [
                        {}
                      ]
                    },
                    "policy": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "observe",
                            "recommend",
                            "guarded"
                          ],
                          "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                          "examples": [
                            "recommend"
                          ]
                        },
                        "maxDailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000,
                          "description": "max Daily Budget Minor.",
                          "examples": [
                            1
                          ]
                        },
                        "maxBudgetChangePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "max Budget Change Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "maxDailyIncreasePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 50,
                          "description": "max Daily Increase Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "minAgeHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "min Age Hours.",
                          "examples": [
                            1
                          ]
                        },
                        "cooldownHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "cooldown Hours.",
                          "examples": [
                            1
                          ]
                        },
                        "conversionDelayDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 7,
                          "description": "conversion Delay Days.",
                          "examples": [
                            1
                          ]
                        },
                        "protectedIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\d{1,30}$"
                          },
                          "description": "protected Ids.",
                          "examples": [
                            []
                          ]
                        },
                        "autoBudgetChanges": {
                          "type": "boolean",
                          "description": "auto Budget Changes.",
                          "examples": [
                            false
                          ]
                        }
                      },
                      "required": [
                        "mode",
                        "maxDailyBudgetMinor",
                        "maxBudgetChangePercent",
                        "maxDailyIncreasePercent",
                        "minConversions",
                        "minAgeHours",
                        "cooldownHours",
                        "conversionDelayDays",
                        "protectedIds",
                        "autoBudgetChanges"
                      ],
                      "additionalProperties": false,
                      "description": "policy.",
                      "examples": [
                        {}
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "snapshotId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "lastSyncAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "syncLeaseUntil": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "syncLeaseId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "syncError": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "sync Error.",
                      "examples": [
                        "example"
                      ]
                    },
                    "writeLock": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "connection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "replaced",
                            "disconnected"
                          ],
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "examples": [
                            "active"
                          ]
                        },
                        "statusReason": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "status Reason.",
                          "examples": [
                            "example"
                          ]
                        },
                        "expiresAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "example"
                          ]
                        },
                        "metaUserName": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "meta User Name.",
                          "examples": [
                            "example"
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "statusReason",
                        "expiresAt",
                        "metaUserName"
                      ],
                      "additionalProperties": false,
                      "description": "connection.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "connectionId",
                    "metaAccountId",
                    "name",
                    "currency",
                    "timezone",
                    "businessId",
                    "context",
                    "policy",
                    "meta",
                    "snapshotId",
                    "lastSyncAt",
                    "syncLeaseUntil",
                    "syncLeaseId",
                    "syncError",
                    "writeLock"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Set account context and guardrails",
        "tags": [
          "Ad accounts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:update` and `performance_marketing.action:approve`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Replace context and policy. Zero maxDailyBudgetMinor disallows budget growth/launch. Protected objects, cooldown, age and conversion requirements constrain writes."
      }
    },
    "/v1/galaxy/performance-marketing/accounts/{id}/sync": {
      "post": {
        "operationId": "queue-account-sync",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Schedule a durable Meta read. Repeated calls join a live job. Poll account lastSyncAt/syncError, then read report. This does not directly change campaigns.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scheduled": {
                      "type": "boolean",
                      "enum": [
                        true
                      ],
                      "description": "scheduled.",
                      "examples": [
                        true
                      ]
                    },
                    "jobId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    }
                  },
                  "required": [
                    "scheduled",
                    "jobId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Queue account sync",
        "tags": [
          "Insights"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.account:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Schedule a durable Meta read. Repeated calls join a live job. Poll account lastSyncAt/syncError, then read report. This does not directly change campaigns."
      }
    },
    "/v1/galaxy/performance-marketing/actions/{id}/approve": {
      "post": {
        "operationId": "approve-and-execute-an-action",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Approve an actionable proposal and execute the exact fields after live-state/policy checks. Activation and budget increases can create external Meta spend.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "examples": [
                        "123456789"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "examples": [
                        "status"
                      ]
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "examples": [
                        "CRM import"
                      ]
                    },
                    "ruleId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "examples": [
                        {}
                      ]
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "examples": [
                        "High spend with insufficient conversions"
                      ]
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "executedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "objectId",
                    "kind",
                    "source",
                    "ruleId",
                    "creatorId",
                    "approvedBy",
                    "status",
                    "before",
                    "after",
                    "reason",
                    "evidence",
                    "error",
                    "executedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Approve and execute an action",
        "tags": [
          "Actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.action:approve`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Approve an actionable proposal and execute the exact fields after live-state/policy checks. Activation and budget increases can create external Meta spend."
      }
    },
    "/v1/galaxy/performance-marketing/actions/{id}/reconcile": {
      "post": {
        "operationId": "reconcile-action-execution",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Read Meta live state to determine whether an unconfirmed write landed; do not repeat the mutation blindly.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "examples": [
                        "123456789"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "examples": [
                        "status"
                      ]
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "examples": [
                        "CRM import"
                      ]
                    },
                    "ruleId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "examples": [
                        {}
                      ]
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "examples": [
                        "High spend with insufficient conversions"
                      ]
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "executedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "objectId",
                    "kind",
                    "source",
                    "ruleId",
                    "creatorId",
                    "approvedBy",
                    "status",
                    "before",
                    "after",
                    "reason",
                    "evidence",
                    "error",
                    "executedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Reconcile action execution",
        "tags": [
          "Actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.action:approve`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read Meta live state to determine whether an unconfirmed write landed; do not repeat the mutation blindly."
      }
    },
    "/v1/galaxy/performance-marketing/actions/{id}/reject": {
      "post": {
        "operationId": "reject-an-action",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Reject a pending proposal without making a Meta write.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "examples": [
                        "123456789"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "examples": [
                        "status"
                      ]
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "examples": [
                        "CRM import"
                      ]
                    },
                    "ruleId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "examples": [
                        {}
                      ]
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "examples": [
                        "High spend with insufficient conversions"
                      ]
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "executedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "objectId",
                    "kind",
                    "source",
                    "ruleId",
                    "creatorId",
                    "approvedBy",
                    "status",
                    "before",
                    "after",
                    "reason",
                    "evidence",
                    "error",
                    "executedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Reject an action",
        "tags": [
          "Actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.action:approve`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Reject a pending proposal without making a Meta write."
      }
    },
    "/v1/galaxy/performance-marketing/actions/{id}/rollback": {
      "post": {
        "operationId": "propose-action-rollback",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Create a new reverse proposal from a prior executed action. It still needs separate approval and current policy validation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "examples": [
                        "123456789"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "examples": [
                        "status"
                      ]
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "examples": [
                        "CRM import"
                      ]
                    },
                    "ruleId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "examples": [
                        {}
                      ]
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "examples": [
                        "High spend with insufficient conversions"
                      ]
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "examples": [
                        {}
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "executedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "objectId",
                    "kind",
                    "source",
                    "ruleId",
                    "creatorId",
                    "approvedBy",
                    "status",
                    "before",
                    "after",
                    "reason",
                    "evidence",
                    "error",
                    "executedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Propose action rollback",
        "tags": [
          "Actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.action:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Create a new reverse proposal from a prior executed action. It still needs separate approval and current policy validation."
      }
    },
    "/v1/galaxy/performance-marketing/connections": {
      "get": {
        "operationId": "list-meta-connections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Read configuration and the organization’s connection summaries. Tokens are never returned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "configured": {
                      "type": "boolean",
                      "description": "configured.",
                      "examples": [
                        false
                      ]
                    },
                    "connections": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "expired",
                              "replaced",
                              "disconnected"
                            ],
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "examples": [
                              "active"
                            ]
                          },
                          "statusReason": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "status Reason.",
                            "examples": [
                              "example"
                            ]
                          },
                          "expiresAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "example"
                            ]
                          },
                          "metaUserName": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "meta User Name.",
                            "examples": [
                              "example"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "scopes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "scopes.",
                            "examples": [
                              []
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "examples": [
                              "2026-10-11T00:00:00Z"
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "statusReason",
                          "expiresAt",
                          "metaUserName",
                          "id",
                          "name",
                          "scopes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "connections.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "configured",
                    "connections"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "List Meta connections",
        "tags": [
          "Connections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.connection:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read configuration and the organization’s connection summaries. Tokens are never returned."
      }
    },
    "/v1/galaxy/performance-marketing/connections/{id}/accounts": {
      "get": {
        "operationId": "discover-meta-ad-accounts",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List ad accounts accessible through this connection. IDs here are Meta act_ IDs; select one to get a Universe account UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Meta ad account ID with act_ prefix, not a Universe UUID.",
                        "examples": [
                          "act_123456789"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "name.",
                        "examples": [
                          "Summer creative test"
                        ]
                      },
                      "account_status": {
                        "type": "number",
                        "description": "account status.",
                        "examples": [
                          1
                        ]
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO currency of the Meta account; report money uses its major units.",
                        "examples": [
                          "USD"
                        ]
                      },
                      "timezone_name": {
                        "type": "string",
                        "description": "timezone name.",
                        "examples": [
                          "example"
                        ]
                      },
                      "business": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Provider or execution-specific properties; preserve unknown fields.",
                        "examples": [
                          {}
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "currency",
                      "timezone_name"
                    ],
                    "additionalProperties": {}
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Discover Meta ad accounts",
        "tags": [
          "Connections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.connection:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List ad accounts accessible through this connection. IDs here are Meta act_ IDs; select one to get a Universe account UUID."
      }
    },
    "/v1/galaxy/performance-marketing/connections/authorize": {
      "post": {
        "operationId": "start-meta-authorization",
        "parameters": [
          {
            "name": "origin",
            "required": false,
            "in": "header",
            "description": "Allowed Universe webapp origin for browser consent. Omit to use the central webapp.",
            "schema": {
              "type": "string",
              "examples": [
                "https://app.vitra.ai"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Start a ten-minute, member-bound browser consent flow. Keep attemptId and verifier in the initiating browser, open url, then complete with the callback code. An Origin header must be an allowed Universe origin; without it the central webapp origin is used.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "attemptId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "verifier": {
                      "type": "string",
                      "description": "One-use verifier from authorize; retain only in the initiating browser and do not log or share.",
                      "examples": [
                        "one-use-browser-verifier-kept-private-1234567890"
                      ]
                    },
                    "url": {
                      "type": "string",
                      "description": "HTTP(S) resource URL. OAuth authorize returns a consent dialog URL; media returns an expiring signed preview URL.",
                      "examples": [
                        "https://example.com/landing"
                      ]
                    }
                  },
                  "required": [
                    "attemptId",
                    "verifier",
                    "url"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Meta integration is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Start Meta authorization",
        "tags": [
          "Connections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.connection:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Start a ten-minute, member-bound browser consent flow. Keep attemptId and verifier in the initiating browser, open url, then complete with the callback code. An Origin header must be an allowed Universe origin; without it the central webapp origin is used."
      }
    },
    "/v1/galaxy/performance-marketing/connections/complete": {
      "post": {
        "operationId": "complete-meta-authorization",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attemptId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([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)$",
                    "description": "attempt Id.",
                    "examples": [
                      "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    ]
                  },
                  "verifier": {
                    "type": "string",
                    "minLength": 40,
                    "maxLength": 100,
                    "description": "One-use verifier from authorize; retain only in the initiating browser and do not log or share.",
                    "examples": [
                      "one-use-browser-verifier-kept-private-1234567890"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "code.",
                    "examples": [
                      "one-use-meta-authorization-code"
                    ]
                  }
                },
                "required": [
                  "attemptId",
                  "verifier",
                  "code"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Complete the one-use attempt with the same member’s verifier and the exact callback code. A renewed login can move existing accounts from an older connection.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "movedAccounts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "moved Accounts.",
                      "examples": [
                        1
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "movedAccounts"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Complete Meta authorization",
        "tags": [
          "Connections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.connection:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Complete the one-use attempt with the same member’s verifier and the exact callback code. A renewed login can move existing accounts from an older connection."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}": {
      "get": {
        "operationId": "get-an-experiment",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read the plan, current lifecycle state and idempotent execution steps.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "examples": [
                            true
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "examples": [
                            "The localized creative improves qualified purchases."
                          ]
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "examples": [
                            "OUTCOME_SALES"
                          ]
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "examples": [
                            "creative"
                          ]
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "examples": [
                            "example"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "examples": [
                            "771204559813206"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "dailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000,
                          "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                          "examples": [
                            2000
                          ]
                        },
                        "startTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "start Time.",
                          "examples": [
                            "2026-10-12T00:00:00Z"
                          ]
                        },
                        "endTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "end Time.",
                          "examples": [
                            "2026-10-19T00:00:00Z"
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "examples": [
                            "roas"
                          ]
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "assetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "thumbnailAssetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "thumbnail Asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "examples": [
                                  "LEARN_MORE"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "examples": [
                            []
                          ]
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "examples": [
                        {}
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "examples": [
                              "ad:0"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "examples": [
                              "done"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "examples": [
                        []
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "approvedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_projectId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "assignees": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "image": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "image.",
                            "examples": [
                              "example"
                            ]
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "examples": [
                              []
                            ]
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "creatorId",
                    "approvedBy",
                    "name",
                    "plan",
                    "status",
                    "steps",
                    "error",
                    "approvedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get an experiment",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read the plan, current lifecycle state and idempotent execution steps."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/delivery": {
      "get": {
        "operationId": "get-live-delivery-from-meta",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read the experiment’s campaigns and ads from Meta now: whether they are switched on and serving, why an ad is held back, and lifetime spend, reach and results. A paused experiment that Meta shows switched on (started in Ads Manager) is marked active.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checkedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T09:00:00Z"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "The experiment status after this check: a paused experiment Meta shows switched on is now active.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "not_created",
                        "scheduled",
                        "delivering",
                        "in_review",
                        "issues",
                        "ended",
                        "paused",
                        "removed"
                      ],
                      "description": "Where the experiment stands in Meta right now.",
                      "examples": [
                        "not_created"
                      ]
                    },
                    "switchedOn": {
                      "type": "boolean",
                      "description": "switched On.",
                      "examples": [
                        false
                      ]
                    },
                    "reconciled": {
                      "type": "boolean",
                      "description": "True when this check found the test switched on in Ads Manager and marked it active.",
                      "examples": [
                        false
                      ]
                    },
                    "startedInAdsManager": {
                      "type": "boolean",
                      "description": "True when the test was switched on in Ads Manager, so Vitra’s launch checks did not run.",
                      "examples": [
                        false
                      ]
                    },
                    "goal": {
                      "type": "string",
                      "enum": [
                        "purchase",
                        "lead",
                        "landing_page_view"
                      ],
                      "description": "goal.",
                      "examples": [
                        "purchase"
                      ]
                    },
                    "currency": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "examples": [
                        "USD"
                      ]
                    },
                    "spendCapMinor": {
                      "type": "number",
                      "description": "The planned budget for the whole test, in minor units.",
                      "examples": [
                        1
                      ]
                    },
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "status": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "examples": [
                              "draft"
                            ]
                          },
                          "effectiveStatus": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "effective Status.",
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "effectiveStatus"
                        ],
                        "additionalProperties": false
                      },
                      "description": "campaigns.",
                      "examples": [
                        []
                      ]
                    },
                    "ads": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "variant": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "variant.",
                            "examples": [
                              "example"
                            ]
                          },
                          "status": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "examples": [
                              "draft"
                            ]
                          },
                          "effectiveStatus": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "effective Status.",
                            "examples": [
                              "example"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "delivering",
                              "in_review",
                              "issues",
                              "paused",
                              "removed"
                            ],
                            "description": "state.",
                            "examples": [
                              "delivering"
                            ]
                          },
                          "problem": {
                            "description": "Why Meta holds the ad back, in Meta’s words.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "variant",
                          "status",
                          "effectiveStatus",
                          "state",
                          "problem"
                        ],
                        "additionalProperties": false
                      },
                      "description": "ads.",
                      "examples": [
                        []
                      ]
                    },
                    "totals": {
                      "description": "Lifetime totals from Meta, in the account currency, with the ad sets’ own attribution setting (as Ads Manager shows them).",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "spend": {
                          "type": "number",
                          "description": "spend.",
                          "examples": [
                            100
                          ]
                        },
                        "impressions": {
                          "type": "number",
                          "description": "impressions.",
                          "examples": [
                            1
                          ]
                        },
                        "reach": {
                          "type": "number",
                          "description": "reach.",
                          "examples": [
                            1
                          ]
                        },
                        "clicks": {
                          "type": "number",
                          "description": "clicks.",
                          "examples": [
                            1
                          ]
                        },
                        "linkClicks": {
                          "type": "number",
                          "description": "link Clicks.",
                          "examples": [
                            1
                          ]
                        },
                        "results": {
                          "type": "number",
                          "description": "results.",
                          "examples": [
                            1
                          ]
                        },
                        "costPerResult": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "cost Per Result.",
                          "examples": [
                            1
                          ]
                        },
                        "ctr": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ctr.",
                          "examples": [
                            1
                          ]
                        },
                        "cpm": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "cpm.",
                          "examples": [
                            1
                          ]
                        }
                      },
                      "required": [
                        "spend",
                        "impressions",
                        "reach",
                        "clicks",
                        "linkClicks",
                        "results",
                        "costPerResult",
                        "ctr",
                        "cpm"
                      ],
                      "additionalProperties": false,
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "checkedAt",
                    "status",
                    "state",
                    "switchedOn",
                    "reconciled",
                    "startedInAdsManager",
                    "goal",
                    "currency",
                    "spendCapMinor",
                    "campaigns",
                    "ads",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get live delivery from Meta",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read the experiment’s campaigns and ads from Meta now: whether they are switched on and serving, why an ad is held back, and lifetime spend, reach and results. A paused experiment that Meta shows switched on (started in Ads Manager) is marked active."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/launch": {
      "post": {
        "operationId": "launch-a-prepared-experiment",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Activate confirmed campaign objects after policy and state checks. THIS CAN SPEND THE META AD ACCOUNT’S MONEY; dailyBudgetMinor is per variant. Meta media processing must be ready. This is external advertising spend, separate from Universe credits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "examples": [
                            true
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "examples": [
                            "The localized creative improves qualified purchases."
                          ]
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "examples": [
                            "OUTCOME_SALES"
                          ]
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "examples": [
                            "creative"
                          ]
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "examples": [
                            "example"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "examples": [
                            "771204559813206"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "dailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000,
                          "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                          "examples": [
                            2000
                          ]
                        },
                        "startTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "start Time.",
                          "examples": [
                            "2026-10-12T00:00:00Z"
                          ]
                        },
                        "endTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "end Time.",
                          "examples": [
                            "2026-10-19T00:00:00Z"
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "examples": [
                            "roas"
                          ]
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "assetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "thumbnailAssetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "thumbnail Asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "examples": [
                                  "LEARN_MORE"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "examples": [
                            []
                          ]
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "examples": [
                        {}
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "examples": [
                              "ad:0"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "examples": [
                              "done"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "examples": [
                        []
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "approvedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_projectId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "assignees": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "image": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "image.",
                            "examples": [
                              "example"
                            ]
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "examples": [
                              []
                            ]
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "creatorId",
                    "approvedBy",
                    "name",
                    "plan",
                    "status",
                    "steps",
                    "error",
                    "approvedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Launch a prepared experiment",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:approve` and `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Activate confirmed campaign objects after policy and state checks. THIS CAN SPEND THE META AD ACCOUNT’S MONEY; dailyBudgetMinor is per variant. Meta media processing must be ready. This is external advertising spend, separate from Universe credits."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/media": {
      "get": {
        "operationId": "preview-experiment-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return 15-minute signed previews for the plan’s assets. An unavailable asset has null URL/mimeType.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([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)$",
                        "description": "Universe ID. Meta object IDs are separate strings.",
                        "examples": [
                          "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "name.",
                        "examples": [
                          "Summer creative test"
                        ]
                      },
                      "mimeType": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "mime Type.",
                        "examples": [
                          "example"
                        ]
                      },
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "HTTP(S) resource URL. OAuth authorize returns a consent dialog URL; media returns an expiring signed preview URL.",
                        "examples": [
                          "https://example.com/landing"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "mimeType",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Preview experiment assets",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:read` and `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Return 15-minute signed previews for the plan’s assets. An unavailable asset has null URL/mimeType."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/prepare": {
      "post": {
        "operationId": "prepare-paused-campaign-objects",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Approve and create paused Meta campaigns/adsets/creatives/ads and the native study. This uploads assets and writes to Meta but does not activate delivery. An uncertain provider response must be reconciled before retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "examples": [
                            true
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "examples": [
                            "The localized creative improves qualified purchases."
                          ]
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "examples": [
                            "OUTCOME_SALES"
                          ]
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "examples": [
                            "creative"
                          ]
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "examples": [
                            "example"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "examples": [
                            "771204559813206"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "dailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000,
                          "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                          "examples": [
                            2000
                          ]
                        },
                        "startTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "start Time.",
                          "examples": [
                            "2026-10-12T00:00:00Z"
                          ]
                        },
                        "endTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "end Time.",
                          "examples": [
                            "2026-10-19T00:00:00Z"
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "examples": [
                            "roas"
                          ]
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "assetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "thumbnailAssetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "thumbnail Asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "examples": [
                                  "LEARN_MORE"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "examples": [
                            []
                          ]
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "examples": [
                        {}
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "examples": [
                              "ad:0"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "examples": [
                              "done"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "examples": [
                        []
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "approvedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_projectId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "assignees": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "image": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "image.",
                            "examples": [
                              "example"
                            ]
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "examples": [
                              []
                            ]
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "creatorId",
                    "approvedBy",
                    "name",
                    "plan",
                    "status",
                    "steps",
                    "error",
                    "approvedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Execution is busy, policy/state blocks preparation, or an uncertain object needs recovery.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Prepare paused campaign objects",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:approve` and `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Approve and create paused Meta campaigns/adsets/creatives/ads and the native study. This uploads assets and writes to Meta but does not activate delivery. An uncertain provider response must be reconciled before retry."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/project": {
      "patch": {
        "operationId": "move-an-experiment-to-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "description": "Destination project UUID. Null or omitted clears the project assignment.",
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid",
                    "pattern": "^([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)$",
                    "examples": [
                      "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "File the process in a same-organization project; null clears the project assignment. The project does not widen process access.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        }
                      },
                      "required": [
                        "projectId"
                      ],
                      "additionalProperties": false,
                      "description": "data.",
                      "examples": [
                        {}
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Experiment project migration is not installed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Move an experiment to a project",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "File the process in a same-organization project; null clears the project assignment. The project does not widen process access."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/recover": {
      "post": {
        "operationId": "recover-an-uncertain-creation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "stepKey": {
                    "type": "string",
                    "pattern": "^(campaign|adset|creative|ad|image|video):[0-4]$|^study$",
                    "description": "step Key.",
                    "examples": [
                      "example"
                    ]
                  },
                  "metaId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "meta Id.",
                    "examples": [
                      "example"
                    ]
                  },
                  "retryMedia": {
                    "type": "boolean",
                    "description": "retry Media.",
                    "examples": [
                      false
                    ]
                  }
                },
                "required": [
                  "stepKey"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Reconcile the exact step with a verified Meta object ID, or explicitly retry only an uncertain media upload using retryMedia:true. Do not blindly resubmit object creation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "creatorId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "approvedBy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "examples": [
                            true
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "examples": [
                            "The localized creative improves qualified purchases."
                          ]
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "examples": [
                            "OUTCOME_SALES"
                          ]
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "examples": [
                            "creative"
                          ]
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "examples": [
                            "example"
                          ]
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "examples": [
                            "771204559813206"
                          ]
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "examples": [
                            "https://example.com/landing"
                          ]
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "examples": [
                            [
                              "US"
                            ]
                          ]
                        },
                        "dailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000,
                          "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                          "examples": [
                            2000
                          ]
                        },
                        "startTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "start Time.",
                          "examples": [
                            "2026-10-12T00:00:00Z"
                          ]
                        },
                        "endTime": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "description": "end Time.",
                          "examples": [
                            "2026-10-19T00:00:00Z"
                          ]
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "examples": [
                            1
                          ]
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "examples": [
                            "roas"
                          ]
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "assetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "thumbnailAssetId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "thumbnail Asset Id.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "examples": [
                                  "LEARN_MORE"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "examples": [
                            []
                          ]
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "examples": [
                        {}
                      ]
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "examples": [
                        "draft"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "examples": [
                              "ad:0"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "examples": [
                              "done"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "examples": [
                        []
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Failure explanation, or null.",
                      "examples": [
                        "example"
                      ]
                    },
                    "approvedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "runToken": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_projectId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "assignees": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([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)$",
                            "description": "Universe ID. Meta object IDs are separate strings.",
                            "examples": [
                              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "image": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "image.",
                            "examples": [
                              "example"
                            ]
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "examples": [
                              []
                            ]
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "creatorId",
                    "approvedBy",
                    "name",
                    "plan",
                    "status",
                    "steps",
                    "error",
                    "approvedAt",
                    "runToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Recover an uncertain creation",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:approve`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Reconcile the exact step with a verified Meta object ID, or explicitly retry only an uncertain media upload using retryMedia:true. Do not blindly resubmit object creation."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/results": {
      "get": {
        "operationId": "get-experiment-efficiency-results",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Compare observed variant efficiency within the experiment window plus the seven-day attribution tail. mature and eligible do not mean a statistically significant winner; use native study results for that.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "experiment": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "fk_orgId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T00:00:00Z"
                          ]
                        },
                        "updatedAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "2026-10-11T00:00:00Z"
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "creatorId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "approvedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "name": {
                          "type": "string",
                          "description": "name.",
                          "examples": [
                            "Summer creative test"
                          ]
                        },
                        "plan": {
                          "type": "object",
                          "properties": {
                            "standardCommercial": {
                              "type": "boolean",
                              "enum": [
                                true
                              ],
                              "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                              "examples": [
                                true
                              ]
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "description": "name.",
                              "examples": [
                                "Summer creative test"
                              ]
                            },
                            "hypothesis": {
                              "type": "string",
                              "minLength": 10,
                              "maxLength": 2000,
                              "description": "hypothesis.",
                              "examples": [
                                "The localized creative improves qualified purchases."
                              ]
                            },
                            "objective": {
                              "type": "string",
                              "enum": [
                                "OUTCOME_SALES",
                                "OUTCOME_LEADS",
                                "OUTCOME_TRAFFIC"
                              ],
                              "description": "objective.",
                              "examples": [
                                "OUTCOME_SALES"
                              ]
                            },
                            "testKind": {
                              "type": "string",
                              "enum": [
                                "creative",
                                "campaign"
                              ],
                              "description": "test Kind.",
                              "examples": [
                                "creative"
                              ]
                            },
                            "pageId": {
                              "type": "string",
                              "pattern": "^\\d{1,30}$",
                              "description": "page Id.",
                              "examples": [
                                "example"
                              ]
                            },
                            "pixelId": {
                              "type": "string",
                              "pattern": "^\\d{1,30}$",
                              "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                              "examples": [
                                "771204559813206"
                              ]
                            },
                            "landingPage": {
                              "type": "string",
                              "format": "uri",
                              "description": "landing Page.",
                              "examples": [
                                "https://example.com/landing"
                              ]
                            },
                            "countries": {
                              "minItems": 1,
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "description": "countries.",
                              "examples": [
                                [
                                  "US"
                                ]
                              ]
                            },
                            "dailyBudgetMinor": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1000000000000,
                              "description": "Daily budget for EACH variant in Meta minor currency units. Total daily delivery budget is this value × variant count. Currency offsets depend on the account currency.",
                              "examples": [
                                2000
                              ]
                            },
                            "startTime": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "description": "start Time.",
                              "examples": [
                                "2026-10-12T00:00:00Z"
                              ]
                            },
                            "endTime": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "description": "end Time.",
                              "examples": [
                                "2026-10-19T00:00:00Z"
                              ]
                            },
                            "minConversions": {
                              "type": "integer",
                              "minimum": 10,
                              "maximum": 10000,
                              "description": "min Conversions.",
                              "examples": [
                                1
                              ]
                            },
                            "successMetric": {
                              "type": "string",
                              "enum": [
                                "roas",
                                "cpa"
                              ],
                              "description": "success Metric.",
                              "examples": [
                                "roas"
                              ]
                            },
                            "variants": {
                              "minItems": 2,
                              "maxItems": 5,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "description": "name.",
                                    "examples": [
                                      "Summer creative test"
                                    ]
                                  },
                                  "assetId": {
                                    "type": "string",
                                    "format": "uuid",
                                    "pattern": "^([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)$",
                                    "description": "asset Id.",
                                    "examples": [
                                      "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                    ]
                                  },
                                  "thumbnailAssetId": {
                                    "type": "string",
                                    "format": "uuid",
                                    "pattern": "^([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)$",
                                    "description": "thumbnail Asset Id.",
                                    "examples": [
                                      "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                    ]
                                  },
                                  "headline": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "description": "headline.",
                                    "examples": [
                                      "example"
                                    ]
                                  },
                                  "message": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000,
                                    "description": "message.",
                                    "examples": [
                                      "example"
                                    ]
                                  },
                                  "cta": {
                                    "type": "string",
                                    "enum": [
                                      "LEARN_MORE",
                                      "SHOP_NOW",
                                      "SIGN_UP"
                                    ],
                                    "description": "cta.",
                                    "examples": [
                                      "LEARN_MORE"
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "assetId",
                                  "headline",
                                  "message",
                                  "cta"
                                ],
                                "additionalProperties": false
                              },
                              "description": "variants.",
                              "examples": [
                                []
                              ]
                            }
                          },
                          "required": [
                            "standardCommercial",
                            "name",
                            "hypothesis",
                            "objective",
                            "testKind",
                            "pageId",
                            "landingPage",
                            "countries",
                            "dailyBudgetMinor",
                            "startTime",
                            "endTime",
                            "minConversions",
                            "successMetric",
                            "variants"
                          ],
                          "additionalProperties": false,
                          "description": "plan.",
                          "examples": [
                            {}
                          ]
                        },
                        "status": {
                          "type": "string",
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "examples": [
                            "draft"
                          ]
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "key.",
                                "examples": [
                                  "ad:0"
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "sending",
                                  "done",
                                  "uncertain"
                                ],
                                "description": "state.",
                                "examples": [
                                  "done"
                                ]
                              },
                              "id": {
                                "type": "string",
                                "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "result": {
                                "type": "object",
                                "additionalProperties": {},
                                "description": "Provider or execution-specific properties; preserve unknown fields.",
                                "examples": [
                                  {}
                                ]
                              }
                            },
                            "required": [
                              "key",
                              "state"
                            ],
                            "additionalProperties": false
                          },
                          "description": "steps.",
                          "examples": [
                            []
                          ]
                        },
                        "error": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Failure explanation, or null.",
                          "examples": [
                            "example"
                          ]
                        },
                        "approvedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO 8601 timestamp.",
                          "examples": [
                            "example"
                          ]
                        },
                        "runToken": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "fk_projectId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "pattern": "^([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)$",
                          "description": "Universe ID. Meta object IDs are separate strings.",
                          "examples": [
                            "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          ]
                        },
                        "assignees": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "memberId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([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)$",
                                "description": "Universe ID. Meta object IDs are separate strings.",
                                "examples": [
                                  "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                ]
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "name.",
                                "examples": [
                                  "Summer creative test"
                                ]
                              },
                              "image": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "image.",
                                "examples": [
                                  "example"
                                ]
                              },
                              "languages": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "languages.",
                                "examples": [
                                  []
                                ]
                              }
                            },
                            "required": [
                              "memberId",
                              "name",
                              "image",
                              "languages"
                            ],
                            "additionalProperties": false
                          },
                          "description": "assignees.",
                          "examples": [
                            []
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "fk_orgId",
                        "createdAt",
                        "updatedAt",
                        "accountId",
                        "creatorId",
                        "approvedBy",
                        "name",
                        "plan",
                        "status",
                        "steps",
                        "error",
                        "approvedAt",
                        "runToken"
                      ],
                      "additionalProperties": false,
                      "description": "experiment.",
                      "examples": [
                        {}
                      ]
                    },
                    "ranking": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "examples": [
                                  100
                                ]
                              },
                              "revenue": {
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  300
                                ]
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "examples": [
                                  1
                                ]
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "examples": [
                                  1
                                ]
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "roas": {
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  3
                                ]
                              },
                              "cpa": {
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  10
                                ]
                              },
                              "cac": {
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  20
                                ]
                              },
                              "ctr": {
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpc": {
                                "description": "Spend / all clicks.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpm": {
                                "description": "Spend / impressions × 1000.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cvr": {
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "frequency": {
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "reach": {
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "examples": [
                              {}
                            ]
                          },
                          "eligible": {
                            "type": "boolean",
                            "description": "Whether the row has enough conversions for efficiency ranking; does not establish statistical significance.",
                            "examples": [
                              false
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "metrics",
                          "eligible"
                        ],
                        "additionalProperties": false
                      },
                      "description": "ranking.",
                      "examples": [
                        []
                      ]
                    },
                    "mature": {
                      "type": "boolean",
                      "description": "Whether the retained observation window and conversion delay have both elapsed.",
                      "examples": [
                        false
                      ]
                    },
                    "observationWindow": {
                      "type": "object",
                      "properties": {
                        "since": {
                          "type": "string",
                          "description": "since.",
                          "examples": [
                            "2026-10-04T09:00:00Z"
                          ]
                        },
                        "until": {
                          "type": "string",
                          "description": "until.",
                          "examples": [
                            "2026-10-11T09:00:00Z"
                          ]
                        }
                      },
                      "required": [
                        "since",
                        "until"
                      ],
                      "additionalProperties": false,
                      "description": "observation Window.",
                      "examples": [
                        {}
                      ]
                    },
                    "assessment": {
                      "type": "string",
                      "description": "assessment.",
                      "examples": [
                        "example"
                      ]
                    },
                    "studyId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "study Id.",
                      "examples": [
                        "example"
                      ]
                    }
                  },
                  "required": [
                    "experiment",
                    "ranking",
                    "mature",
                    "observationWindow",
                    "assessment",
                    "studyId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get experiment efficiency results",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Compare observed variant efficiency within the experiment window plus the seven-day attribution tail. mature and eligible do not mean a statistically significant winner; use native study results for that."
      }
    },
    "/v1/galaxy/performance-marketing/experiments/{id}/study-results": {
      "get": {
        "operationId": "get-native-meta-study-results",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read the native study’s available objective outcomes and reported high performers. Unavailable outcomes have available:false, an empty highPerformers array and Meta’s reason in note when it gave one (Meta publishes a creative-test outcome only after the test has run for at least 3 days).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "studyId": {
                      "type": "string",
                      "description": "study Id.",
                      "examples": [
                        "example"
                      ]
                    },
                    "fetchedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "objectives": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "available": {
                            "type": "boolean",
                            "description": "available.",
                            "examples": [
                              false
                            ]
                          },
                          "highPerformers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "adId": {
                                  "type": "string",
                                  "description": "ad Id.",
                                  "examples": [
                                    "example"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "name.",
                                  "examples": [
                                    "Summer creative test"
                                  ]
                                }
                              },
                              "required": [
                                "adId",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "description": "high Performers.",
                            "examples": [
                              []
                            ]
                          },
                          "note": {
                            "description": "Why Meta has no outcome yet, in its words (e.g. the test has not run for 3 days); null otherwise.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "examples": [
                              "example"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "available",
                          "highPerformers",
                          "note"
                        ],
                        "additionalProperties": false
                      },
                      "description": "objectives.",
                      "examples": [
                        []
                      ]
                    }
                  },
                  "required": [
                    "studyId",
                    "fetchedAt",
                    "objectives"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Get native Meta study results",
        "tags": [
          "Experiments"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.campaign:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read the native study’s available objective outcomes and reported high performers. Unavailable outcomes have available:false, an empty highPerformers array and Meta’s reason in note when it gave one (Meta publishes a creative-test outcome only after the test has run for at least 3 days)."
      }
    },
    "/v1/galaxy/performance-marketing/rules/{id}/preview": {
      "post": {
        "operationId": "preview-rule-matches",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Find historical condition matches in the retained snapshot without campaign changes. Historical cooldown/intervention state and deduplicated frequency cannot be reconstructed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "matches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "date.",
                            "examples": [
                              "2026-10-11"
                            ]
                          },
                          "objectId": {
                            "type": "string",
                            "description": "object Id.",
                            "examples": [
                              "123456789"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "examples": [
                              "Summer creative test"
                            ]
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "examples": [
                                  100
                                ]
                              },
                              "revenue": {
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  300
                                ]
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "examples": [
                                  1
                                ]
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "examples": [
                                  1
                                ]
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "examples": [
                                  1
                                ]
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "examples": [
                                  1
                                ]
                              },
                              "roas": {
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  3
                                ]
                              },
                              "cpa": {
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  10
                                ]
                              },
                              "cac": {
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  20
                                ]
                              },
                              "ctr": {
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpc": {
                                "description": "Spend / all clicks.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cpm": {
                                "description": "Spend / impressions × 1000.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "cvr": {
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "frequency": {
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              },
                              "reach": {
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "examples": [
                              {}
                            ]
                          }
                        },
                        "required": [
                          "date",
                          "objectId",
                          "name",
                          "metrics"
                        ],
                        "additionalProperties": false
                      },
                      "description": "matches.",
                      "examples": [
                        []
                      ]
                    },
                    "snapshotId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "note": {
                      "type": "string",
                      "description": "note.",
                      "examples": [
                        "example"
                      ]
                    }
                  },
                  "required": [
                    "matches",
                    "snapshotId",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Preview rule matches",
        "tags": [
          "Automation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.automation:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Find historical condition matches in the retained snapshot without campaign changes. Historical cooldown/intervention state and deduplicated frequency cannot be reconstructed."
      }
    },
    "/v1/galaxy/performance-marketing/rules/{id}/status": {
      "put": {
        "operationId": "set-rule-mode-and-enabled-state",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Universe resource ID in your organization; not a Meta object ID.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "simulation",
                      "recommend",
                      "guarded"
                    ],
                    "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                    "examples": [
                      "recommend"
                    ]
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "enabled.",
                    "examples": [
                      false
                    ]
                  }
                },
                "required": [
                  "mode",
                  "enabled"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "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.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "fk_orgId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "2026-10-11T00:00:00Z"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([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)$",
                      "description": "Universe ID. Meta object IDs are separate strings.",
                      "examples": [
                        "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "examples": [
                        "Summer creative test"
                      ]
                    },
                    "spec": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "minItems": 1,
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "metric": {
                                "type": "string",
                                "enum": [
                                  "spend",
                                  "revenue",
                                  "roas",
                                  "cpa",
                                  "conversions",
                                  "ctr",
                                  "cpc",
                                  "cpm",
                                  "cvr",
                                  "frequency"
                                ],
                                "description": "metric.",
                                "examples": [
                                  "spend"
                                ]
                              },
                              "operator": {
                                "type": "string",
                                "enum": [
                                  "gt",
                                  "lt",
                                  "gte",
                                  "lte"
                                ],
                                "description": "operator.",
                                "examples": [
                                  "gt"
                                ]
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "description": "value.",
                                "examples": [
                                  1
                                ]
                              }
                            },
                            "required": [
                              "metric",
                              "operator",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "conditions.",
                          "examples": [
                            []
                          ]
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "pause",
                            "increase_budget",
                            "decrease_budget",
                            "recommend"
                          ],
                          "description": "action.",
                          "examples": [
                            "pause"
                          ]
                        },
                        "changePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "change Percent.",
                          "examples": [
                            1
                          ]
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "number",
                              "enum": [
                                7
                              ]
                            },
                            {
                              "type": "number",
                              "enum": [
                                30
                              ]
                            }
                          ],
                          "description": "days.",
                          "examples": [
                            7
                          ]
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "simulation",
                            "recommend",
                            "guarded"
                          ],
                          "description": "Operation mode. New rules must start in simulation. Guarded budget writes also require account policy approval.",
                          "examples": [
                            "recommend"
                          ]
                        }
                      },
                      "required": [
                        "conditions",
                        "action",
                        "changePercent",
                        "days",
                        "mode"
                      ],
                      "additionalProperties": false,
                      "description": "spec.",
                      "examples": [
                        {}
                      ]
                    },
                    "enabled": {
                      "type": "boolean",
                      "description": "enabled.",
                      "examples": [
                        false
                      ]
                    },
                    "lastPreviewAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    },
                    "lastEvaluatedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ISO 8601 timestamp.",
                      "examples": [
                        "example"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "fk_orgId",
                    "createdAt",
                    "updatedAt",
                    "accountId",
                    "name",
                    "spec",
                    "enabled",
                    "lastPreviewAt",
                    "lastEvaluatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource is not in this organization, has been removed, or lacks a required completed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Set rule mode and enabled state",
        "tags": [
          "Automation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `performance_marketing.automation:update` and `performance_marketing.action:approve`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "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."
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "InsufficientCreditsErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              402
            ]
          },
          "error": {
            "type": "string",
            "description": "Always `InsufficientCredits`.",
            "examples": [
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "You don't have enough credits to start this. It needs 120; you have 45."
            ]
          },
          "required": {
            "type": "number",
            "description": "Credits this request needs.",
            "examples": [
              120
            ]
          },
          "available": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              45
            ]
          },
          "owed": {
            "type": "number",
            "description": "Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "statusCode",
          "error",
          "message",
          "required",
          "available",
          "owed"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
