{
  "openapi": "3.0.0",
  "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": "https://universe-api.vitra.ai",
      "description": "Production"
    }
  ],
  "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.",
                        "example": "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.",
                        "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "ISO 8601 timestamp.",
                        "example": "2026-10-11T00:00:00Z"
                      },
                      "updatedAt": {
                        "type": "string",
                        "description": "ISO 8601 timestamp.",
                        "example": "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.",
                        "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      },
                      "metaAccountId": {
                        "type": "string",
                        "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                        "example": "act_123456789"
                      },
                      "name": {
                        "type": "string",
                        "description": "name.",
                        "example": "Summer creative test"
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO currency of the Meta account; report money uses its major units.",
                        "example": "USD"
                      },
                      "timezone": {
                        "type": "string",
                        "description": "timezone.",
                        "example": "America/New_York"
                      },
                      "businessId": {
                        "nullable": true,
                        "type": "string",
                        "description": "business Id.",
                        "example": "example"
                      },
                      "context": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "product": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "description": "product.",
                            "example": "example"
                          },
                          "landingPage": {
                            "type": "string",
                            "format": "uri",
                            "description": "landing Page.",
                            "example": "https://example.com/landing"
                          },
                          "countries": {
                            "minItems": 1,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            },
                            "description": "countries.",
                            "example": [
                              "US"
                            ]
                          },
                          "goal": {
                            "type": "string",
                            "enum": [
                              "purchase",
                              "lead",
                              "landing_page_view"
                            ],
                            "description": "goal.",
                            "example": "purchase"
                          },
                          "targetCpa": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0,
                            "exclusiveMinimum": true,
                            "description": "target Cpa.",
                            "example": 1
                          },
                          "targetRoas": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0,
                            "exclusiveMinimum": true,
                            "description": "target Roas.",
                            "example": 1
                          },
                          "grossMargin": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100,
                            "description": "gross Margin.",
                            "example": 1
                          },
                          "averageOrderValue": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0,
                            "exclusiveMinimum": true,
                            "description": "average Order Value.",
                            "example": 1
                          },
                          "lifetimeValue": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0,
                            "exclusiveMinimum": true,
                            "description": "lifetime Value.",
                            "example": 1
                          },
                          "monthlyBudget": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0,
                            "exclusiveMinimum": true,
                            "description": "monthly Budget.",
                            "example": 1
                          }
                        },
                        "required": [
                          "product",
                          "landingPage",
                          "countries",
                          "goal",
                          "targetCpa",
                          "targetRoas",
                          "grossMargin",
                          "averageOrderValue",
                          "lifetimeValue",
                          "monthlyBudget"
                        ],
                        "additionalProperties": false,
                        "description": "context.",
                        "example": {}
                      },
                      "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.",
                            "example": "recommend"
                          },
                          "maxDailyBudgetMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1000000000000,
                            "description": "max Daily Budget Minor.",
                            "example": 1
                          },
                          "maxBudgetChangePercent": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 30,
                            "description": "max Budget Change Percent.",
                            "example": 1
                          },
                          "maxDailyIncreasePercent": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 50,
                            "description": "max Daily Increase Percent.",
                            "example": 1
                          },
                          "minConversions": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 10000,
                            "description": "min Conversions.",
                            "example": 1
                          },
                          "minAgeHours": {
                            "type": "integer",
                            "minimum": 24,
                            "maximum": 720,
                            "description": "min Age Hours.",
                            "example": 1
                          },
                          "cooldownHours": {
                            "type": "integer",
                            "minimum": 24,
                            "maximum": 720,
                            "description": "cooldown Hours.",
                            "example": 1
                          },
                          "conversionDelayDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 7,
                            "description": "conversion Delay Days.",
                            "example": 1
                          },
                          "protectedIds": {
                            "maxItems": 500,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^\\d{1,30}$"
                            },
                            "description": "protected Ids.",
                            "example": []
                          },
                          "autoBudgetChanges": {
                            "type": "boolean",
                            "description": "auto Budget Changes.",
                            "example": false
                          }
                        },
                        "required": [
                          "mode",
                          "maxDailyBudgetMinor",
                          "maxBudgetChangePercent",
                          "maxDailyIncreasePercent",
                          "minConversions",
                          "minAgeHours",
                          "cooldownHours",
                          "conversionDelayDays",
                          "protectedIds",
                          "autoBudgetChanges"
                        ],
                        "additionalProperties": false,
                        "description": "policy.",
                        "example": {}
                      },
                      "meta": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Provider or execution-specific properties; preserve unknown fields.",
                        "example": {}
                      },
                      "snapshotId": {
                        "nullable": true,
                        "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.",
                        "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      },
                      "lastSyncAt": {
                        "nullable": true,
                        "type": "string",
                        "description": "ISO 8601 timestamp.",
                        "example": "example"
                      },
                      "syncLeaseUntil": {
                        "nullable": true,
                        "type": "string",
                        "description": "ISO 8601 timestamp.",
                        "example": "example"
                      },
                      "syncLeaseId": {
                        "nullable": true,
                        "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.",
                        "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      },
                      "syncError": {
                        "nullable": true,
                        "type": "string",
                        "description": "sync Error.",
                        "example": "example"
                      },
                      "writeLock": {
                        "nullable": true,
                        "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.",
                        "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      },
                      "connection": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "expired",
                              "replaced",
                              "disconnected"
                            ],
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "example": "active"
                          },
                          "statusReason": {
                            "nullable": true,
                            "type": "string",
                            "description": "status Reason.",
                            "example": "example"
                          },
                          "expiresAt": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          },
                          "metaUserName": {
                            "nullable": true,
                            "type": "string",
                            "description": "meta User Name.",
                            "example": "example"
                          }
                        },
                        "required": [
                          "status",
                          "statusReason",
                          "expiresAt",
                          "metaUserName"
                        ],
                        "additionalProperties": false,
                        "description": "connection.",
                        "example": {}
                      }
                    },
                    "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_listAccounts_v1"
      },
      "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.",
                    "example": "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.",
                    "example": "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "metaAccountId": {
                      "type": "string",
                      "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                      "example": "act_123456789"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "currency": {
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "example": "USD"
                    },
                    "timezone": {
                      "type": "string",
                      "description": "timezone.",
                      "example": "America/New_York"
                    },
                    "businessId": {
                      "nullable": true,
                      "type": "string",
                      "description": "business Id.",
                      "example": "example"
                    },
                    "context": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "product": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "product.",
                          "example": "example"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "US"
                          ]
                        },
                        "goal": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "lead",
                            "landing_page_view"
                          ],
                          "description": "goal.",
                          "example": "purchase"
                        },
                        "targetCpa": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "target Cpa.",
                          "example": 1
                        },
                        "targetRoas": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "target Roas.",
                          "example": 1
                        },
                        "grossMargin": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "gross Margin.",
                          "example": 1
                        },
                        "averageOrderValue": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "average Order Value.",
                          "example": 1
                        },
                        "lifetimeValue": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "lifetime Value.",
                          "example": 1
                        },
                        "monthlyBudget": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "monthly Budget.",
                          "example": 1
                        }
                      },
                      "required": [
                        "product",
                        "landingPage",
                        "countries",
                        "goal",
                        "targetCpa",
                        "targetRoas",
                        "grossMargin",
                        "averageOrderValue",
                        "lifetimeValue",
                        "monthlyBudget"
                      ],
                      "additionalProperties": false,
                      "description": "context.",
                      "example": {}
                    },
                    "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.",
                          "example": "recommend"
                        },
                        "maxDailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000,
                          "description": "max Daily Budget Minor.",
                          "example": 1
                        },
                        "maxBudgetChangePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "max Budget Change Percent.",
                          "example": 1
                        },
                        "maxDailyIncreasePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 50,
                          "description": "max Daily Increase Percent.",
                          "example": 1
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "minAgeHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "min Age Hours.",
                          "example": 1
                        },
                        "cooldownHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "cooldown Hours.",
                          "example": 1
                        },
                        "conversionDelayDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 7,
                          "description": "conversion Delay Days.",
                          "example": 1
                        },
                        "protectedIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\d{1,30}$"
                          },
                          "description": "protected Ids.",
                          "example": []
                        },
                        "autoBudgetChanges": {
                          "type": "boolean",
                          "description": "auto Budget Changes.",
                          "example": false
                        }
                      },
                      "required": [
                        "mode",
                        "maxDailyBudgetMinor",
                        "maxBudgetChangePercent",
                        "maxDailyIncreasePercent",
                        "minConversions",
                        "minAgeHours",
                        "cooldownHours",
                        "conversionDelayDays",
                        "protectedIds",
                        "autoBudgetChanges"
                      ],
                      "additionalProperties": false,
                      "description": "policy.",
                      "example": {}
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "snapshotId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "lastSyncAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "syncLeaseUntil": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "syncLeaseId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "syncError": {
                      "nullable": true,
                      "type": "string",
                      "description": "sync Error.",
                      "example": "example"
                    },
                    "writeLock": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "connection": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "replaced",
                            "disconnected"
                          ],
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "example": "active"
                        },
                        "statusReason": {
                          "nullable": true,
                          "type": "string",
                          "description": "status Reason.",
                          "example": "example"
                        },
                        "expiresAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "example"
                        },
                        "metaUserName": {
                          "nullable": true,
                          "type": "string",
                          "description": "meta User Name.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "status",
                        "statusReason",
                        "expiresAt",
                        "metaUserName"
                      ],
                      "additionalProperties": false,
                      "description": "connection.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_select_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "metaAccountId": {
                      "type": "string",
                      "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                      "example": "act_123456789"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "currency": {
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "example": "USD"
                    },
                    "timezone": {
                      "type": "string",
                      "description": "timezone.",
                      "example": "America/New_York"
                    },
                    "businessId": {
                      "nullable": true,
                      "type": "string",
                      "description": "business Id.",
                      "example": "example"
                    },
                    "context": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "product": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "product.",
                          "example": "example"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "US"
                          ]
                        },
                        "goal": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "lead",
                            "landing_page_view"
                          ],
                          "description": "goal.",
                          "example": "purchase"
                        },
                        "targetCpa": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "target Cpa.",
                          "example": 1
                        },
                        "targetRoas": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "target Roas.",
                          "example": 1
                        },
                        "grossMargin": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "gross Margin.",
                          "example": 1
                        },
                        "averageOrderValue": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "average Order Value.",
                          "example": 1
                        },
                        "lifetimeValue": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "lifetime Value.",
                          "example": 1
                        },
                        "monthlyBudget": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "monthly Budget.",
                          "example": 1
                        }
                      },
                      "required": [
                        "product",
                        "landingPage",
                        "countries",
                        "goal",
                        "targetCpa",
                        "targetRoas",
                        "grossMargin",
                        "averageOrderValue",
                        "lifetimeValue",
                        "monthlyBudget"
                      ],
                      "additionalProperties": false,
                      "description": "context.",
                      "example": {}
                    },
                    "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.",
                          "example": "recommend"
                        },
                        "maxDailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000,
                          "description": "max Daily Budget Minor.",
                          "example": 1
                        },
                        "maxBudgetChangePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "max Budget Change Percent.",
                          "example": 1
                        },
                        "maxDailyIncreasePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 50,
                          "description": "max Daily Increase Percent.",
                          "example": 1
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "minAgeHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "min Age Hours.",
                          "example": 1
                        },
                        "cooldownHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "cooldown Hours.",
                          "example": 1
                        },
                        "conversionDelayDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 7,
                          "description": "conversion Delay Days.",
                          "example": 1
                        },
                        "protectedIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\d{1,30}$"
                          },
                          "description": "protected Ids.",
                          "example": []
                        },
                        "autoBudgetChanges": {
                          "type": "boolean",
                          "description": "auto Budget Changes.",
                          "example": false
                        }
                      },
                      "required": [
                        "mode",
                        "maxDailyBudgetMinor",
                        "maxBudgetChangePercent",
                        "maxDailyIncreasePercent",
                        "minConversions",
                        "minAgeHours",
                        "cooldownHours",
                        "conversionDelayDays",
                        "protectedIds",
                        "autoBudgetChanges"
                      ],
                      "additionalProperties": false,
                      "description": "policy.",
                      "example": {}
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "snapshotId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "lastSyncAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "syncLeaseUntil": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "syncLeaseId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "syncError": {
                      "nullable": true,
                      "type": "string",
                      "description": "sync Error.",
                      "example": "example"
                    },
                    "writeLock": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "connection": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "replaced",
                            "disconnected"
                          ],
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "example": "active"
                        },
                        "statusReason": {
                          "nullable": true,
                          "type": "string",
                          "description": "status Reason.",
                          "example": "example"
                        },
                        "expiresAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "example"
                        },
                        "metaUserName": {
                          "nullable": true,
                          "type": "string",
                          "description": "meta User Name.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "status",
                        "statusReason",
                        "expiresAt",
                        "metaUserName"
                      ],
                      "additionalProperties": false,
                      "description": "connection.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_account_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          },
          {
            "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.",
                            "example": "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.",
                            "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "2026-10-11T00:00:00Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "objectId": {
                            "type": "string",
                            "description": "object Id.",
                            "example": "123456789"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "status",
                              "budget",
                              "recommendation"
                            ],
                            "description": "kind.",
                            "example": "status"
                          },
                          "source": {
                            "type": "string",
                            "description": "source.",
                            "example": "CRM import"
                          },
                          "ruleId": {
                            "nullable": true,
                            "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "creatorId": {
                            "nullable": true,
                            "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "approvedBy": {
                            "nullable": true,
                            "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "status": {
                            "type": "string",
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "example": "draft"
                          },
                          "before": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          },
                          "after": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                            "example": {}
                          },
                          "reason": {
                            "type": "string",
                            "description": "reason.",
                            "example": "High spend with insufficient conversions"
                          },
                          "evidence": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          },
                          "error": {
                            "nullable": true,
                            "type": "string",
                            "description": "Failure explanation, or null.",
                            "example": "example"
                          },
                          "executedAt": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          },
                          "runToken": {
                            "nullable": true,
                            "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.",
                            "example": "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.",
                      "example": []
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "total.",
                      "example": 1
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "page.",
                      "example": 0
                    },
                    "pageSize": {
                      "type": "number",
                      "enum": [
                        50
                      ],
                      "description": "page Size.",
                      "example": 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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_listActions_v1"
      },
      "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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "objectId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "object Id.",
                    "example": "123456789"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "status",
                      "budget"
                    ],
                    "description": "kind.",
                    "example": "status"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "PAUSED"
                    ],
                    "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                    "example": "ACTIVE"
                  },
                  "budgetMinor": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000,
                    "description": "New daily budget in Meta minor currency units; not a currency float.",
                    "example": 2000
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 1000,
                    "description": "reason.",
                    "example": "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "example": "123456789"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "example": "status"
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "example": "CRM import"
                    },
                    "ruleId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "creatorId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "example": {}
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "example": "High spend with insufficient conversions"
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "executedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_propose_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 3000,
                    "description": "question.",
                    "example": "example"
                  },
                  "days": {
                    "anyOf": [
                      {
                        "type": "number",
                        "enum": [
                          7
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          30
                        ]
                      }
                    ],
                    "description": "days.",
                    "example": 7
                  },
                  "model": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "model.",
                    "example": "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.",
                      "example": "Review the highest-spend campaign before making changes."
                    },
                    "sessionId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "credits": {
                      "nullable": true,
                      "type": "number",
                      "description": "Actual charged analysis credits; null if the completed reply could not be saved. A completed delivered reply is still billed.",
                      "example": 1
                    },
                    "snapshotAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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-flash-preview: 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.",
        "x-orbitdocs-handler": "MarketingController_analyze_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          },
          {
            "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",
              "example": "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.",
                            "example": "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.",
                            "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "2026-10-11T00:00:00Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "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.",
                            "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "approvedBy": {
                            "nullable": true,
                            "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "plan": {
                            "type": "object",
                            "properties": {
                              "standardCommercial": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ],
                                "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                                "example": true
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "example": "Summer creative test"
                              },
                              "hypothesis": {
                                "type": "string",
                                "minLength": 10,
                                "maxLength": 2000,
                                "description": "hypothesis.",
                                "example": "The localized creative improves qualified purchases."
                              },
                              "objective": {
                                "type": "string",
                                "enum": [
                                  "OUTCOME_SALES",
                                  "OUTCOME_LEADS",
                                  "OUTCOME_TRAFFIC"
                                ],
                                "description": "objective.",
                                "example": "OUTCOME_SALES"
                              },
                              "testKind": {
                                "type": "string",
                                "enum": [
                                  "creative",
                                  "campaign"
                                ],
                                "description": "test Kind.",
                                "example": "creative"
                              },
                              "pageId": {
                                "type": "string",
                                "pattern": "^\\d{1,30}$",
                                "description": "page Id.",
                                "example": "example"
                              },
                              "pixelId": {
                                "type": "string",
                                "pattern": "^\\d{1,30}$",
                                "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                                "example": "771204559813206"
                              },
                              "landingPage": {
                                "type": "string",
                                "format": "uri",
                                "description": "landing Page.",
                                "example": "https://example.com/landing"
                              },
                              "countries": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                },
                                "description": "countries.",
                                "example": [
                                  "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.",
                                "example": 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.",
                                "example": "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.",
                                "example": "2026-10-19T00:00:00Z"
                              },
                              "minConversions": {
                                "type": "integer",
                                "minimum": 10,
                                "maximum": 10000,
                                "description": "min Conversions.",
                                "example": 1
                              },
                              "successMetric": {
                                "type": "string",
                                "enum": [
                                  "roas",
                                  "cpa"
                                ],
                                "description": "success Metric.",
                                "example": "roas"
                              },
                              "variants": {
                                "minItems": 2,
                                "maxItems": 5,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "description": "name.",
                                      "example": "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.",
                                      "example": "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.",
                                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                    },
                                    "headline": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "description": "headline.",
                                      "example": "example"
                                    },
                                    "message": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 2000,
                                      "description": "message.",
                                      "example": "example"
                                    },
                                    "cta": {
                                      "type": "string",
                                      "enum": [
                                        "LEARN_MORE",
                                        "SHOP_NOW",
                                        "SIGN_UP"
                                      ],
                                      "description": "cta.",
                                      "example": "LEARN_MORE"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "assetId",
                                    "headline",
                                    "message",
                                    "cta"
                                  ],
                                  "additionalProperties": false
                                },
                                "description": "variants.",
                                "example": []
                              }
                            },
                            "required": [
                              "standardCommercial",
                              "name",
                              "hypothesis",
                              "objective",
                              "testKind",
                              "pageId",
                              "landingPage",
                              "countries",
                              "dailyBudgetMinor",
                              "startTime",
                              "endTime",
                              "minConversions",
                              "successMetric",
                              "variants"
                            ],
                            "additionalProperties": false,
                            "description": "plan.",
                            "example": {}
                          },
                          "status": {
                            "type": "string",
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "example": "draft"
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "description": "key.",
                                  "example": "ad:0"
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "sending",
                                    "done",
                                    "uncertain"
                                  ],
                                  "description": "state.",
                                  "example": "done"
                                },
                                "id": {
                                  "type": "string",
                                  "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                                  "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                },
                                "result": {
                                  "type": "object",
                                  "additionalProperties": {},
                                  "description": "Provider or execution-specific properties; preserve unknown fields.",
                                  "example": {}
                                }
                              },
                              "required": [
                                "key",
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "description": "steps.",
                            "example": []
                          },
                          "error": {
                            "nullable": true,
                            "type": "string",
                            "description": "Failure explanation, or null.",
                            "example": "example"
                          },
                          "approvedAt": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          },
                          "runToken": {
                            "nullable": true,
                            "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "fk_projectId": {
                            "nullable": true,
                            "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.",
                            "example": "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.",
                                  "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                },
                                "name": {
                                  "nullable": true,
                                  "type": "string",
                                  "description": "name.",
                                  "example": "Summer creative test"
                                },
                                "image": {
                                  "nullable": true,
                                  "type": "string",
                                  "description": "image.",
                                  "example": "example"
                                },
                                "languages": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "languages.",
                                  "example": []
                                }
                              },
                              "required": [
                                "memberId",
                                "name",
                                "image",
                                "languages"
                              ],
                              "additionalProperties": false
                            },
                            "description": "assignees.",
                            "example": []
                          }
                        },
                        "required": [
                          "id",
                          "fk_orgId",
                          "createdAt",
                          "updatedAt",
                          "accountId",
                          "creatorId",
                          "approvedBy",
                          "name",
                          "plan",
                          "status",
                          "steps",
                          "error",
                          "approvedAt",
                          "runToken"
                        ],
                        "additionalProperties": false
                      },
                      "description": "items.",
                      "example": []
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "total.",
                      "example": 1
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "page.",
                      "example": 0
                    },
                    "pageSize": {
                      "type": "number",
                      "enum": [
                        50
                      ],
                      "description": "page Size.",
                      "example": 50
                    },
                    "projects": {
                      "type": "boolean",
                      "description": "Whether the experiment project migration is installed on this server.",
                      "example": 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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_listExperiments_v1"
      },
      "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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                    "example": true
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "name.",
                    "example": "Summer creative test"
                  },
                  "hypothesis": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2000,
                    "description": "hypothesis.",
                    "example": "The localized creative improves qualified purchases."
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "OUTCOME_SALES",
                      "OUTCOME_LEADS",
                      "OUTCOME_TRAFFIC"
                    ],
                    "description": "objective.",
                    "example": "OUTCOME_SALES"
                  },
                  "testKind": {
                    "type": "string",
                    "enum": [
                      "creative",
                      "campaign"
                    ],
                    "description": "test Kind.",
                    "example": "creative"
                  },
                  "pageId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "page Id.",
                    "example": "example"
                  },
                  "pixelId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                    "example": "771204559813206"
                  },
                  "landingPage": {
                    "type": "string",
                    "format": "uri",
                    "description": "landing Page.",
                    "example": "https://example.com/landing"
                  },
                  "countries": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    },
                    "description": "countries.",
                    "example": [
                      "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.",
                    "example": 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.",
                    "example": "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.",
                    "example": "2026-10-19T00:00:00Z"
                  },
                  "minConversions": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 10000,
                    "description": "min Conversions.",
                    "example": 1
                  },
                  "successMetric": {
                    "type": "string",
                    "enum": [
                      "roas",
                      "cpa"
                    ],
                    "description": "success Metric.",
                    "example": "roas"
                  },
                  "variants": {
                    "minItems": 2,
                    "maxItems": 5,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "example": "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.",
                          "example": "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "headline": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "headline.",
                          "example": "example"
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "message.",
                          "example": "example"
                        },
                        "cta": {
                          "type": "string",
                          "enum": [
                            "LEARN_MORE",
                            "SHOP_NOW",
                            "SIGN_UP"
                          ],
                          "description": "cta.",
                          "example": "LEARN_MORE"
                        }
                      },
                      "required": [
                        "name",
                        "assetId",
                        "headline",
                        "message",
                        "cta"
                      ],
                      "additionalProperties": false
                    },
                    "description": "variants.",
                    "example": []
                  },
                  "projectId": {
                    "nullable": true,
                    "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": "project Id.",
                    "example": "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "example": true
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "example": "The localized creative improves qualified purchases."
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "example": "OUTCOME_SALES"
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "example": "creative"
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "example": "example"
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "example": "771204559813206"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "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.",
                          "example": 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.",
                          "example": "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.",
                          "example": "2026-10-19T00:00:00Z"
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "example": "roas"
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "example": "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.",
                                "example": "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.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "example": "example"
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "example": "example"
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "example": "LEARN_MORE"
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "example": []
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "example": {}
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "example": "ad:0"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "example": "done"
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "example": []
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "fk_projectId": {
                      "nullable": true,
                      "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.",
                      "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "image": {
                            "nullable": true,
                            "type": "string",
                            "description": "image.",
                            "example": "example"
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "example": []
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_createExperiment_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                    "example": "2026-10-11"
                  },
                  "newCustomers": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000,
                    "description": "First-time customers for this account-local date, not purchases or attributed conversions.",
                    "example": 5
                  },
                  "source": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 200,
                    "description": "source.",
                    "example": "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.",
                      "example": 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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_outcome_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": false
                    },
                    "pixel": {
                      "nullable": true,
                      "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "example": "123456789"
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "example": "Shop website pixel"
                        },
                        "linkedBy": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "health": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "example": "healthy"
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "example": "purchase"
                            },
                            "lastFiredTime": {
                              "nullable": true,
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T08:00:00Z"
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "example": false
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-04T09:00:00Z"
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T09:00:00Z"
                            },
                            "events": {
                              "nullable": true,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "example": "Summer creative test"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "example": 1
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "example": []
                            },
                            "purchases": {
                              "nullable": true,
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "example": 1
                                },
                                "withValue": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "example": 1
                                },
                                "withCurrency": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "example": 1
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "example": {}
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "example": "available"
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "example": "ok"
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "example": "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.",
                              "example": []
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "example": {}
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "2026-10-11T09:00:00Z"
                        },
                        "checkError": {
                          "nullable": true,
                          "type": "string",
                          "description": "check Error.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "pixel.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_pixel_v1"
      },
      "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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                    "example": "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": {
                      "nullable": true,
                      "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "example": "123456789"
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "example": "Shop website pixel"
                        },
                        "linkedBy": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "health": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "example": "healthy"
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "example": "purchase"
                            },
                            "lastFiredTime": {
                              "nullable": true,
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T08:00:00Z"
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "example": false
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-04T09:00:00Z"
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T09:00:00Z"
                            },
                            "events": {
                              "nullable": true,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "example": "Summer creative test"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "example": 1
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "example": []
                            },
                            "purchases": {
                              "nullable": true,
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "example": 1
                                },
                                "withValue": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "example": 1
                                },
                                "withCurrency": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "example": 1
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "example": {}
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "example": "available"
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "example": "ok"
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "example": "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.",
                              "example": []
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "example": {}
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "2026-10-11T09:00:00Z"
                        },
                        "checkError": {
                          "nullable": true,
                          "type": "string",
                          "description": "check Error.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "pixel.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_linkPixel_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "example": "123456789"
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "example": "Shop website pixel"
                        },
                        "linkedBy": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "health": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "example": "healthy"
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "example": "purchase"
                            },
                            "lastFiredTime": {
                              "nullable": true,
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T08:00:00Z"
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "example": false
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-04T09:00:00Z"
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T09:00:00Z"
                            },
                            "events": {
                              "nullable": true,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "example": "Summer creative test"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "example": 1
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "example": []
                            },
                            "purchases": {
                              "nullable": true,
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "example": 1
                                },
                                "withValue": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "example": 1
                                },
                                "withCurrency": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "example": 1
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "example": {}
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "example": "available"
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "example": "ok"
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "example": "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.",
                              "example": []
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "example": {}
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "2026-10-11T09:00:00Z"
                        },
                        "checkError": {
                          "nullable": true,
                          "type": "string",
                          "description": "check Error.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "pixel.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_checkPixel_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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": {
                      "nullable": true,
                      "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "pixelId": {
                          "type": "string",
                          "description": "Meta resource ID, not a Universe UUID.",
                          "example": "123456789"
                        },
                        "pixelName": {
                          "type": "string",
                          "description": "pixel Name.",
                          "example": "Shop website pixel"
                        },
                        "linkedBy": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "health": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "healthy",
                                "warning",
                                "error"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "example": "healthy"
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "example": "purchase"
                            },
                            "lastFiredTime": {
                              "nullable": true,
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T08:00:00Z"
                            },
                            "isUnavailable": {
                              "type": "boolean",
                              "description": "is Unavailable.",
                              "example": false
                            },
                            "since": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-04T09:00:00Z"
                            },
                            "until": {
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "2026-10-11T09:00:00Z"
                            },
                            "events": {
                              "nullable": true,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "name.",
                                    "example": "Summer creative test"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "count.",
                                    "example": 1
                                  }
                                },
                                "required": [
                                  "name",
                                  "count"
                                ],
                                "additionalProperties": false
                              },
                              "description": "events.",
                              "example": []
                            },
                            "purchases": {
                              "nullable": true,
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "count.",
                                  "example": 1
                                },
                                "withValue": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Purchases in the window that carried a value; null when not checked.",
                                  "example": 1
                                },
                                "withCurrency": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "with Currency.",
                                  "example": 1
                                }
                              },
                              "required": [
                                "count",
                                "withValue",
                                "withCurrency"
                              ],
                              "additionalProperties": false,
                              "description": "purchases.",
                              "example": {}
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "activity",
                                      "events",
                                      "conversions",
                                      "purchase_value",
                                      "purchase_currency"
                                    ],
                                    "description": "key.",
                                    "example": "available"
                                  },
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warning",
                                      "error",
                                      "unknown"
                                    ],
                                    "description": "level.",
                                    "example": "ok"
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "message.",
                                    "example": "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.",
                              "example": []
                            }
                          },
                          "required": [
                            "status",
                            "goal",
                            "lastFiredTime",
                            "isUnavailable",
                            "since",
                            "until",
                            "events",
                            "purchases",
                            "checks"
                          ],
                          "additionalProperties": false,
                          "description": "health.",
                          "example": {}
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "2026-10-11T09:00:00Z"
                        },
                        "checkError": {
                          "nullable": true,
                          "type": "string",
                          "description": "check Error.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "accountId",
                        "pixelId",
                        "pixelName",
                        "linkedBy",
                        "health",
                        "checkedAt",
                        "checkError"
                      ],
                      "additionalProperties": false,
                      "description": "linked.",
                      "example": {}
                    },
                    "pixels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "lastFiredTime": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "2026-10-11T08:00:00Z"
                          },
                          "isUnavailable": {
                            "type": "boolean",
                            "description": "is Unavailable.",
                            "example": false
                          },
                          "createdTime": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "lastFiredTime",
                          "isUnavailable",
                          "createdTime"
                        ],
                        "additionalProperties": false
                      },
                      "description": "pixels.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_listPixels_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          },
          {
            "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.",
                          "example": "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.",
                          "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "2026-10-11T00:00:00Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "metaAccountId": {
                          "type": "string",
                          "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                          "example": "act_123456789"
                        },
                        "name": {
                          "type": "string",
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "currency": {
                          "type": "string",
                          "description": "ISO currency of the Meta account; report money uses its major units.",
                          "example": "USD"
                        },
                        "timezone": {
                          "type": "string",
                          "description": "timezone.",
                          "example": "America/New_York"
                        },
                        "businessId": {
                          "nullable": true,
                          "type": "string",
                          "description": "business Id.",
                          "example": "example"
                        },
                        "context": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "product": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "description": "product.",
                              "example": "example"
                            },
                            "landingPage": {
                              "type": "string",
                              "format": "uri",
                              "description": "landing Page.",
                              "example": "https://example.com/landing"
                            },
                            "countries": {
                              "minItems": 1,
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "description": "countries.",
                              "example": [
                                "US"
                              ]
                            },
                            "goal": {
                              "type": "string",
                              "enum": [
                                "purchase",
                                "lead",
                                "landing_page_view"
                              ],
                              "description": "goal.",
                              "example": "purchase"
                            },
                            "targetCpa": {
                              "nullable": true,
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true,
                              "description": "target Cpa.",
                              "example": 1
                            },
                            "targetRoas": {
                              "nullable": true,
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true,
                              "description": "target Roas.",
                              "example": 1
                            },
                            "grossMargin": {
                              "nullable": true,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100,
                              "description": "gross Margin.",
                              "example": 1
                            },
                            "averageOrderValue": {
                              "nullable": true,
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true,
                              "description": "average Order Value.",
                              "example": 1
                            },
                            "lifetimeValue": {
                              "nullable": true,
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true,
                              "description": "lifetime Value.",
                              "example": 1
                            },
                            "monthlyBudget": {
                              "nullable": true,
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true,
                              "description": "monthly Budget.",
                              "example": 1
                            }
                          },
                          "required": [
                            "product",
                            "landingPage",
                            "countries",
                            "goal",
                            "targetCpa",
                            "targetRoas",
                            "grossMargin",
                            "averageOrderValue",
                            "lifetimeValue",
                            "monthlyBudget"
                          ],
                          "additionalProperties": false,
                          "description": "context.",
                          "example": {}
                        },
                        "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.",
                              "example": "recommend"
                            },
                            "maxDailyBudgetMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000000000000,
                              "description": "max Daily Budget Minor.",
                              "example": 1
                            },
                            "maxBudgetChangePercent": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 30,
                              "description": "max Budget Change Percent.",
                              "example": 1
                            },
                            "maxDailyIncreasePercent": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 50,
                              "description": "max Daily Increase Percent.",
                              "example": 1
                            },
                            "minConversions": {
                              "type": "integer",
                              "minimum": 10,
                              "maximum": 10000,
                              "description": "min Conversions.",
                              "example": 1
                            },
                            "minAgeHours": {
                              "type": "integer",
                              "minimum": 24,
                              "maximum": 720,
                              "description": "min Age Hours.",
                              "example": 1
                            },
                            "cooldownHours": {
                              "type": "integer",
                              "minimum": 24,
                              "maximum": 720,
                              "description": "cooldown Hours.",
                              "example": 1
                            },
                            "conversionDelayDays": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 7,
                              "description": "conversion Delay Days.",
                              "example": 1
                            },
                            "protectedIds": {
                              "maxItems": 500,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^\\d{1,30}$"
                              },
                              "description": "protected Ids.",
                              "example": []
                            },
                            "autoBudgetChanges": {
                              "type": "boolean",
                              "description": "auto Budget Changes.",
                              "example": false
                            }
                          },
                          "required": [
                            "mode",
                            "maxDailyBudgetMinor",
                            "maxBudgetChangePercent",
                            "maxDailyIncreasePercent",
                            "minConversions",
                            "minAgeHours",
                            "cooldownHours",
                            "conversionDelayDays",
                            "protectedIds",
                            "autoBudgetChanges"
                          ],
                          "additionalProperties": false,
                          "description": "policy.",
                          "example": {}
                        },
                        "meta": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Provider or execution-specific properties; preserve unknown fields.",
                          "example": {}
                        },
                        "snapshotId": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "lastSyncAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "example"
                        },
                        "syncLeaseUntil": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "example"
                        },
                        "syncLeaseId": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "syncError": {
                          "nullable": true,
                          "type": "string",
                          "description": "sync Error.",
                          "example": "example"
                        },
                        "writeLock": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "connection": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "expired",
                                "replaced",
                                "disconnected"
                              ],
                              "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                              "example": "active"
                            },
                            "statusReason": {
                              "nullable": true,
                              "type": "string",
                              "description": "status Reason.",
                              "example": "example"
                            },
                            "expiresAt": {
                              "nullable": true,
                              "type": "string",
                              "description": "ISO 8601 timestamp.",
                              "example": "example"
                            },
                            "metaUserName": {
                              "nullable": true,
                              "type": "string",
                              "description": "meta User Name.",
                              "example": "example"
                            }
                          },
                          "required": [
                            "status",
                            "statusReason",
                            "expiresAt",
                            "metaUserName"
                          ],
                          "additionalProperties": false,
                          "description": "connection.",
                          "example": {}
                        }
                      },
                      "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.",
                      "example": {}
                    },
                    "snapshotAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "since": {
                      "type": "string",
                      "description": "since.",
                      "example": "2026-10-04T09:00:00Z"
                    },
                    "until": {
                      "type": "string",
                      "description": "until.",
                      "example": "2026-10-11T09:00:00Z"
                    },
                    "current": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "spend": {
                          "type": "number",
                          "description": "Spend in major units of the ad account currency.",
                          "example": 100
                        },
                        "revenue": {
                          "nullable": true,
                          "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                          "type": "number",
                          "example": 300
                        },
                        "conversions": {
                          "type": "number",
                          "description": "Conversions for the configured goal.",
                          "example": 1
                        },
                        "purchases": {
                          "type": "number",
                          "description": "Canonical purchases without double-counting Meta aliases.",
                          "example": 1
                        },
                        "leads": {
                          "type": "number",
                          "description": "Canonical leads without double-counting aliases.",
                          "example": 1
                        },
                        "impressions": {
                          "type": "number",
                          "description": "Ad impressions.",
                          "example": 1
                        },
                        "clicks": {
                          "type": "number",
                          "description": "All clicks.",
                          "example": 1
                        },
                        "linkClicks": {
                          "type": "number",
                          "description": "Link clicks.",
                          "example": 1
                        },
                        "roas": {
                          "nullable": true,
                          "description": "Attributed purchase revenue / spend; null when unavailable.",
                          "type": "number",
                          "example": 3
                        },
                        "cpa": {
                          "nullable": true,
                          "description": "Spend / goal conversions; null without conversions.",
                          "type": "number",
                          "example": 10
                        },
                        "cac": {
                          "nullable": true,
                          "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                          "type": "number",
                          "example": 20
                        },
                        "ctr": {
                          "nullable": true,
                          "description": "All clicks / impressions × 100 (percentage).",
                          "type": "number",
                          "example": 1
                        },
                        "cpc": {
                          "nullable": true,
                          "description": "Spend / all clicks.",
                          "type": "number",
                          "example": 1
                        },
                        "cpm": {
                          "nullable": true,
                          "description": "Spend / impressions × 1000.",
                          "type": "number",
                          "example": 1
                        },
                        "cvr": {
                          "nullable": true,
                          "description": "Goal conversions / link clicks × 100 (percentage).",
                          "type": "number",
                          "example": 1
                        },
                        "frequency": {
                          "nullable": true,
                          "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                          "type": "number",
                          "example": 1
                        },
                        "reach": {
                          "nullable": true,
                          "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                          "type": "number",
                          "example": 1
                        }
                      },
                      "required": [
                        "spend",
                        "revenue",
                        "conversions",
                        "purchases",
                        "leads",
                        "impressions",
                        "clicks",
                        "linkClicks",
                        "roas",
                        "cpa",
                        "cac",
                        "ctr",
                        "cpc",
                        "cpm",
                        "cvr",
                        "frequency",
                        "reach"
                      ],
                      "additionalProperties": false,
                      "description": "current.",
                      "example": {}
                    },
                    "previous": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "spend": {
                          "type": "number",
                          "description": "Spend in major units of the ad account currency.",
                          "example": 100
                        },
                        "revenue": {
                          "nullable": true,
                          "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                          "type": "number",
                          "example": 300
                        },
                        "conversions": {
                          "type": "number",
                          "description": "Conversions for the configured goal.",
                          "example": 1
                        },
                        "purchases": {
                          "type": "number",
                          "description": "Canonical purchases without double-counting Meta aliases.",
                          "example": 1
                        },
                        "leads": {
                          "type": "number",
                          "description": "Canonical leads without double-counting aliases.",
                          "example": 1
                        },
                        "impressions": {
                          "type": "number",
                          "description": "Ad impressions.",
                          "example": 1
                        },
                        "clicks": {
                          "type": "number",
                          "description": "All clicks.",
                          "example": 1
                        },
                        "linkClicks": {
                          "type": "number",
                          "description": "Link clicks.",
                          "example": 1
                        },
                        "roas": {
                          "nullable": true,
                          "description": "Attributed purchase revenue / spend; null when unavailable.",
                          "type": "number",
                          "example": 3
                        },
                        "cpa": {
                          "nullable": true,
                          "description": "Spend / goal conversions; null without conversions.",
                          "type": "number",
                          "example": 10
                        },
                        "cac": {
                          "nullable": true,
                          "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                          "type": "number",
                          "example": 20
                        },
                        "ctr": {
                          "nullable": true,
                          "description": "All clicks / impressions × 100 (percentage).",
                          "type": "number",
                          "example": 1
                        },
                        "cpc": {
                          "nullable": true,
                          "description": "Spend / all clicks.",
                          "type": "number",
                          "example": 1
                        },
                        "cpm": {
                          "nullable": true,
                          "description": "Spend / impressions × 1000.",
                          "type": "number",
                          "example": 1
                        },
                        "cvr": {
                          "nullable": true,
                          "description": "Goal conversions / link clicks × 100 (percentage).",
                          "type": "number",
                          "example": 1
                        },
                        "frequency": {
                          "nullable": true,
                          "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                          "type": "number",
                          "example": 1
                        },
                        "reach": {
                          "nullable": true,
                          "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                          "type": "number",
                          "example": 1
                        }
                      },
                      "required": [
                        "spend",
                        "revenue",
                        "conversions",
                        "purchases",
                        "leads",
                        "impressions",
                        "clicks",
                        "linkClicks",
                        "roas",
                        "cpa",
                        "cac",
                        "ctr",
                        "cpc",
                        "cpm",
                        "cvr",
                        "frequency",
                        "reach"
                      ],
                      "additionalProperties": false,
                      "description": "previous.",
                      "example": {}
                    },
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "example": 100
                              },
                              "revenue": {
                                "nullable": true,
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": "number",
                                "example": 300
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "example": 1
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "example": 1
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "example": 1
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "example": 1
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "example": 1
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "example": 1
                              },
                              "roas": {
                                "nullable": true,
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": "number",
                                "example": 3
                              },
                              "cpa": {
                                "nullable": true,
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": "number",
                                "example": 10
                              },
                              "cac": {
                                "nullable": true,
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": "number",
                                "example": 20
                              },
                              "ctr": {
                                "nullable": true,
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "cpc": {
                                "nullable": true,
                                "description": "Spend / all clicks.",
                                "type": "number",
                                "example": 1
                              },
                              "cpm": {
                                "nullable": true,
                                "description": "Spend / impressions × 1000.",
                                "type": "number",
                                "example": 1
                              },
                              "cvr": {
                                "nullable": true,
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "frequency": {
                                "nullable": true,
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": "number",
                                "example": 1
                              },
                              "reach": {
                                "nullable": true,
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": "number",
                                "example": 1
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "example": {}
                          },
                          "eligible": {
                            "type": "boolean",
                            "description": "Whether the row has enough conversions for efficiency ranking; does not establish statistical significance.",
                            "example": false
                          },
                          "object": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          },
                          "budgetOwner": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "metrics",
                          "eligible",
                          "object",
                          "budgetOwner"
                        ],
                        "additionalProperties": false
                      },
                      "description": "campaigns.",
                      "example": []
                    },
                    "ads": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "example": 100
                              },
                              "revenue": {
                                "nullable": true,
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": "number",
                                "example": 300
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "example": 1
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "example": 1
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "example": 1
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "example": 1
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "example": 1
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "example": 1
                              },
                              "roas": {
                                "nullable": true,
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": "number",
                                "example": 3
                              },
                              "cpa": {
                                "nullable": true,
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": "number",
                                "example": 10
                              },
                              "cac": {
                                "nullable": true,
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": "number",
                                "example": 20
                              },
                              "ctr": {
                                "nullable": true,
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "cpc": {
                                "nullable": true,
                                "description": "Spend / all clicks.",
                                "type": "number",
                                "example": 1
                              },
                              "cpm": {
                                "nullable": true,
                                "description": "Spend / impressions × 1000.",
                                "type": "number",
                                "example": 1
                              },
                              "cvr": {
                                "nullable": true,
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "frequency": {
                                "nullable": true,
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": "number",
                                "example": 1
                              },
                              "reach": {
                                "nullable": true,
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": "number",
                                "example": 1
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "example": {}
                          },
                          "campaignId": {
                            "type": "string",
                            "description": "campaign Id.",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "metrics"
                        ],
                        "additionalProperties": false
                      },
                      "description": "ads.",
                      "example": []
                    },
                    "daily": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "date.",
                            "example": "2026-10-11"
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "example": 100
                              },
                              "revenue": {
                                "nullable": true,
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": "number",
                                "example": 300
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "example": 1
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "example": 1
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "example": 1
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "example": 1
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "example": 1
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "example": 1
                              },
                              "roas": {
                                "nullable": true,
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": "number",
                                "example": 3
                              },
                              "cpa": {
                                "nullable": true,
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": "number",
                                "example": 10
                              },
                              "cac": {
                                "nullable": true,
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": "number",
                                "example": 20
                              },
                              "ctr": {
                                "nullable": true,
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "cpc": {
                                "nullable": true,
                                "description": "Spend / all clicks.",
                                "type": "number",
                                "example": 1
                              },
                              "cpm": {
                                "nullable": true,
                                "description": "Spend / impressions × 1000.",
                                "type": "number",
                                "example": 1
                              },
                              "cvr": {
                                "nullable": true,
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "frequency": {
                                "nullable": true,
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": "number",
                                "example": 1
                              },
                              "reach": {
                                "nullable": true,
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": "number",
                                "example": 1
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "example": {}
                          }
                        },
                        "required": [
                          "date",
                          "metrics"
                        ],
                        "additionalProperties": false
                      },
                      "description": "daily.",
                      "example": []
                    },
                    "recommendations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Provider or execution-specific properties; preserve unknown fields."
                      },
                      "description": "recommendations.",
                      "example": []
                    },
                    "recommendationsError": {
                      "nullable": true,
                      "type": "string",
                      "description": "recommendations Error.",
                      "example": "example"
                    },
                    "attribution": {
                      "type": "string",
                      "description": "attribution.",
                      "example": "7-day click / 1-day view; conversion date"
                    },
                    "cacCoverage": {
                      "type": "object",
                      "properties": {
                        "providedDays": {
                          "type": "number",
                          "description": "provided Days.",
                          "example": 1
                        },
                        "requiredDays": {
                          "type": "number",
                          "description": "required Days.",
                          "example": 1
                        }
                      },
                      "required": [
                        "providedDays",
                        "requiredDays"
                      ],
                      "additionalProperties": false,
                      "description": "cac Coverage.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_report_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "description": "pages.",
                      "example": []
                    },
                    "pixels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "lastFiredTime": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "2026-10-11T08:00:00Z"
                          },
                          "isUnavailable": {
                            "type": "boolean",
                            "description": "is Unavailable.",
                            "example": false
                          },
                          "createdTime": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "lastFiredTime",
                          "isUnavailable",
                          "createdTime"
                        ],
                        "additionalProperties": false
                      },
                      "description": "pixels.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_resources_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          },
          {
            "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.",
                            "example": "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.",
                            "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "2026-10-11T00:00:00Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "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.",
                                      "example": "spend"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "gt",
                                        "lt",
                                        "gte",
                                        "lte"
                                      ],
                                      "description": "operator.",
                                      "example": "gt"
                                    },
                                    "value": {
                                      "type": "number",
                                      "minimum": 0,
                                      "description": "value.",
                                      "example": 1
                                    }
                                  },
                                  "required": [
                                    "metric",
                                    "operator",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                },
                                "description": "conditions.",
                                "example": []
                              },
                              "action": {
                                "type": "string",
                                "enum": [
                                  "pause",
                                  "increase_budget",
                                  "decrease_budget",
                                  "recommend"
                                ],
                                "description": "action.",
                                "example": "pause"
                              },
                              "changePercent": {
                                "type": "number",
                                "minimum": 1,
                                "maximum": 30,
                                "description": "change Percent.",
                                "example": 1
                              },
                              "days": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "enum": [
                                      7
                                    ]
                                  },
                                  {
                                    "type": "number",
                                    "enum": [
                                      30
                                    ]
                                  }
                                ],
                                "description": "days.",
                                "example": 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.",
                                "example": "recommend"
                              }
                            },
                            "required": [
                              "conditions",
                              "action",
                              "changePercent",
                              "days",
                              "mode"
                            ],
                            "additionalProperties": false,
                            "description": "spec.",
                            "example": {}
                          },
                          "enabled": {
                            "type": "boolean",
                            "description": "enabled.",
                            "example": false
                          },
                          "lastPreviewAt": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          },
                          "lastEvaluatedAt": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "fk_orgId",
                          "createdAt",
                          "updatedAt",
                          "accountId",
                          "name",
                          "spec",
                          "enabled",
                          "lastPreviewAt",
                          "lastEvaluatedAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "items.",
                      "example": []
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "total.",
                      "example": 1
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "page.",
                      "example": 0
                    },
                    "pageSize": {
                      "type": "number",
                      "enum": [
                        50
                      ],
                      "description": "page Size.",
                      "example": 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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_listRules_v1"
      },
      "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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "name.",
                    "example": "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.",
                              "example": "spend"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "gt",
                                "lt",
                                "gte",
                                "lte"
                              ],
                              "description": "operator.",
                              "example": "gt"
                            },
                            "value": {
                              "type": "number",
                              "minimum": 0,
                              "description": "value.",
                              "example": 1
                            }
                          },
                          "required": [
                            "metric",
                            "operator",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "description": "conditions.",
                        "example": []
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "pause",
                          "increase_budget",
                          "decrease_budget",
                          "recommend"
                        ],
                        "description": "action.",
                        "example": "pause"
                      },
                      "changePercent": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 30,
                        "description": "change Percent.",
                        "example": 1
                      },
                      "days": {
                        "anyOf": [
                          {
                            "type": "number",
                            "enum": [
                              7
                            ]
                          },
                          {
                            "type": "number",
                            "enum": [
                              30
                            ]
                          }
                        ],
                        "description": "days.",
                        "example": 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.",
                        "example": "recommend"
                      }
                    },
                    "required": [
                      "conditions",
                      "action",
                      "changePercent",
                      "days",
                      "mode"
                    ],
                    "additionalProperties": false,
                    "description": "spec.",
                    "example": {}
                  }
                },
                "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "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.",
                                "example": "spend"
                              },
                              "operator": {
                                "type": "string",
                                "enum": [
                                  "gt",
                                  "lt",
                                  "gte",
                                  "lte"
                                ],
                                "description": "operator.",
                                "example": "gt"
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "description": "value.",
                                "example": 1
                              }
                            },
                            "required": [
                              "metric",
                              "operator",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "conditions.",
                          "example": []
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "pause",
                            "increase_budget",
                            "decrease_budget",
                            "recommend"
                          ],
                          "description": "action.",
                          "example": "pause"
                        },
                        "changePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "change Percent.",
                          "example": 1
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "number",
                              "enum": [
                                7
                              ]
                            },
                            {
                              "type": "number",
                              "enum": [
                                30
                              ]
                            }
                          ],
                          "description": "days.",
                          "example": 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.",
                          "example": "recommend"
                        }
                      },
                      "required": [
                        "conditions",
                        "action",
                        "changePercent",
                        "days",
                        "mode"
                      ],
                      "additionalProperties": false,
                      "description": "spec.",
                      "example": {}
                    },
                    "enabled": {
                      "type": "boolean",
                      "description": "enabled.",
                      "example": false
                    },
                    "lastPreviewAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "lastEvaluatedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_createRule_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "context": {
                    "type": "object",
                    "properties": {
                      "product": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000,
                        "description": "product.",
                        "example": "example"
                      },
                      "landingPage": {
                        "type": "string",
                        "format": "uri",
                        "description": "landing Page.",
                        "example": "https://example.com/landing"
                      },
                      "countries": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        },
                        "description": "countries.",
                        "example": [
                          "US"
                        ]
                      },
                      "goal": {
                        "type": "string",
                        "enum": [
                          "purchase",
                          "lead",
                          "landing_page_view"
                        ],
                        "description": "goal.",
                        "example": "purchase"
                      },
                      "targetCpa": {
                        "nullable": true,
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "description": "target Cpa.",
                        "example": 1
                      },
                      "targetRoas": {
                        "nullable": true,
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "description": "target Roas.",
                        "example": 1
                      },
                      "grossMargin": {
                        "nullable": true,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100,
                        "description": "gross Margin.",
                        "example": 1
                      },
                      "averageOrderValue": {
                        "nullable": true,
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "description": "average Order Value.",
                        "example": 1
                      },
                      "lifetimeValue": {
                        "nullable": true,
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "description": "lifetime Value.",
                        "example": 1
                      },
                      "monthlyBudget": {
                        "nullable": true,
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "description": "monthly Budget.",
                        "example": 1
                      }
                    },
                    "required": [
                      "product",
                      "landingPage",
                      "countries",
                      "goal",
                      "targetCpa",
                      "targetRoas",
                      "grossMargin",
                      "averageOrderValue",
                      "lifetimeValue",
                      "monthlyBudget"
                    ],
                    "additionalProperties": false,
                    "description": "context.",
                    "example": {}
                  },
                  "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.",
                        "example": "recommend"
                      },
                      "maxDailyBudgetMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000000,
                        "description": "max Daily Budget Minor.",
                        "example": 1
                      },
                      "maxBudgetChangePercent": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 30,
                        "description": "max Budget Change Percent.",
                        "example": 1
                      },
                      "maxDailyIncreasePercent": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50,
                        "description": "max Daily Increase Percent.",
                        "example": 1
                      },
                      "minConversions": {
                        "type": "integer",
                        "minimum": 10,
                        "maximum": 10000,
                        "description": "min Conversions.",
                        "example": 1
                      },
                      "minAgeHours": {
                        "type": "integer",
                        "minimum": 24,
                        "maximum": 720,
                        "description": "min Age Hours.",
                        "example": 1
                      },
                      "cooldownHours": {
                        "type": "integer",
                        "minimum": 24,
                        "maximum": 720,
                        "description": "cooldown Hours.",
                        "example": 1
                      },
                      "conversionDelayDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 7,
                        "description": "conversion Delay Days.",
                        "example": 1
                      },
                      "protectedIds": {
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$"
                        },
                        "description": "protected Ids.",
                        "example": []
                      },
                      "autoBudgetChanges": {
                        "type": "boolean",
                        "description": "auto Budget Changes.",
                        "example": false
                      }
                    },
                    "required": [
                      "mode",
                      "maxDailyBudgetMinor",
                      "maxBudgetChangePercent",
                      "maxDailyIncreasePercent",
                      "minConversions",
                      "minAgeHours",
                      "cooldownHours",
                      "conversionDelayDays",
                      "protectedIds",
                      "autoBudgetChanges"
                    ],
                    "additionalProperties": false,
                    "description": "policy.",
                    "example": {}
                  }
                },
                "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "metaAccountId": {
                      "type": "string",
                      "description": "Meta ad account ID with act_ prefix; use Universe account id in route paths.",
                      "example": "act_123456789"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "currency": {
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "example": "USD"
                    },
                    "timezone": {
                      "type": "string",
                      "description": "timezone.",
                      "example": "America/New_York"
                    },
                    "businessId": {
                      "nullable": true,
                      "type": "string",
                      "description": "business Id.",
                      "example": "example"
                    },
                    "context": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "product": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "description": "product.",
                          "example": "example"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "US"
                          ]
                        },
                        "goal": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "lead",
                            "landing_page_view"
                          ],
                          "description": "goal.",
                          "example": "purchase"
                        },
                        "targetCpa": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "target Cpa.",
                          "example": 1
                        },
                        "targetRoas": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "target Roas.",
                          "example": 1
                        },
                        "grossMargin": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "gross Margin.",
                          "example": 1
                        },
                        "averageOrderValue": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "average Order Value.",
                          "example": 1
                        },
                        "lifetimeValue": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "lifetime Value.",
                          "example": 1
                        },
                        "monthlyBudget": {
                          "nullable": true,
                          "type": "number",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "description": "monthly Budget.",
                          "example": 1
                        }
                      },
                      "required": [
                        "product",
                        "landingPage",
                        "countries",
                        "goal",
                        "targetCpa",
                        "targetRoas",
                        "grossMargin",
                        "averageOrderValue",
                        "lifetimeValue",
                        "monthlyBudget"
                      ],
                      "additionalProperties": false,
                      "description": "context.",
                      "example": {}
                    },
                    "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.",
                          "example": "recommend"
                        },
                        "maxDailyBudgetMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000,
                          "description": "max Daily Budget Minor.",
                          "example": 1
                        },
                        "maxBudgetChangePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "max Budget Change Percent.",
                          "example": 1
                        },
                        "maxDailyIncreasePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 50,
                          "description": "max Daily Increase Percent.",
                          "example": 1
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "minAgeHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "min Age Hours.",
                          "example": 1
                        },
                        "cooldownHours": {
                          "type": "integer",
                          "minimum": 24,
                          "maximum": 720,
                          "description": "cooldown Hours.",
                          "example": 1
                        },
                        "conversionDelayDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 7,
                          "description": "conversion Delay Days.",
                          "example": 1
                        },
                        "protectedIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\d{1,30}$"
                          },
                          "description": "protected Ids.",
                          "example": []
                        },
                        "autoBudgetChanges": {
                          "type": "boolean",
                          "description": "auto Budget Changes.",
                          "example": false
                        }
                      },
                      "required": [
                        "mode",
                        "maxDailyBudgetMinor",
                        "maxBudgetChangePercent",
                        "maxDailyIncreasePercent",
                        "minConversions",
                        "minAgeHours",
                        "cooldownHours",
                        "conversionDelayDays",
                        "protectedIds",
                        "autoBudgetChanges"
                      ],
                      "additionalProperties": false,
                      "description": "policy.",
                      "example": {}
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "snapshotId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "lastSyncAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "syncLeaseUntil": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "syncLeaseId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "syncError": {
                      "nullable": true,
                      "type": "string",
                      "description": "sync Error.",
                      "example": "example"
                    },
                    "writeLock": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "connection": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "replaced",
                            "disconnected"
                          ],
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "example": "active"
                        },
                        "statusReason": {
                          "nullable": true,
                          "type": "string",
                          "description": "status Reason.",
                          "example": "example"
                        },
                        "expiresAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "example"
                        },
                        "metaUserName": {
                          "nullable": true,
                          "type": "string",
                          "description": "meta User Name.",
                          "example": "example"
                        }
                      },
                      "required": [
                        "status",
                        "statusReason",
                        "expiresAt",
                        "metaUserName"
                      ],
                      "additionalProperties": false,
                      "description": "connection.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_settings_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": 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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_syncAccount_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "example": "123456789"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "example": "status"
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "example": "CRM import"
                    },
                    "ruleId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "creatorId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "example": {}
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "example": "High spend with insufficient conversions"
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "executedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_approve_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "example": "123456789"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "example": "status"
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "example": "CRM import"
                    },
                    "ruleId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "creatorId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "example": {}
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "example": "High spend with insufficient conversions"
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "executedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_reconcile_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "example": "123456789"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "example": "status"
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "example": "CRM import"
                    },
                    "ruleId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "creatorId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "example": {}
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "example": "High spend with insufficient conversions"
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "executedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_reject_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "objectId": {
                      "type": "string",
                      "description": "object Id.",
                      "example": "123456789"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "status",
                        "budget",
                        "recommendation"
                      ],
                      "description": "kind.",
                      "example": "status"
                    },
                    "source": {
                      "type": "string",
                      "description": "source.",
                      "example": "CRM import"
                    },
                    "ruleId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "creatorId": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "before": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "after": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Exact proposed Meta field values; budget values are strings in minor units.",
                      "example": {}
                    },
                    "reason": {
                      "type": "string",
                      "description": "reason.",
                      "example": "High spend with insufficient conversions"
                    },
                    "evidence": {
                      "type": "object",
                      "additionalProperties": {},
                      "description": "Provider or execution-specific properties; preserve unknown fields.",
                      "example": {}
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "executedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_rollback_v1"
      }
    },
    "/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.",
                      "example": 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.",
                            "example": "active"
                          },
                          "statusReason": {
                            "nullable": true,
                            "type": "string",
                            "description": "status Reason.",
                            "example": "example"
                          },
                          "expiresAt": {
                            "nullable": true,
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "example"
                          },
                          "metaUserName": {
                            "nullable": true,
                            "type": "string",
                            "description": "meta User Name.",
                            "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "scopes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "scopes.",
                            "example": []
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "ISO 8601 timestamp.",
                            "example": "2026-10-11T00:00:00Z"
                          }
                        },
                        "required": [
                          "status",
                          "statusReason",
                          "expiresAt",
                          "metaUserName",
                          "id",
                          "name",
                          "scopes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "connections.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_listConnections_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                        "example": "act_123456789"
                      },
                      "name": {
                        "type": "string",
                        "description": "name.",
                        "example": "Summer creative test"
                      },
                      "account_status": {
                        "type": "number",
                        "description": "account status.",
                        "example": 1
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO currency of the Meta account; report money uses its major units.",
                        "example": "USD"
                      },
                      "timezone_name": {
                        "type": "string",
                        "description": "timezone name.",
                        "example": "example"
                      },
                      "business": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Provider or execution-specific properties; preserve unknown fields.",
                        "example": {}
                      }
                    },
                    "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_discover_v1"
      }
    },
    "/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",
              "example": "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.",
                      "example": "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.",
                      "example": "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.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "statusCode": 500,
                  "message": "Internal server error"
                }
              }
            }
          },
          "503": {
            "description": "Meta integration is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_authorize_v1"
      }
    },
    "/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.",
                    "example": "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.",
                    "example": "one-use-browser-verifier-kept-private-1234567890"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "code.",
                    "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "movedAccounts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "moved Accounts.",
                      "example": 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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_complete_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "example": true
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "example": "The localized creative improves qualified purchases."
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "example": "OUTCOME_SALES"
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "example": "creative"
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "example": "example"
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "example": "771204559813206"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "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.",
                          "example": 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.",
                          "example": "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.",
                          "example": "2026-10-19T00:00:00Z"
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "example": "roas"
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "example": "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.",
                                "example": "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.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "example": "example"
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "example": "example"
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "example": "LEARN_MORE"
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "example": []
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "example": {}
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "example": "ad:0"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "example": "done"
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "example": []
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "fk_projectId": {
                      "nullable": true,
                      "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.",
                      "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "image": {
                            "nullable": true,
                            "type": "string",
                            "description": "image.",
                            "example": "example"
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "example": []
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_getExperiment_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "draft"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "not_created",
                        "scheduled",
                        "delivering",
                        "in_review",
                        "issues",
                        "ended",
                        "paused",
                        "removed"
                      ],
                      "description": "Where the experiment stands in Meta right now.",
                      "example": "not_created"
                    },
                    "switchedOn": {
                      "type": "boolean",
                      "description": "switched On.",
                      "example": false
                    },
                    "reconciled": {
                      "type": "boolean",
                      "description": "True when this check found the test switched on in Ads Manager and marked it active.",
                      "example": false
                    },
                    "startedInAdsManager": {
                      "type": "boolean",
                      "description": "True when the test was switched on in Ads Manager, so Vitra’s launch checks did not run.",
                      "example": false
                    },
                    "goal": {
                      "type": "string",
                      "enum": [
                        "purchase",
                        "lead",
                        "landing_page_view"
                      ],
                      "description": "goal.",
                      "example": "purchase"
                    },
                    "currency": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO currency of the Meta account; report money uses its major units.",
                      "example": "USD"
                    },
                    "spendCapMinor": {
                      "type": "number",
                      "description": "The planned budget for the whole test, in minor units.",
                      "example": 1
                    },
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "status": {
                            "nullable": true,
                            "type": "string",
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "example": "draft"
                          },
                          "effectiveStatus": {
                            "nullable": true,
                            "type": "string",
                            "description": "effective Status.",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "effectiveStatus"
                        ],
                        "additionalProperties": false
                      },
                      "description": "campaigns.",
                      "example": []
                    },
                    "ads": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "variant": {
                            "nullable": true,
                            "type": "string",
                            "description": "variant.",
                            "example": "example"
                          },
                          "status": {
                            "nullable": true,
                            "type": "string",
                            "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                            "example": "draft"
                          },
                          "effectiveStatus": {
                            "nullable": true,
                            "type": "string",
                            "description": "effective Status.",
                            "example": "example"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "delivering",
                              "in_review",
                              "issues",
                              "paused",
                              "removed"
                            ],
                            "description": "state.",
                            "example": "delivering"
                          },
                          "problem": {
                            "nullable": true,
                            "description": "Why Meta holds the ad back, in Meta’s words.",
                            "type": "string",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "variant",
                          "status",
                          "effectiveStatus",
                          "state",
                          "problem"
                        ],
                        "additionalProperties": false
                      },
                      "description": "ads.",
                      "example": []
                    },
                    "totals": {
                      "nullable": true,
                      "description": "Lifetime totals from Meta, in the account currency, with the ad sets’ own attribution setting (as Ads Manager shows them).",
                      "type": "object",
                      "properties": {
                        "spend": {
                          "type": "number",
                          "description": "spend.",
                          "example": 100
                        },
                        "impressions": {
                          "type": "number",
                          "description": "impressions.",
                          "example": 1
                        },
                        "reach": {
                          "type": "number",
                          "description": "reach.",
                          "example": 1
                        },
                        "clicks": {
                          "type": "number",
                          "description": "clicks.",
                          "example": 1
                        },
                        "linkClicks": {
                          "type": "number",
                          "description": "link Clicks.",
                          "example": 1
                        },
                        "results": {
                          "type": "number",
                          "description": "results.",
                          "example": 1
                        },
                        "costPerResult": {
                          "nullable": true,
                          "type": "number",
                          "description": "cost Per Result.",
                          "example": 1
                        },
                        "ctr": {
                          "nullable": true,
                          "type": "number",
                          "description": "ctr.",
                          "example": 1
                        },
                        "cpm": {
                          "nullable": true,
                          "type": "number",
                          "description": "cpm.",
                          "example": 1
                        }
                      },
                      "required": [
                        "spend",
                        "impressions",
                        "reach",
                        "clicks",
                        "linkClicks",
                        "results",
                        "costPerResult",
                        "ctr",
                        "cpm"
                      ],
                      "additionalProperties": false,
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_delivery_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "example": true
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "example": "The localized creative improves qualified purchases."
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "example": "OUTCOME_SALES"
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "example": "creative"
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "example": "example"
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "example": "771204559813206"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "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.",
                          "example": 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.",
                          "example": "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.",
                          "example": "2026-10-19T00:00:00Z"
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "example": "roas"
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "example": "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.",
                                "example": "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.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "example": "example"
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "example": "example"
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "example": "LEARN_MORE"
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "example": []
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "example": {}
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "example": "ad:0"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "example": "done"
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "example": []
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "fk_projectId": {
                      "nullable": true,
                      "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.",
                      "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "image": {
                            "nullable": true,
                            "type": "string",
                            "description": "image.",
                            "example": "example"
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "example": []
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_launch_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                        "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                      },
                      "name": {
                        "type": "string",
                        "description": "name.",
                        "example": "Summer creative test"
                      },
                      "mimeType": {
                        "nullable": true,
                        "type": "string",
                        "description": "mime Type.",
                        "example": "example"
                      },
                      "url": {
                        "nullable": true,
                        "type": "string",
                        "description": "HTTP(S) resource URL. OAuth authorize returns a consent dialog URL; media returns an expiring signed preview URL.",
                        "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_media_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "example": true
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "example": "The localized creative improves qualified purchases."
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "example": "OUTCOME_SALES"
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "example": "creative"
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "example": "example"
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "example": "771204559813206"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "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.",
                          "example": 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.",
                          "example": "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.",
                          "example": "2026-10-19T00:00:00Z"
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "example": "roas"
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "example": "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.",
                                "example": "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.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "example": "example"
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "example": "example"
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "example": "LEARN_MORE"
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "example": []
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "example": {}
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "example": "ad:0"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "example": "done"
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "example": []
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "fk_projectId": {
                      "nullable": true,
                      "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.",
                      "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "image": {
                            "nullable": true,
                            "type": "string",
                            "description": "image.",
                            "example": "example"
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "example": []
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_prepare_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "description": "Destination project UUID. Null or omitted clears the project assignment.",
                    "nullable": true,
                    "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)$",
                    "example": "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": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        }
                      },
                      "required": [
                        "projectId"
                      ],
                      "additionalProperties": false,
                      "description": "data.",
                      "example": {}
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "statusCode": 500,
                  "message": "Internal server error"
                }
              }
            }
          },
          "503": {
            "description": "Experiment project migration is not installed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_moveExperimentToProject_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                    "example": "example"
                  },
                  "metaId": {
                    "type": "string",
                    "pattern": "^\\d{1,30}$",
                    "description": "meta Id.",
                    "example": "example"
                  },
                  "retryMedia": {
                    "type": "boolean",
                    "description": "retry Media.",
                    "example": 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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "Summer creative test"
                    },
                    "plan": {
                      "type": "object",
                      "properties": {
                        "standardCommercial": {
                          "type": "boolean",
                          "enum": [
                            true
                          ],
                          "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                          "example": true
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "hypothesis": {
                          "type": "string",
                          "minLength": 10,
                          "maxLength": 2000,
                          "description": "hypothesis.",
                          "example": "The localized creative improves qualified purchases."
                        },
                        "objective": {
                          "type": "string",
                          "enum": [
                            "OUTCOME_SALES",
                            "OUTCOME_LEADS",
                            "OUTCOME_TRAFFIC"
                          ],
                          "description": "objective.",
                          "example": "OUTCOME_SALES"
                        },
                        "testKind": {
                          "type": "string",
                          "enum": [
                            "creative",
                            "campaign"
                          ],
                          "description": "test Kind.",
                          "example": "creative"
                        },
                        "pageId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "page Id.",
                          "example": "example"
                        },
                        "pixelId": {
                          "type": "string",
                          "pattern": "^\\d{1,30}$",
                          "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                          "example": "771204559813206"
                        },
                        "landingPage": {
                          "type": "string",
                          "format": "uri",
                          "description": "landing Page.",
                          "example": "https://example.com/landing"
                        },
                        "countries": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "description": "countries.",
                          "example": [
                            "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.",
                          "example": 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.",
                          "example": "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.",
                          "example": "2026-10-19T00:00:00Z"
                        },
                        "minConversions": {
                          "type": "integer",
                          "minimum": 10,
                          "maximum": 10000,
                          "description": "min Conversions.",
                          "example": 1
                        },
                        "successMetric": {
                          "type": "string",
                          "enum": [
                            "roas",
                            "cpa"
                          ],
                          "description": "success Metric.",
                          "example": "roas"
                        },
                        "variants": {
                          "minItems": 2,
                          "maxItems": 5,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "name.",
                                "example": "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.",
                                "example": "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.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "headline": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "headline.",
                                "example": "example"
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000,
                                "description": "message.",
                                "example": "example"
                              },
                              "cta": {
                                "type": "string",
                                "enum": [
                                  "LEARN_MORE",
                                  "SHOP_NOW",
                                  "SIGN_UP"
                                ],
                                "description": "cta.",
                                "example": "LEARN_MORE"
                              }
                            },
                            "required": [
                              "name",
                              "assetId",
                              "headline",
                              "message",
                              "cta"
                            ],
                            "additionalProperties": false
                          },
                          "description": "variants.",
                          "example": []
                        }
                      },
                      "required": [
                        "standardCommercial",
                        "name",
                        "hypothesis",
                        "objective",
                        "testKind",
                        "pageId",
                        "landingPage",
                        "countries",
                        "dailyBudgetMinor",
                        "startTime",
                        "endTime",
                        "minConversions",
                        "successMetric",
                        "variants"
                      ],
                      "additionalProperties": false,
                      "description": "plan.",
                      "example": {}
                    },
                    "status": {
                      "type": "string",
                      "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                      "example": "draft"
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "key.",
                            "example": "ad:0"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "sending",
                              "done",
                              "uncertain"
                            ],
                            "description": "state.",
                            "example": "done"
                          },
                          "id": {
                            "type": "string",
                            "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "result": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider or execution-specific properties; preserve unknown fields.",
                            "example": {}
                          }
                        },
                        "required": [
                          "key",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "description": "steps.",
                      "example": []
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "description": "Failure explanation, or null.",
                      "example": "example"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "runToken": {
                      "nullable": true,
                      "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "fk_projectId": {
                      "nullable": true,
                      "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.",
                      "example": "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.",
                            "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "image": {
                            "nullable": true,
                            "type": "string",
                            "description": "image.",
                            "example": "example"
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "languages.",
                            "example": []
                          }
                        },
                        "required": [
                          "memberId",
                          "name",
                          "image",
                          "languages"
                        ],
                        "additionalProperties": false
                      },
                      "description": "assignees.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_recover_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                          "example": "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.",
                          "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "2026-10-11T00:00:00Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "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.",
                          "example": "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "approvedBy": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "name": {
                          "type": "string",
                          "description": "name.",
                          "example": "Summer creative test"
                        },
                        "plan": {
                          "type": "object",
                          "properties": {
                            "standardCommercial": {
                              "type": "boolean",
                              "enum": [
                                true
                              ],
                              "description": "Must be true: the caller confirms the standard commercial eligibility constraints.",
                              "example": true
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "description": "name.",
                              "example": "Summer creative test"
                            },
                            "hypothesis": {
                              "type": "string",
                              "minLength": 10,
                              "maxLength": 2000,
                              "description": "hypothesis.",
                              "example": "The localized creative improves qualified purchases."
                            },
                            "objective": {
                              "type": "string",
                              "enum": [
                                "OUTCOME_SALES",
                                "OUTCOME_LEADS",
                                "OUTCOME_TRAFFIC"
                              ],
                              "description": "objective.",
                              "example": "OUTCOME_SALES"
                            },
                            "testKind": {
                              "type": "string",
                              "enum": [
                                "creative",
                                "campaign"
                              ],
                              "description": "test Kind.",
                              "example": "creative"
                            },
                            "pageId": {
                              "type": "string",
                              "pattern": "^\\d{1,30}$",
                              "description": "page Id.",
                              "example": "example"
                            },
                            "pixelId": {
                              "type": "string",
                              "pattern": "^\\d{1,30}$",
                              "description": "Meta pixel (dataset) ID, not a Universe UUID.",
                              "example": "771204559813206"
                            },
                            "landingPage": {
                              "type": "string",
                              "format": "uri",
                              "description": "landing Page.",
                              "example": "https://example.com/landing"
                            },
                            "countries": {
                              "minItems": 1,
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "description": "countries.",
                              "example": [
                                "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.",
                              "example": 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.",
                              "example": "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.",
                              "example": "2026-10-19T00:00:00Z"
                            },
                            "minConversions": {
                              "type": "integer",
                              "minimum": 10,
                              "maximum": 10000,
                              "description": "min Conversions.",
                              "example": 1
                            },
                            "successMetric": {
                              "type": "string",
                              "enum": [
                                "roas",
                                "cpa"
                              ],
                              "description": "success Metric.",
                              "example": "roas"
                            },
                            "variants": {
                              "minItems": 2,
                              "maxItems": 5,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "description": "name.",
                                    "example": "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.",
                                    "example": "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.",
                                    "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                                  },
                                  "headline": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "description": "headline.",
                                    "example": "example"
                                  },
                                  "message": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000,
                                    "description": "message.",
                                    "example": "example"
                                  },
                                  "cta": {
                                    "type": "string",
                                    "enum": [
                                      "LEARN_MORE",
                                      "SHOP_NOW",
                                      "SIGN_UP"
                                    ],
                                    "description": "cta.",
                                    "example": "LEARN_MORE"
                                  }
                                },
                                "required": [
                                  "name",
                                  "assetId",
                                  "headline",
                                  "message",
                                  "cta"
                                ],
                                "additionalProperties": false
                              },
                              "description": "variants.",
                              "example": []
                            }
                          },
                          "required": [
                            "standardCommercial",
                            "name",
                            "hypothesis",
                            "objective",
                            "testKind",
                            "pageId",
                            "landingPage",
                            "countries",
                            "dailyBudgetMinor",
                            "startTime",
                            "endTime",
                            "minConversions",
                            "successMetric",
                            "variants"
                          ],
                          "additionalProperties": false,
                          "description": "plan.",
                          "example": {}
                        },
                        "status": {
                          "type": "string",
                          "description": "Current connection, action or experiment lifecycle state. See the group guide.",
                          "example": "draft"
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "key.",
                                "example": "ad:0"
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "sending",
                                  "done",
                                  "uncertain"
                                ],
                                "description": "state.",
                                "example": "done"
                              },
                              "id": {
                                "type": "string",
                                "description": "Universe row ID (UUID); Meta resource IDs are decimal strings.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "result": {
                                "type": "object",
                                "additionalProperties": {},
                                "description": "Provider or execution-specific properties; preserve unknown fields.",
                                "example": {}
                              }
                            },
                            "required": [
                              "key",
                              "state"
                            ],
                            "additionalProperties": false
                          },
                          "description": "steps.",
                          "example": []
                        },
                        "error": {
                          "nullable": true,
                          "type": "string",
                          "description": "Failure explanation, or null.",
                          "example": "example"
                        },
                        "approvedAt": {
                          "nullable": true,
                          "type": "string",
                          "description": "ISO 8601 timestamp.",
                          "example": "example"
                        },
                        "runToken": {
                          "nullable": true,
                          "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.",
                          "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                        },
                        "fk_projectId": {
                          "nullable": true,
                          "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.",
                          "example": "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.",
                                "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                              },
                              "name": {
                                "nullable": true,
                                "type": "string",
                                "description": "name.",
                                "example": "Summer creative test"
                              },
                              "image": {
                                "nullable": true,
                                "type": "string",
                                "description": "image.",
                                "example": "example"
                              },
                              "languages": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "languages.",
                                "example": []
                              }
                            },
                            "required": [
                              "memberId",
                              "name",
                              "image",
                              "languages"
                            ],
                            "additionalProperties": false
                          },
                          "description": "assignees.",
                          "example": []
                        }
                      },
                      "required": [
                        "id",
                        "fk_orgId",
                        "createdAt",
                        "updatedAt",
                        "accountId",
                        "creatorId",
                        "approvedBy",
                        "name",
                        "plan",
                        "status",
                        "steps",
                        "error",
                        "approvedAt",
                        "runToken"
                      ],
                      "additionalProperties": false,
                      "description": "experiment.",
                      "example": {}
                    },
                    "ranking": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "example": 100
                              },
                              "revenue": {
                                "nullable": true,
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": "number",
                                "example": 300
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "example": 1
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "example": 1
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "example": 1
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "example": 1
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "example": 1
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "example": 1
                              },
                              "roas": {
                                "nullable": true,
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": "number",
                                "example": 3
                              },
                              "cpa": {
                                "nullable": true,
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": "number",
                                "example": 10
                              },
                              "cac": {
                                "nullable": true,
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": "number",
                                "example": 20
                              },
                              "ctr": {
                                "nullable": true,
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "cpc": {
                                "nullable": true,
                                "description": "Spend / all clicks.",
                                "type": "number",
                                "example": 1
                              },
                              "cpm": {
                                "nullable": true,
                                "description": "Spend / impressions × 1000.",
                                "type": "number",
                                "example": 1
                              },
                              "cvr": {
                                "nullable": true,
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "frequency": {
                                "nullable": true,
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": "number",
                                "example": 1
                              },
                              "reach": {
                                "nullable": true,
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": "number",
                                "example": 1
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "example": {}
                          },
                          "eligible": {
                            "type": "boolean",
                            "description": "Whether the row has enough conversions for efficiency ranking; does not establish statistical significance.",
                            "example": false
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "metrics",
                          "eligible"
                        ],
                        "additionalProperties": false
                      },
                      "description": "ranking.",
                      "example": []
                    },
                    "mature": {
                      "type": "boolean",
                      "description": "Whether the retained observation window and conversion delay have both elapsed.",
                      "example": false
                    },
                    "observationWindow": {
                      "type": "object",
                      "properties": {
                        "since": {
                          "type": "string",
                          "description": "since.",
                          "example": "2026-10-04T09:00:00Z"
                        },
                        "until": {
                          "type": "string",
                          "description": "until.",
                          "example": "2026-10-11T09:00:00Z"
                        }
                      },
                      "required": [
                        "since",
                        "until"
                      ],
                      "additionalProperties": false,
                      "description": "observation Window.",
                      "example": {}
                    },
                    "assessment": {
                      "type": "string",
                      "description": "assessment.",
                      "example": "example"
                    },
                    "studyId": {
                      "nullable": true,
                      "type": "string",
                      "description": "study Id.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_results_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                      "example": "example"
                    },
                    "fetchedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "objectives": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Meta resource ID, not a Universe UUID.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "available": {
                            "type": "boolean",
                            "description": "available.",
                            "example": false
                          },
                          "highPerformers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "adId": {
                                  "type": "string",
                                  "description": "ad Id.",
                                  "example": "example"
                                },
                                "name": {
                                  "nullable": true,
                                  "type": "string",
                                  "description": "name.",
                                  "example": "Summer creative test"
                                }
                              },
                              "required": [
                                "adId",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "description": "high Performers.",
                            "example": []
                          },
                          "note": {
                            "nullable": true,
                            "description": "Why Meta has no outcome yet, in its words (e.g. the test has not run for 3 days); null otherwise.",
                            "type": "string",
                            "example": "example"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "available",
                          "highPerformers",
                          "note"
                        ],
                        "additionalProperties": false
                      },
                      "description": "objectives.",
                      "example": []
                    }
                  },
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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).",
        "x-orbitdocs-handler": "MarketingController_studyResults_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                            "example": "2026-10-11"
                          },
                          "objectId": {
                            "type": "string",
                            "description": "object Id.",
                            "example": "123456789"
                          },
                          "name": {
                            "type": "string",
                            "description": "name.",
                            "example": "Summer creative test"
                          },
                          "metrics": {
                            "type": "object",
                            "properties": {
                              "spend": {
                                "type": "number",
                                "description": "Spend in major units of the ad account currency.",
                                "example": 100
                              },
                              "revenue": {
                                "nullable": true,
                                "description": "Attributed purchase value in major currency units; null if Meta values are missing or inconsistent.",
                                "type": "number",
                                "example": 300
                              },
                              "conversions": {
                                "type": "number",
                                "description": "Conversions for the configured goal.",
                                "example": 1
                              },
                              "purchases": {
                                "type": "number",
                                "description": "Canonical purchases without double-counting Meta aliases.",
                                "example": 1
                              },
                              "leads": {
                                "type": "number",
                                "description": "Canonical leads without double-counting aliases.",
                                "example": 1
                              },
                              "impressions": {
                                "type": "number",
                                "description": "Ad impressions.",
                                "example": 1
                              },
                              "clicks": {
                                "type": "number",
                                "description": "All clicks.",
                                "example": 1
                              },
                              "linkClicks": {
                                "type": "number",
                                "description": "Link clicks.",
                                "example": 1
                              },
                              "roas": {
                                "nullable": true,
                                "description": "Attributed purchase revenue / spend; null when unavailable.",
                                "type": "number",
                                "example": 3
                              },
                              "cpa": {
                                "nullable": true,
                                "description": "Spend / goal conversions; null without conversions.",
                                "type": "number",
                                "example": 10
                              },
                              "cac": {
                                "nullable": true,
                                "description": "Spend / new customers. Null unless every day has an imported outcome and the customer total is positive.",
                                "type": "number",
                                "example": 20
                              },
                              "ctr": {
                                "nullable": true,
                                "description": "All clicks / impressions × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "cpc": {
                                "nullable": true,
                                "description": "Spend / all clicks.",
                                "type": "number",
                                "example": 1
                              },
                              "cpm": {
                                "nullable": true,
                                "description": "Spend / impressions × 1000.",
                                "type": "number",
                                "example": 1
                              },
                              "cvr": {
                                "nullable": true,
                                "description": "Goal conversions / link clicks × 100 (percentage).",
                                "type": "number",
                                "example": 1
                              },
                              "frequency": {
                                "nullable": true,
                                "description": "Deduplicated frequency from one Meta reporting grain; null when aggregation cannot preserve it.",
                                "type": "number",
                                "example": 1
                              },
                              "reach": {
                                "nullable": true,
                                "description": "Deduplicated reach from one Meta reporting grain; never summed across rows.",
                                "type": "number",
                                "example": 1
                              }
                            },
                            "required": [
                              "spend",
                              "revenue",
                              "conversions",
                              "purchases",
                              "leads",
                              "impressions",
                              "clicks",
                              "linkClicks",
                              "roas",
                              "cpa",
                              "cac",
                              "ctr",
                              "cpc",
                              "cpm",
                              "cvr",
                              "frequency",
                              "reach"
                            ],
                            "additionalProperties": false,
                            "description": "metrics.",
                            "example": {}
                          }
                        },
                        "required": [
                          "date",
                          "objectId",
                          "name",
                          "metrics"
                        ],
                        "additionalProperties": false
                      },
                      "description": "matches.",
                      "example": []
                    },
                    "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "note": {
                      "type": "string",
                      "description": "note.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_preview_v1"
      }
    },
    "/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",
              "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
              "type": "string"
            }
          }
        ],
        "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.",
                    "example": "recommend"
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "enabled.",
                    "example": 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.",
                      "example": "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.",
                      "example": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "2026-10-11T00:00:00Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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.",
                      "example": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
                    },
                    "name": {
                      "type": "string",
                      "description": "name.",
                      "example": "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.",
                                "example": "spend"
                              },
                              "operator": {
                                "type": "string",
                                "enum": [
                                  "gt",
                                  "lt",
                                  "gte",
                                  "lte"
                                ],
                                "description": "operator.",
                                "example": "gt"
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "description": "value.",
                                "example": 1
                              }
                            },
                            "required": [
                              "metric",
                              "operator",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "conditions.",
                          "example": []
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "pause",
                            "increase_budget",
                            "decrease_budget",
                            "recommend"
                          ],
                          "description": "action.",
                          "example": "pause"
                        },
                        "changePercent": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 30,
                          "description": "change Percent.",
                          "example": 1
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "number",
                              "enum": [
                                7
                              ]
                            },
                            {
                              "type": "number",
                              "enum": [
                                30
                              ]
                            }
                          ],
                          "description": "days.",
                          "example": 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.",
                          "example": "recommend"
                        }
                      },
                      "required": [
                        "conditions",
                        "action",
                        "changePercent",
                        "days",
                        "mode"
                      ],
                      "additionalProperties": false,
                      "description": "spec.",
                      "example": {}
                    },
                    "enabled": {
                      "type": "boolean",
                      "description": "enabled.",
                      "example": false
                    },
                    "lastPreviewAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "example"
                    },
                    "lastEvaluatedAt": {
                      "nullable": true,
                      "type": "string",
                      "description": "ISO 8601 timestamp.",
                      "example": "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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"
                },
                "example": {
                  "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.",
        "x-orbitdocs-handler": "MarketingController_ruleStatus_v1"
      }
    }
  },
  "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.",
            "example": 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"
                }
              }
            ],
            "example": "Booking not found"
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "example": "Not Found"
          }
        }
      },
      "InsufficientCreditsErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "example": 402
          },
          "error": {
            "type": "string",
            "description": "Always `InsufficientCredits`.",
            "example": "InsufficientCredits"
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "example": "You don't have enough credits to start this. It needs 120; you have 45."
          },
          "required": {
            "type": "number",
            "description": "Credits this request needs.",
            "example": 120
          },
          "available": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "example": 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.",
            "example": 0
          }
        },
        "required": [
          "statusCode",
          "error",
          "message",
          "required",
          "available",
          "owed"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
