{
    "openapi": "3.1.2",
    "info": {
        "title": "ads.codex API v1",
        "version": "1.0.0",
        "description": "The ads.codex API lets you do from code everything a publisher does in the dashboard: add and verify websites, create ad zones, get the integration code, review banners, and read statistics and earnings.\n\n## Connect a website in 5 minutes\n\n**1. Create a token.** In the dashboard, open **API access**, give the token a name and pick its scopes (for this guide: `account:read`, `sites:read`, `sites:write`, `zones:read`, `zones:write`). The token is shown once: store it like a password.\n\n```bash\nexport TOKEN=\"eyJ0eXAiOiJKV1Qi...\"\nexport API=\"https:\/\/ads.codex.md\/api\/v1\"\n```\n\n**2. Check your account.** `missing_steps` lists what is still needed (for example, the publisher role).\n\n```bash\ncurl -s \"$API\/me\" -H \"Authorization: Bearer $TOKEN\"\n```\n\n**3. Add the website.** `Idempotency-Key` is required on every `POST` that creates something: if the network fails, retry with the same key and the site will not be created twice.\n\n```bash\ncurl -s -X POST \"$API\/sites\" \\\n  -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application\/json\" \\\n  -H \"Idempotency-Key: my-site-2026-10-22\" \\\n  -d '{\"domain\":\"example.md\",\"name\":\"Example\",\"language\":\"ro\",\"categories\":[\"1\"],\"audience\":[\"b2c\"]}'\n```\n\n**4. Prove ownership.** Pick a method (`meta`, `file` or `dns`), put the returned value on your website, then ask us to check it. If the check fails, `reason` and `explanation` tell you exactly what we saw.\n\n```bash\ncurl -s -X POST \"$API\/sites\/SITE_ID\/verification\" -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application\/json\" -d '{\"method\":\"meta\"}'\ncurl -s -X POST \"$API\/sites\/SITE_ID\/verification\/check\" -H \"Authorization: Bearer $TOKEN\"\ncurl -s -X POST \"$API\/sites\/SITE_ID\/submit\" -H \"Authorization: Bearer $TOKEN\"\n```\n\n**5. After approval, create a zone and get the code.** Prices are sent in micro-units (integers, `1 MDL = 1000000`) or as decimal strings (`\"75.50\"`), never as floats.\n\n```bash\ncurl -s -X POST \"$API\/sites\/SITE_ID\/zones\" \\\n  -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application\/json\" -H \"Idempotency-Key: zone-sidebar-1\" \\\n  -d '{\"name\":\"Sidebar\",\"size\":\"300x250\",\"cpm\":\"75.50\"}'\ncurl -s \"$API\/zones\/ZONE_ID\/code?platform=wordpress\" -H \"Authorization: Bearer $TOKEN\"\n```\n\nPut `site_script` once on every page (in `<head>` or before `<\/body>`) and `zone_element` where the banner should appear. `GET \/sites\/SITE_ID\/integration` tells you when we first see the code on your website.\n\n## Conventions\n\n- **Authentication:** `Authorization: Bearer <token>`. Each route needs a scope; a missing scope returns `403` with `required_scopes`.\n- **Errors:** [RFC 9457](https:\/\/www.rfc-editor.org\/rfc\/rfc9457) `application\/problem+json` with `type`, `title`, `status`, `code`, `detail`, `request_id`; validation errors add `errors`; business rule violations add `reason` (the same codes the dashboard uses). Messages follow `Accept-Language` (`ro`, `ru`, `en`).\n- **Money:** `{\"amount_micros\": 75500000, \"currency\": \"MDL\"}`.\n- **Pagination:** lists accept `limit` (max 100) and `cursor`; responses return `next_cursor` (`null` on the last page).\n- **Rate limits:** 120 requests per minute per token, of which 30 writes. Over the limit: `429` with `Retry-After`.\n- **Request id:** every response has `X-Request-Id`; include it when you contact support.\n- **Ownership:** resources of other accounts answer `404`.\n- **Payouts** are requested only from the dashboard, with two-step verification.\n\n## Webhooks\n\nRegister an HTTPS endpoint with `POST \/webhooks` (scope `webhooks:manage`). The response contains a `secret` (shown once). Every delivery is a `POST` with a JSON body and these headers:\n\n- `Codex-Event`: for example `site.approved`, `approval.requested`, `payout.paid`\n- `Codex-Delivery`: a unique id (use it to ignore duplicates)\n- `Codex-Signature`: `t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with your secret>`\n\nReply with any `2xx` within 5 seconds. Failed deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. `POST \/webhooks\/ID\/test` sends a `ping`.\n\nVerify the signature before trusting the body, and reject timestamps older than 5 minutes:\n\n```php\n[$t, $v1] = sscanf($_SERVER['HTTP_CODEX_SIGNATURE'], 't=%d,v1=%s');\n$body = file_get_contents('php:\/\/input');\n$valid = abs(time() - $t) <= 300 && hash_equals(hash_hmac('sha256', $t.'.'.$body, $secret), $v1);\n```\n\n```javascript\nconst [t, v1] = req.get('Codex-Signature').match(\/^t=(\\d+),v1=([a-f0-9]{64})$\/).slice(1);\nconst expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');\nconst valid = Math.abs(Date.now() \/ 1000 - t) <= 300 && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));\n```\n\n```python\nt, v1 = re.match(r\"^t=(\\d+),v1=([a-f0-9]{64})$\", request.headers[\"Codex-Signature\"]).groups()\nexpected = hmac.new(secret.encode(), f\"{t}.\".encode() + raw_body, hashlib.sha256).hexdigest()\nvalid = abs(time.time() - int(t)) <= 300 and hmac.compare_digest(expected, v1)\n```\n"
    },
    "servers": [
        {
            "url": "https:\/\/ads-laravel.codex.md\/api\/v1"
        }
    ],
    "security": [
        {
            "http": []
        }
    ],
    "paths": {
        "\/approvals": {
            "get": {
                "operationId": "v1.approvals.index",
                "tags": [
                    "Approval"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "integer"
                                                    },
                                                    "site_id": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "expires_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "decided_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "decided_by_timeout": {
                                                        "type": "boolean"
                                                    },
                                                    "banner": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "size": {
                                                                "type": "string"
                                                            },
                                                            "creative_url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "destination_url": {
                                                                "type": "string"
                                                            },
                                                            "categories": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "size",
                                                            "creative_url",
                                                            "destination_url",
                                                            "categories"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "site_id",
                                                    "status",
                                                    "reason",
                                                    "expires_at",
                                                    "decided_at",
                                                    "decided_by_timeout",
                                                    "banner"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/approvals\/{approval}\/approve": {
            "post": {
                "operationId": "v1.approvals.approve",
                "tags": [
                    "Approval"
                ],
                "parameters": [
                    {
                        "name": "approval",
                        "in": "path",
                        "required": true,
                        "description": "The approval ID",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "integer"
                                                },
                                                "site_id": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "expires_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "decided_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "decided_by_timeout": {
                                                    "type": "boolean"
                                                },
                                                "banner": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "size": {
                                                            "type": "string"
                                                        },
                                                        "creative_url": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "destination_url": {
                                                            "type": "string"
                                                        },
                                                        "categories": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name",
                                                        "size",
                                                        "creative_url",
                                                        "destination_url",
                                                        "categories"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "site_id",
                                                "status",
                                                "reason",
                                                "expires_at",
                                                "decided_at",
                                                "decided_by_timeout",
                                                "banner"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/approvals\/{approval}\/reject": {
            "post": {
                "operationId": "v1.approvals.reject",
                "summary": "Respingerea cere motiv (\u00eel vede advertiserul)",
                "tags": [
                    "Approval"
                ],
                "parameters": [
                    {
                        "name": "approval",
                        "in": "path",
                        "required": true,
                        "description": "The approval ID",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 1000
                                    }
                                },
                                "required": [
                                    "reason"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "integer"
                                                },
                                                "site_id": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "expires_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "decided_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "decided_by_timeout": {
                                                    "type": "boolean"
                                                },
                                                "banner": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "size": {
                                                            "type": "string"
                                                        },
                                                        "creative_url": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "destination_url": {
                                                            "type": "string"
                                                        },
                                                        "categories": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name",
                                                        "size",
                                                        "creative_url",
                                                        "destination_url",
                                                        "categories"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "site_id",
                                                "status",
                                                "reason",
                                                "expires_at",
                                                "decided_at",
                                                "decided_by_timeout",
                                                "banner"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/banners": {
            "get": {
                "operationId": "v1.banners.index",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "campaign_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "size": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "rejection_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "creative_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "destination_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "final_url": {
                                                        "type": "string"
                                                    },
                                                    "categories": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "audience": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "all_sites": {
                                                        "type": "boolean"
                                                    },
                                                    "sites": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "zones": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "budget_type": {
                                                        "type": "string"
                                                    },
                                                    "budget": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "ends_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "submit_url": {
                                                        "type": "string",
                                                        "description": "Trimiterea la moderare se face din panou: advertiserul vede rezumatul costurilor \u0219i accept\u0103 regulile."
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "campaign_id",
                                                    "name",
                                                    "size",
                                                    "status",
                                                    "rejection_reason",
                                                    "creative_url",
                                                    "destination_url",
                                                    "final_url",
                                                    "categories",
                                                    "audience",
                                                    "all_sites",
                                                    "sites",
                                                    "zones",
                                                    "budget_type",
                                                    "budget",
                                                    "ends_at",
                                                    "submit_url",
                                                    "created_at"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.banners.store",
                "summary": "Creeaz\u0103 bannerul ca ciorn\u0103 (nu se trimite la moderare \u0219i nu cheltuie nimic)",
                "tags": [
                    "Banner"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "campaign_id": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "size": {
                                        "type": "string",
                                        "maxLength": 16
                                    },
                                    "creative_id": {
                                        "type": "string"
                                    },
                                    "destination_url": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "utm": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "maxLength": 200
                                        }
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 1
                                    },
                                    "audience": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 1
                                    },
                                    "all_sites": {
                                        "type": "boolean"
                                    },
                                    "sites": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "zones": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "budget_type": {
                                        "$ref": "#\/components\/schemas\/BudgetType"
                                    },
                                    "budget": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                },
                                "required": [
                                    "campaign_id",
                                    "name",
                                    "size",
                                    "creative_id",
                                    "destination_url",
                                    "categories",
                                    "audience",
                                    "budget"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "all_sites": {
                                                    "type": "boolean"
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "submit_url": {
                                                    "type": "string",
                                                    "description": "Trimiterea la moderare se face din panou: advertiserul vede rezumatul costurilor \u0219i accept\u0103 regulile."
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "all_sites",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "submit_url",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/banners\/{banner}": {
            "get": {
                "operationId": "v1.banners.show",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "banner",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "all_sites": {
                                                    "type": "boolean"
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "submit_url": {
                                                    "type": "string",
                                                    "description": "Trimiterea la moderare se face din panou: advertiserul vede rezumatul costurilor \u0219i accept\u0103 regulile."
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "delivering": {
                                                    "type": "string"
                                                },
                                                "diagnostics": {
                                                    "type": "array",
                                                    "items": {}
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "all_sites",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "submit_url",
                                                "created_at",
                                                "delivering",
                                                "diagnostics"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.banners.update",
                "summary": "Modificarea unei ciorne; bannerele trimise se modific\u0103 din panou (retrimiterea la moderare, \u00a75.6)",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "banner",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "size": {
                                        "type": "string",
                                        "maxLength": 16
                                    },
                                    "creative_id": {
                                        "type": "string"
                                    },
                                    "destination_url": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "utm": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "maxLength": 200
                                        }
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "audience": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "all_sites": {
                                        "type": "boolean"
                                    },
                                    "sites": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "zones": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "budget_type": {
                                        "$ref": "#\/components\/schemas\/BudgetType"
                                    },
                                    "budget": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "all_sites": {
                                                    "type": "boolean"
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "submit_url": {
                                                    "type": "string",
                                                    "description": "Trimiterea la moderare se face din panou: advertiserul vede rezumatul costurilor \u0219i accept\u0103 regulile."
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "all_sites",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "submit_url",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "",
                        "content": {
                            "application\/problem+json": {
                                "schema": {
                                    "type": "array",
                                    "items": {}
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/banners": {
            "get": {
                "operationId": "v1.partner.banners.index",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "client_id": {
                                                        "type": "string"
                                                    },
                                                    "campaign_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "size": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "rejection_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "creative_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "destination_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "final_url": {
                                                        "type": "string"
                                                    },
                                                    "categories": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "audience": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "sites": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "zones": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "budget_type": {
                                                        "type": "string"
                                                    },
                                                    "budget": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "ends_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "client_id",
                                                    "campaign_id",
                                                    "name",
                                                    "size",
                                                    "status",
                                                    "rejection_reason",
                                                    "creative_url",
                                                    "destination_url",
                                                    "final_url",
                                                    "categories",
                                                    "audience",
                                                    "sites",
                                                    "zones",
                                                    "budget_type",
                                                    "budget",
                                                    "ends_at",
                                                    "created_at"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.partner.banners.store",
                "summary": "Creeaz\u0103 bannerul \u0219i \u00eel trimite la moderarea platformei",
                "tags": [
                    "Banner"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "campaign_id": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "size": {
                                        "type": "string",
                                        "maxLength": 16
                                    },
                                    "creative_id": {
                                        "type": "string"
                                    },
                                    "destination_url": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "utm": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "maxLength": 200
                                        }
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 1
                                    },
                                    "audience": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 1
                                    },
                                    "sites": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "zones": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "budget_type": {
                                        "$ref": "#\/components\/schemas\/BudgetType"
                                    },
                                    "budget": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                },
                                "required": [
                                    "campaign_id",
                                    "name",
                                    "size",
                                    "creative_id",
                                    "destination_url",
                                    "categories",
                                    "audience",
                                    "budget"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "client_id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "client_id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/banners\/{banner}": {
            "patch": {
                "operationId": "v1.partner.banners.update",
                "summary": "Modificare; creativul, destina\u021bia sau categoriile retrimit bannerul la moderare (\u00a75.6)",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "banner",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "size": {
                                        "type": "string",
                                        "maxLength": 16
                                    },
                                    "creative_id": {
                                        "type": "string"
                                    },
                                    "destination_url": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "utm": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "maxLength": 200
                                        }
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "audience": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "sites": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "zones": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "budget_type": {
                                        "$ref": "#\/components\/schemas\/BudgetType"
                                    },
                                    "budget": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "client_id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "client_id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/banners\/{banner}\/pause": {
            "post": {
                "operationId": "v1.partner.banners.pause",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "banner",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "client_id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "client_id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/banners\/{banner}\/resume": {
            "post": {
                "operationId": "v1.partner.banners.resume",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "banner",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "client_id": {
                                                    "type": "string"
                                                },
                                                "campaign_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "creative_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "destination_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "final_url": {
                                                    "type": "string"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "audience": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "sites": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "budget_type": {
                                                    "type": "string"
                                                },
                                                "budget": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "client_id",
                                                "campaign_id",
                                                "name",
                                                "size",
                                                "status",
                                                "rejection_reason",
                                                "creative_url",
                                                "destination_url",
                                                "final_url",
                                                "categories",
                                                "audience",
                                                "sites",
                                                "zones",
                                                "budget_type",
                                                "budget",
                                                "ends_at",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/banners\/{banner}\/status": {
            "get": {
                "operationId": "v1.partner.banners.status",
                "summary": "Starea de moderare \u0219i diagnosticul de livrare (par\u021bial \u00een faza A)",
                "tags": [
                    "Banner"
                ],
                "parameters": [
                    {
                        "name": "banner",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "rejection_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "delivering": {
                                                    "type": "boolean"
                                                },
                                                "diagnostics": {
                                                    "type": "array",
                                                    "items": {}
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "status",
                                                "rejection_reason",
                                                "delivering",
                                                "diagnostics"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/campaigns": {
            "get": {
                "operationId": "v1.campaigns.index",
                "tags": [
                    "Campaign"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "objective": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "starts_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "ends_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "targeting": {
                                                        "type": "object",
                                                        "properties": {
                                                            "countries": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "devices": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "weekdays": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "hours": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "frequency_cap_per_day": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "total_cap": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "objective",
                                                    "status",
                                                    "starts_at",
                                                    "ends_at",
                                                    "targeting",
                                                    "total_cap",
                                                    "created_at"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.campaigns.store",
                "tags": [
                    "Campaign"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "objective": {
                                        "$ref": "#\/components\/schemas\/CampaignObjective"
                                    },
                                    "starts_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    },
                                    "countries": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string",
                                            "minLength": 2,
                                            "maxLength": 2
                                        }
                                    },
                                    "devices": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "desktop",
                                                "mobile",
                                                "tablet"
                                            ]
                                        }
                                    }
                                },
                                "required": [
                                    "name",
                                    "objective"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "objective": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "starts_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "targeting": {
                                                    "type": "object",
                                                    "properties": {
                                                        "countries": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "devices": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "weekdays": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "hours": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "frequency_cap_per_day": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "total_cap": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ]
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "objective",
                                                "status",
                                                "starts_at",
                                                "ends_at",
                                                "targeting",
                                                "total_cap",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/campaigns\/{campaign}": {
            "get": {
                "operationId": "v1.campaigns.show",
                "tags": [
                    "Campaign"
                ],
                "parameters": [
                    {
                        "name": "campaign",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "objective": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "starts_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "targeting": {
                                                    "type": "object",
                                                    "properties": {
                                                        "countries": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "devices": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "weekdays": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "hours": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "frequency_cap_per_day": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "total_cap": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ]
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "banners": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "campaign_id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "size": {
                                                                "type": "string"
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "rejection_reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "creative_url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "destination_url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "final_url": {
                                                                "type": "string"
                                                            },
                                                            "categories": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "audience": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "all_sites": {
                                                                "type": "boolean"
                                                            },
                                                            "sites": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "zones": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "budget_type": {
                                                                "type": "string"
                                                            },
                                                            "budget": {
                                                                "type": [
                                                                    "object",
                                                                    "null"
                                                                ],
                                                                "properties": {
                                                                    "amount_micros": {
                                                                        "type": "integer"
                                                                    },
                                                                    "currency": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "required": [
                                                                    "amount_micros",
                                                                    "currency"
                                                                ]
                                                            },
                                                            "ends_at": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "submit_url": {
                                                                "type": "string",
                                                                "description": "Trimiterea la moderare se face din panou: advertiserul vede rezumatul costurilor \u0219i accept\u0103 regulile."
                                                            },
                                                            "created_at": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "campaign_id",
                                                            "name",
                                                            "size",
                                                            "status",
                                                            "rejection_reason",
                                                            "creative_url",
                                                            "destination_url",
                                                            "final_url",
                                                            "categories",
                                                            "audience",
                                                            "all_sites",
                                                            "sites",
                                                            "zones",
                                                            "budget_type",
                                                            "budget",
                                                            "ends_at",
                                                            "submit_url",
                                                            "created_at"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "objective",
                                                "status",
                                                "starts_at",
                                                "ends_at",
                                                "targeting",
                                                "total_cap",
                                                "created_at",
                                                "banners"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/creatives": {
            "post": {
                "operationId": "v1.creatives.store",
                "summary": "Creativ: fi\u0219ier (multipart, c\u00e2mpul \u201efile\u201d) sau URL HTTPS; validat \u0219i scanat ca \u00een panou (\u00a75.6)",
                "tags": [
                    "Campaign"
                ],
                "requestBody": {
                    "content": {
                        "multipart\/form-data": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "file": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "binary",
                                        "contentMediaType": "application\/octet-stream",
                                        "description": "Maximum file size: 2048 kilobytes."
                                    },
                                    "url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 2000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "bytes": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "size",
                                                "url",
                                                "bytes"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/campaigns": {
            "get": {
                "operationId": "v1.partner.campaigns.index",
                "tags": [
                    "Campaign"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "client_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "objective": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "starts_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "ends_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "targeting": {
                                                        "type": "object",
                                                        "properties": {
                                                            "countries": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "devices": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "weekdays": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "hours": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "frequency_cap_per_day": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            }
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "client_id",
                                                    "name",
                                                    "objective",
                                                    "status",
                                                    "starts_at",
                                                    "ends_at",
                                                    "targeting"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.partner.campaigns.store",
                "tags": [
                    "Campaign"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "client_id": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "objective": {
                                        "$ref": "#\/components\/schemas\/CampaignObjective"
                                    },
                                    "starts_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    },
                                    "countries": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string",
                                            "minLength": 2,
                                            "maxLength": 2
                                        }
                                    },
                                    "devices": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "desktop",
                                                "mobile",
                                                "tablet"
                                            ]
                                        }
                                    }
                                },
                                "required": [
                                    "client_id",
                                    "name",
                                    "objective"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "client_id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "objective": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "starts_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "ends_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "targeting": {
                                                    "type": "object",
                                                    "properties": {
                                                        "countries": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "devices": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "weekdays": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "hours": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "frequency_cap_per_day": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "client_id",
                                                "name",
                                                "objective",
                                                "status",
                                                "starts_at",
                                                "ends_at",
                                                "targeting"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/creatives": {
            "post": {
                "operationId": "v1.partner.creatives.store",
                "summary": "Creativ: fi\u0219ier (multipart, c\u00e2mpul \u201efile\u201d) sau URL HTTPS de desc\u0103rcat; validat ca \u00een panou (\u00a75.6)",
                "tags": [
                    "Campaign"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart\/form-data": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "client_id": {
                                        "type": "string"
                                    },
                                    "file": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "binary",
                                        "contentMediaType": "application\/octet-stream",
                                        "description": "Maximum file size: 2048 kilobytes."
                                    },
                                    "url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 2000
                                    }
                                },
                                "required": [
                                    "client_id"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "client_id": {
                                                    "type": "string"
                                                },
                                                "size": {
                                                    "type": "string"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "bytes": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "client_id",
                                                "size",
                                                "url",
                                                "bytes"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/clients": {
            "get": {
                "operationId": "v1.partner.clients.index",
                "tags": [
                    "Client"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "external_ref": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "authorized_total": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "spent": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "remaining": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {},
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "external_ref",
                                                    "authorized_total",
                                                    "spent",
                                                    "remaining",
                                                    "created_at"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.partner.clients.store",
                "tags": [
                    "Client"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 200
                                    },
                                    "external_ref": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 100
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "external_ref": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "authorized_total": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "spent": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer",
                                                            "const": 0
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "remaining": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {},
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "external_ref",
                                                "authorized_total",
                                                "spent",
                                                "remaining",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/clients\/{client}": {
            "get": {
                "operationId": "v1.partner.clients.show",
                "tags": [
                    "Client"
                ],
                "parameters": [
                    {
                        "name": "client",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "external_ref": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "authorized_total": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "spent": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "remaining": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {},
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "external_ref",
                                                "authorized_total",
                                                "spent",
                                                "remaining",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.partner.clients.update",
                "tags": [
                    "Client"
                ],
                "parameters": [
                    {
                        "name": "client",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 200
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "external_ref": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "authorized_total": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "spent": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "remaining": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {},
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "external_ref",
                                                "authorized_total",
                                                "spent",
                                                "remaining",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/clients\/{client}\/budget": {
            "put": {
                "operationId": "v1.partner.clients.budget",
                "summary": "Bugetul autorizat cumulativ: doar cresc\u0103tor, \u00een limita de credit (ADR-0015)",
                "tags": [
                    "Client"
                ],
                "parameters": [
                    {
                        "name": "client",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "authorized_total": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "authorized_total"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "external_ref": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "authorized_total": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "spent": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "remaining": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {},
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "credit": {
                                                    "type": "object",
                                                    "properties": {
                                                        "limit": {
                                                            "type": [
                                                                "object",
                                                                "null"
                                                            ],
                                                            "properties": {
                                                                "amount_micros": {
                                                                    "type": "integer"
                                                                },
                                                                "currency": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "required": [
                                                                "amount_micros",
                                                                "currency"
                                                            ]
                                                        },
                                                        "exposure": {
                                                            "type": [
                                                                "object",
                                                                "null"
                                                            ],
                                                            "properties": {
                                                                "amount_micros": {
                                                                    "type": "integer"
                                                                },
                                                                "currency": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "required": [
                                                                "amount_micros",
                                                                "currency"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "limit",
                                                        "exposure"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "external_ref",
                                                "authorized_total",
                                                "spent",
                                                "remaining",
                                                "created_at",
                                                "credit"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/connect\/token": {
            "post": {
                "operationId": "v1.connect.token",
                "tags": [
                    "IntegrationToken"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "code": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "code_verifier": {
                                        "type": "string",
                                        "minLength": 43,
                                        "maxLength": 128
                                    }
                                },
                                "required": [
                                    "code",
                                    "code_verifier"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "access_token": {
                                            "type": "string"
                                        },
                                        "token_type": {
                                            "type": "string",
                                            "const": "Bearer"
                                        },
                                        "scopes": {
                                            "type": "string"
                                        },
                                        "account_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "access_token",
                                        "token_type",
                                        "scopes",
                                        "account_id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "const": "invalid_grant"
                                        },
                                        "error_description": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "error",
                                        "error_description"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                }
            }
        },
        "\/me": {
            "get": {
                "operationId": "v1.me",
                "tags": [
                    "Me"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "user": {
                                                    "type": "object",
                                                    "properties": {
                                                        "email": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "locale": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "email",
                                                        "name",
                                                        "locale"
                                                    ]
                                                },
                                                "account": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "type": "string"
                                                        },
                                                        "roles": {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        "market": {
                                                            "type": [
                                                                "object",
                                                                "null"
                                                            ],
                                                            "properties": {
                                                                "code": {
                                                                    "type": "string"
                                                                },
                                                                "currency": {
                                                                    "type": "string"
                                                                },
                                                                "timezone": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "required": [
                                                                "code",
                                                                "currency",
                                                                "timezone"
                                                            ]
                                                        },
                                                        "onboarded": {
                                                            "type": "boolean"
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "type",
                                                        "roles",
                                                        "market",
                                                        "onboarded"
                                                    ]
                                                },
                                                "missing_steps": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "sites": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "links": {
                                                    "type": "object",
                                                    "properties": {
                                                        "dashboard": {
                                                            "type": "string"
                                                        },
                                                        "onboarding": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "dashboard",
                                                        "onboarding"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "user",
                                                "account",
                                                "missing_steps",
                                                "sites",
                                                "links"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/markets": {
            "get": {
                "operationId": "v1.markets",
                "tags": [
                    "Reference"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "currency": {
                                                        "type": "string"
                                                    },
                                                    "timezone": {
                                                        "type": "string"
                                                    },
                                                    "min_cpm": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "min_cpc": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "min_payout": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "code",
                                                    "name",
                                                    "currency",
                                                    "timezone",
                                                    "min_cpm",
                                                    "min_cpc",
                                                    "min_payout"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/formats": {
            "get": {
                "operationId": "v1.formats",
                "tags": [
                    "Reference"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "size": {
                                                        "type": "string"
                                                    },
                                                    "width": {
                                                        "type": "integer"
                                                    },
                                                    "height": {
                                                        "type": "integer"
                                                    },
                                                    "max_file_bytes": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "required": [
                                                    "size",
                                                    "width",
                                                    "height",
                                                    "max_file_bytes"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/taxonomies\/{taxonomy}": {
            "get": {
                "operationId": "v1.taxonomies",
                "tags": [
                    "Reference"
                ],
                "parameters": [
                    {
                        "name": "taxonomy",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 20
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "parent": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "tier": {
                                                        "type": "integer"
                                                    },
                                                    "sensitive": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "code",
                                                    "label",
                                                    "parent",
                                                    "tier",
                                                    "sensitive"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/stats": {
            "get": {
                "operationId": "v1.stats",
                "summary": "Statistici pe perioad\u0103: group_by = day | banner | site | zone. Detalierea pe \u021bar\u0103 \u0219i dispozitiv\nvine odat\u0103 cu API-ul de rapoarte al engine-ului (faza B)",
                "tags": [
                    "Report"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "period": {
                                            "type": "object",
                                            "properties": {
                                                "from": {
                                                    "type": "string"
                                                },
                                                "to": {
                                                    "type": "string"
                                                },
                                                "timezone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "from",
                                                "to",
                                                "timezone"
                                            ]
                                        },
                                        "role": {
                                            "type": "string"
                                        },
                                        "group_by": {
                                            "type": "string"
                                        },
                                        "totals": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "type": "string"
                                                },
                                                "impressions": {
                                                    "type": "string"
                                                },
                                                "clicks": {
                                                    "type": "string"
                                                },
                                                "ctr_bp": {
                                                    "type": "string"
                                                },
                                                "amount": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "string"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "impressions",
                                                "clicks",
                                                "ctr_bp",
                                                "amount"
                                            ]
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "key": {
                                                        "type": "string"
                                                    },
                                                    "impressions": {
                                                        "type": "string"
                                                    },
                                                    "clicks": {
                                                        "type": "string"
                                                    },
                                                    "ctr_bp": {
                                                        "type": "string"
                                                    },
                                                    "amount": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "string"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "key",
                                                    "impressions",
                                                    "clicks",
                                                    "ctr_bp",
                                                    "amount"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "period",
                                        "role",
                                        "group_by",
                                        "totals",
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/earnings": {
            "get": {
                "operationId": "v1.earnings",
                "summary": "Veniturile: total c\u00e2\u0219tigat, \u00een p\u0103strare, disponibil, \u00een plat\u0103, plus istoricul pe ultimele 30 de zile",
                "tags": [
                    "Report"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "total": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "pending": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "available": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "payable": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "withdrawable": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {},
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "history": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "day": {
                                                                "type": "string"
                                                            },
                                                            "earned": {
                                                                "type": [
                                                                    "object",
                                                                    "null"
                                                                ],
                                                                "properties": {
                                                                    "amount_micros": {
                                                                        "type": "integer"
                                                                    },
                                                                    "currency": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "required": [
                                                                    "amount_micros",
                                                                    "currency"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "day",
                                                            "earned"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "pending",
                                                "available",
                                                "payable",
                                                "withdrawable",
                                                "history"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/payouts": {
            "get": {
                "operationId": "v1.payouts",
                "summary": "Istoricul retragerilor (cererea se face doar din panou, cu 2FA)",
                "tags": [
                    "Report"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "amount": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "iban": {
                                                        "type": "string"
                                                    },
                                                    "requested_at": {
                                                        "type": "string"
                                                    },
                                                    "paid_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "rejection_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "amount",
                                                    "status",
                                                    "iban",
                                                    "requested_at",
                                                    "paid_at",
                                                    "rejection_reason"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "request_payout_url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor",
                                        "request_payout_url"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/stats": {
            "get": {
                "operationId": "v1.partner.stats",
                "tags": [
                    "Report"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "period": {
                                            "type": "object",
                                            "properties": {
                                                "from": {
                                                    "type": "string"
                                                },
                                                "to": {
                                                    "type": "string"
                                                },
                                                "timezone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "from",
                                                "to",
                                                "timezone"
                                            ]
                                        },
                                        "group_by": {
                                            "type": "string"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "key": {
                                                        "type": "string"
                                                    },
                                                    "impressions": {
                                                        "type": "integer"
                                                    },
                                                    "clicks": {
                                                        "type": "integer"
                                                    },
                                                    "spend": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "commission": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "key",
                                                    "impressions",
                                                    "clicks",
                                                    "spend",
                                                    "commission"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "period",
                                        "group_by",
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/partner\/invoices": {
            "get": {
                "operationId": "v1.partner.invoices",
                "tags": [
                    "Report"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "number": {
                                                        "type": "string"
                                                    },
                                                    "period": {
                                                        "type": "object",
                                                        "properties": {
                                                            "from": {
                                                                "type": "string"
                                                            },
                                                            "to": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "from",
                                                            "to"
                                                        ]
                                                    },
                                                    "spend": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "commission": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount_micros": {
                                                                "type": "integer"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "amount_micros",
                                                            "currency"
                                                        ]
                                                    },
                                                    "commission_bp": {
                                                        "type": "integer"
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "enum": [
                                                            "paid",
                                                            "overdue",
                                                            "issued"
                                                        ]
                                                    },
                                                    "issued_at": {
                                                        "type": "string"
                                                    },
                                                    "due_at": {
                                                        "type": "string"
                                                    },
                                                    "paid_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "number",
                                                    "period",
                                                    "spend",
                                                    "commission",
                                                    "commission_bp",
                                                    "status",
                                                    "issued_at",
                                                    "due_at",
                                                    "paid_at"
                                                ]
                                            }
                                        },
                                        "balance": {
                                            "type": "object",
                                            "properties": {
                                                "owed": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {},
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "credit_limit": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "exposure": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "amount_micros": {
                                                            "type": "integer"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "amount_micros",
                                                        "currency"
                                                    ]
                                                },
                                                "suspended": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "owed",
                                                "credit_limit",
                                                "exposure",
                                                "suspended"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "balance"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites": {
            "get": {
                "operationId": "v1.sites.index",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.sites.store",
                "tags": [
                    "Site"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "domain": {
                                        "type": "string",
                                        "maxLength": 253
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "language": {
                                        "type": "string",
                                        "enum": [
                                            "ro",
                                            "ru",
                                            "en"
                                        ]
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 1,
                                        "maxItems": 5
                                    },
                                    "audience": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 1
                                    },
                                    "extra_domains": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string",
                                            "maxLength": 253
                                        },
                                        "maxItems": 20
                                    }
                                },
                                "required": [
                                    "domain",
                                    "name",
                                    "language",
                                    "categories",
                                    "audience"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "next_steps": {
                                            "type": "array",
                                            "prefixItems": [
                                                {
                                                    "type": "string"
                                                }
                                            ],
                                            "minItems": 1,
                                            "maxItems": 1
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_steps"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}": {
            "get": {
                "operationId": "v1.sites.show",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.sites.update",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "language": {
                                        "type": "string",
                                        "enum": [
                                            "ro",
                                            "ru",
                                            "en"
                                        ]
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 5
                                    },
                                    "audience": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.sites.destroy",
                "summary": "Arhivare (\u00a710.4): site-ul \u0219i zonele se opresc, istoricul r\u0103m\u00e2ne, domeniul se poate ad\u0103uga din nou",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/integration": {
            "get": {
                "operationId": "v1.sites.integration",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "site_script": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "script_detected": {
                                                    "type": "boolean"
                                                },
                                                "script_last_seen_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "allowed_domains": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "error": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "code": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "host": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "at": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "code",
                                                        "host",
                                                        "at"
                                                    ]
                                                },
                                                "zones": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "ads_txt": {
                                                    "type": "object",
                                                    "description": "ads.txt (\u00a711.7): r\u00e2ndul de publicat la https:domeniu\/ads.txt \u0219i rezultatul ultimei verific\u0103ri.",
                                                    "properties": {
                                                        "line": {
                                                            "type": "string"
                                                        },
                                                        "status": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "checked_at": {
                                                            "type": "null"
                                                        }
                                                    },
                                                    "required": [
                                                        "line",
                                                        "status",
                                                        "checked_at"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "site_script",
                                                "script_detected",
                                                "script_last_seen_at",
                                                "allowed_domains",
                                                "error",
                                                "zones",
                                                "ads_txt"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/verification": {
            "post": {
                "operationId": "v1.sites.verification",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "method": {
                                        "$ref": "#\/components\/schemas\/VerificationMethod"
                                    }
                                },
                                "required": [
                                    "method"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "method": {
                                                    "type": "string"
                                                },
                                                "value": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "explanation": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "method",
                                                "value",
                                                "location",
                                                "explanation"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/verification\/check": {
            "post": {
                "operationId": "v1.sites.verification.check",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "verified": {
                                                    "type": "boolean"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "explanation": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "verified",
                                                "status",
                                                "reason",
                                                "explanation"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/submit": {
            "post": {
                "operationId": "v1.sites.submit",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/settings": {
            "put": {
                "operationId": "v1.sites.settings",
                "tags": [
                    "Site"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "moderation_policy": {
                                        "$ref": "#\/components\/schemas\/ModerationPolicy"
                                    },
                                    "blocked_categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "blocked_advertisers": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "maxLength": 40
                                        },
                                        "maxItems": 500
                                    },
                                    "private_only": {
                                        "type": "boolean"
                                    }
                                },
                                "required": [
                                    "moderation_policy"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/webhook-endpoints": {
            "get": {
                "operationId": "v1.webhooks.index",
                "tags": [
                    "Webhook"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    },
                                                    "events": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "active": {
                                                        "type": "boolean"
                                                    },
                                                    "consecutive_failures": {
                                                        "type": "integer"
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "url",
                                                    "events",
                                                    "description",
                                                    "active",
                                                    "consecutive_failures",
                                                    "created_at"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.webhooks.store",
                "tags": [
                    "Webhook"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "url": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "events": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "banner.approved",
                                                "banner.rejected",
                                                "banner.changes_requested",
                                                "banner.publishers_rejected",
                                                "site.approved",
                                                "site.rejected",
                                                "site.suspended",
                                                "site.verification_lost",
                                                "approval.requested",
                                                "wallet.low_balance",
                                                "wallet.deposit_received",
                                                "wallet.adjusted",
                                                "payout.paid",
                                                "payout.rejected",
                                                "invoice.issued",
                                                "invoice.overdue",
                                                "partner.suspended",
                                                "support.replied",
                                                "zone.integration_detected",
                                                "zone.integration_error",
                                                "earnings.adjusted",
                                                "client.budget_low",
                                                "*"
                                            ]
                                        },
                                        "minItems": 1
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 200
                                    }
                                },
                                "required": [
                                    "url",
                                    "events"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "events": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "description": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "active": {
                                                    "type": "boolean"
                                                },
                                                "consecutive_failures": {
                                                    "type": "integer"
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "secret": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "url",
                                                "events",
                                                "description",
                                                "active",
                                                "consecutive_failures",
                                                "created_at",
                                                "secret"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/webhook-endpoints\/{webhook}": {
            "delete": {
                "operationId": "v1.webhooks.destroy",
                "tags": [
                    "Webhook"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/webhook-endpoints\/{webhook}\/test": {
            "post": {
                "operationId": "v1.webhooks.test",
                "summary": "Trimite un eveniment \u201eping\u201d ca s\u0103 testezi primirea \u0219i verificarea semn\u0103turii",
                "tags": [
                    "Webhook"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "event": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "attempts": {
                                                    "type": "integer"
                                                },
                                                "response_status": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ]
                                                },
                                                "last_error": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next_attempt_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "delivered_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "event",
                                                "status",
                                                "attempts",
                                                "response_status",
                                                "last_error",
                                                "next_attempt_at",
                                                "delivered_at",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/webhook-endpoints\/{webhook}\/deliveries": {
            "get": {
                "operationId": "v1.webhooks.deliveries",
                "tags": [
                    "Webhook"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "event": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "string"
                                                    },
                                                    "attempts": {
                                                        "type": "integer"
                                                    },
                                                    "response_status": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ]
                                                    },
                                                    "last_error": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "next_attempt_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "delivered_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "event",
                                                    "status",
                                                    "attempts",
                                                    "response_status",
                                                    "last_error",
                                                    "next_attempt_at",
                                                    "delivered_at",
                                                    "created_at"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/zones": {
            "get": {
                "operationId": "v1.zones.index",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.zones.store",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "size": {
                                        "type": "string",
                                        "maxLength": 16
                                    },
                                    "cpm": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "cpc": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                },
                                "required": [
                                    "name",
                                    "size"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/sites\/{site}\/zone-suggestions": {
            "get": {
                "operationId": "v1.zones.suggestions",
                "summary": "Zone recomandate pentru onboarding rapid, dup\u0103 tipul paginii (homepage, article, listing)",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "size": {
                                                        "type": "string"
                                                    },
                                                    "position": {
                                                        "type": "string"
                                                    },
                                                    "device": {
                                                        "type": "string"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "hint": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "size",
                                                    "position",
                                                    "device",
                                                    "label",
                                                    "hint"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/zones\/{zone}": {
            "get": {
                "operationId": "v1.zones.show",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "zone",
                        "in": "path",
                        "required": true,
                        "description": "The zone public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.zones.update",
                "summary": "Modificarea zonei: nume, pre\u021buri \u0219i regulile (\u00a75.5): devices (desktop, mobile), empty_behavior\n(collapse, keep_space), rotate (bannerul nou la intervalul platformei, doar c\u00e2t zona e vizibil\u0103),\nmax_banners (1\u20135, aplicat de motorul propriu \u00een faza B)",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "zone",
                        "in": "path",
                        "required": true,
                        "description": "The zone public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "cpm": {
                                        "type": "string"
                                    },
                                    "cpc": {
                                        "type": "string"
                                    },
                                    "devices": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "desktop",
                                                "mobile"
                                            ]
                                        },
                                        "minItems": 1
                                    },
                                    "empty_behavior": {
                                        "type": "string",
                                        "enum": [
                                            "collapse",
                                            "keep_space"
                                        ]
                                    },
                                    "max_banners": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 5
                                    },
                                    "rotate": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.zones.destroy",
                "summary": "Arhivare (\u00a710.4): zona se opre\u0219te \u00een motor; istoricul r\u0103m\u00e2ne",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "zone",
                        "in": "path",
                        "required": true,
                        "description": "The zone public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/zones\/{zone}\/code": {
            "get": {
                "operationId": "v1.zones.code",
                "summary": "Codul de integrare pentru zon\u0103 (anexa C), pe platforma cerut\u0103",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "zone",
                        "in": "path",
                        "required": true,
                        "description": "The zone public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "platform": {
                                                    "type": "string"
                                                },
                                                "site_script": {
                                                    "type": "string"
                                                },
                                                "site_placement": {
                                                    "type": "string"
                                                },
                                                "zone_element": {
                                                    "type": "string"
                                                },
                                                "zone_placement": {
                                                    "type": "string"
                                                },
                                                "spa_note": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "platform",
                                                "site_script",
                                                "site_placement",
                                                "zone_element",
                                                "zone_placement",
                                                "spa_note"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/zones\/{zone}\/integration\/check": {
            "post": {
                "operationId": "v1.zones.integration.check",
                "summary": "Verific\u0103 dac\u0103 zona livreaz\u0103: scriptul site-ului \u0219i elementul zonei au fost v\u0103zute pe site",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "zone",
                        "in": "path",
                        "required": true,
                        "description": "The zone public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "zone_id": {
                                                    "type": "string"
                                                },
                                                "script_detected": {
                                                    "type": "boolean"
                                                },
                                                "state": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last_seen_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "error": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "zone_id",
                                                "script_detected",
                                                "state",
                                                "last_seen_at",
                                                "error"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        },
        "\/zones\/{zone}\/status": {
            "post": {
                "operationId": "v1.zones.status",
                "tags": [
                    "Zone"
                ],
                "parameters": [
                    {
                        "name": "zone",
                        "in": "path",
                        "required": true,
                        "description": "The zone public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "status": {
                                        "$ref": "#\/components\/schemas\/ZoneStatus"
                                    }
                                },
                                "required": [
                                    "status"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "http": {
                "type": "http",
                "scheme": "bearer"
            }
        },
        "schemas": {
            "BudgetType": {
                "type": "string",
                "enum": [
                    "daily",
                    "lifetime"
                ],
                "title": "BudgetType"
            },
            "CampaignObjective": {
                "type": "string",
                "description": "Viziunea \u00a74.3: notorietate sau trafic.\n",
                "enum": [
                    "awareness",
                    "traffic"
                ],
                "title": "CampaignObjective"
            },
            "ModerationPolicy": {
                "type": "string",
                "description": "Viziunea \u00a75.4: implicit, bannerele aprobate de ads.codex apar automat; manual, a\u0219teapt\u0103 \u0219i aprobarea publisherului.\n",
                "enum": [
                    "auto",
                    "manual"
                ],
                "title": "ModerationPolicy"
            },
            "VerificationMethod": {
                "type": "string",
                "enum": [
                    "meta",
                    "file",
                    "dns"
                ],
                "title": "VerificationMethod"
            },
            "ZoneStatus": {
                "type": "string",
                "enum": [
                    "active",
                    "paused",
                    "archived"
                ],
                "title": "ZoneStatus"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            },
            "AuthenticationException": {
                "description": "Unauthenticated",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            },
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            }
        }
    }
}