# API reference

Every API call, grouped by resource, with its permission, parameters, body and response fields. The same content, machine-readable, is in the OpenAPI file.

[Download the OpenAPI file (JSON)](https://use-vega.com/desenvolvedores/openapi.json)

## How the API works

The base address is `https://use-vega.com/api/v1`. Every call carries the key in the `Authorization: Bearer vk_...` header. Reads are `GET`; paid actions and changes are `POST`. Answers are JSON, with field names in English and the data (campaign titles, stage names) as written in Vega.

Money always comes in Brazilian real cents, as an integer (`150000` is R$ 1,500.00). Dates and times come in ISO 8601, in UTC; dates without a time, like `2026-12-01`.

### Pages

Lists come in pages. Use `limit` (1 to 100, default 25) to choose the size. When `has_more` is `true`, the answer carries a `next_cursor`: send that value in `cursor` to get the next page. The cursor is opaque: do not build or change it.

_bash_

```
curl -s "https://use-vega.com/api/v1/deals?limit=100&cursor=<next_cursor da resposta anterior>" \
  -H "Authorization: Bearer vk_SUA_CHAVE"
```

### Only what changed

To keep a dashboard up to date without downloading everything again, filter by `updated_since` (date and time in ISO 8601). Each list says in the reference which filters it takes.

_bash_

```
curl -s "https://use-vega.com/api/v1/deals?updated_since=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer vk_SUA_CHAVE"
```

### Compact answers

The lists of campaigns, cards, deliverables, creators, payments and posts take `fields=compact`: each item comes with only its id, its name or handle, its status or stage and one date. The AI connector uses this form by default.

_bash_

```
curl -s "https://use-vega.com/api/v1/deals?campaign_id=7c2f9a30-91b4-4d0e-8a1d-2e6b6f0c4a10&fields=compact&limit=2" \
  -H "Authorization: Bearer vk_SUA_CHAVE"
```

_Response (200)_

```
{
  "object": "list",
  "data": [
    {
      "object": "deal",
      "id": "c4a1e7d2-9b3f-4e60-8d15-6f2a0b9c3e77",
      "campaign_id": "7c2f9a30-91b4-4d0e-8a1d-2e6b6f0c4a10",
      "creator_handle": "perfil.exemplo",
      "stage_name": "Contratados",
      "updated_at": "2026-11-16T10:00:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### ETag: ask before downloading

Every answer has an `ETag`. Send that value back in `If-None-Match`: if nothing changed, the answer is `304`, with no body.

_bash_

```
# 1ª chamada: guarde o valor do cabeçalho ETag inteiro, com W/ e as aspas
# (por exemplo: ETag: W/"3f1c9a7e")
curl -si https://use-vega.com/api/v1/campaigns -H "Authorization: Bearer vk_SUA_CHAVE"

# Próximas chamadas: mande esse valor exatamente como veio; se nada mudou,
# a resposta é 304 e vem sem corpo
curl -si https://use-vega.com/api/v1/campaigns \
  -H "Authorization: Bearer vk_SUA_CHAVE" \
  -H 'If-None-Match: W/"3f1c9a7e"'
```

### Repeat without paying or changing twice

Every `POST` carries the `Idempotency-Key` header with a new UUID (without it, the answer is `400`). If the connection drops and you do not know whether the call arrived, repeat it with the same value: Vega returns the same result, charging and changing nothing again, and a repeated change comes with the `Idempotent-Replayed: true` header. The same value with a different request answers `409`. In the AI connector, the `idempotency_key` argument is optional: Vega creates one when it is missing.

### Waiting for a paid action

A search takes about 30 seconds and a report under a minute. There are three ways to wait:

- **`wait`:** send `?wait=` with up to 50 seconds and the answer comes only when it finishes (or the time runs out). On the API the default is 0; on the AI connector, 45.
- **Ask again:** while it runs, the answer is `202`, with the address in `Location` and `Retry-After` (3 seconds today). Reading spends no credits.
- **Webhook:** subscribe to `creator_search.ready`, `creator_search.failed`, `creator_report.ready` and `creator_report.failed` (see [Get notified](https://use-vega.com/en/desenvolvedores#receber-avisos)).

## Me

### Who am I

`GET /api/v1/me` · `me`

Shows the company, the plan, the key or app making the call, its permissions, the limit of calls per minute and, in features, what is switched on for the company (reading, searching and generating reports, changing campaigns). The best first call to test a key.

**Permission:** None: any key can call it.

**Parameters**

No parameters.

**Response**

- `200` → `Me`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Campaigns

### List campaigns

`GET /api/v1/campaigns` · `listCampaigns`

The company's campaigns, with each one's stages, most recently changed first. The status is draft (rascunho), published (publicada) or closed (encerrada). The q filter looks for the campaign's title.

**Permission:** `campaigns:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `status` | In the URL | `"rascunho" \\| "publicada" \\| "encerrada"` | Only items with this status. |
| `updated_since` | In the URL | `string (date-time)` | Only items changed at or after this instant (ISO 8601). |
| `q` | In the URL | `string` | Text to match (2 to 80 characters, a literal substring, case-insensitive). |
| `fields` | In the URL | `"full" \\| "compact"` | `full` (default) or `compact` (the `<Resource>Compact` items). |

**Response**

- `200` → `CampaignList \| CampaignCompactList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a campaign

`GET /api/v1/campaigns/{id}` · `getCampaign`

One campaign by its id, with its stages.

**Permission:** `campaigns:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Campaign`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Campaign summary

`GET /api/v1/campaigns/{id}/summary` · `getCampaignSummary`

One campaign at a glance: cards by stage, deliverables by status, post metrics, sales, coupons and what needs attention. Each block appears only with its permission.

**Permission:** `campaigns:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `CampaignSummary`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Add a creator to a campaign

`POST /api/v1/campaigns/{id}/deals` · `addDealToCampaign`

Creates a card for a creator in the campaign's first stage, as "Add creator" does in the app. Needs a key with an action permission; nothing here pays anyone.

**Permission:** `deals:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "creator_id": {
      "description": "A creator id (from list_creators, find or a creator search result).",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "platform": {
      "description": "With handle: the network of the profile.",
      "type": "string",
      "enum": [
        "instagram",
        "tiktok",
        "youtube"
      ]
    },
    "handle": {
      "description": "With platform: the profile handle, with or without @.",
      "type": "string",
      "minLength": 1,
      "maxLength": 101
    },
    "name": {
      "description": "With platform + handle: the creator's display name, if known.",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "additionalProperties": false
}
```

**Response**

- `201` → `DealWriteResult`: Created (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Send sales

`POST /api/v1/campaigns/{id}/sales` · `sendSales`

Sends the campaign's sales for its open cycle, one row per coupon or card, the same way the sales webhook does. The answer is 202; follow it through the sales delivery.

**Permission:** `sales:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "rows": {
      "minItems": 1,
      "maxItems": 5000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "coupon": {
            "description": "The coupon code the sale used.",
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "deal_id": {
            "description": "Or the deal the sale belongs to.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "sales_cents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000000000,
            "description": "Sales in cents (BRL)."
          }
        },
        "required": [
          "sales_cents"
        ],
        "additionalProperties": false
      },
      "description": "The sales, one row per coupon code or deal: coupon or deal_id, and sales_cents (BRL cents). At most 5000 rows."
    }
  },
  "required": [
    "rows"
  ],
  "additionalProperties": false
}
```

**Response**

- `202` → `SalesDelivery`: Accepted: the change is pending (a review waiting for approval, sales still being processed).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Get the content approval

`GET /api/v1/campaigns/{id}/content-approval` · `getCampaignContentApproval`

How the campaign's content is approved: Fully automatic, Automatic with manual approval or Fully manual, the company default, whether Vega read the guidelines, the credits each video checked costs, and the rules. Needs Monitoramento in the plan.

**Permission:** `campaigns:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `ContentApproval`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Set the content approval

`PUT /api/v1/campaigns/{id}/content-approval` · `setContentApprovalMode`

Chooses how the campaign's content is approved, as the app's panel does. The two checking settings spend the company's credits per video checked; photos and text are free. The key's responsible person needs to edit automations and, for those two, to use credits.

**Permission:** `content_approval:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "fully_automatic",
        "automatic_with_manual_approval",
        "fully_manual"
      ],
      "description": "fully_automatic = Vega approves or asks for changes by itself, only exceptions reach a person; automatic_with_manual_approval = Vega checks and proposes, a person confirms each piece of content; fully_manual = Vega does not check, a person decides everything. The first two spend one credit per video checked."
    }
  },
  "required": [
    "mode"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `ContentApprovalWriteResult`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Add a rule

`POST /api/v1/campaigns/{id}/content-approval/rules` · `createContentApprovalRule`

Adds a company rule, as "Nova condição" in the app: a condition from the closed list, its value and what Vega does. At most 20 rules per campaign.

**Permission:** `content_approval:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "condition": {
      "type": "string",
      "enum": [
        "says",
        "does_not_say",
        "caption_contains",
        "caption_does_not_contain",
        "mentions",
        "no_paid_partnership_label",
        "past_deadline",
        "live_less_than_days",
        "video_shorter_than_seconds"
      ],
      "description": "The condition, from the closed list a company may add. says / does_not_say are judged on what is said in the audio and written in the caption."
    },
    "value": {
      "description": "What the condition checks: a sentence of 3 to 200 characters for says / does_not_say, a term for caption_contains / caption_does_not_contain, an @handle for mentions, a whole number as text for live_less_than_days (1 to 90) and video_shorter_than_seconds (1 to 600); null or absent for no_paid_partnership_label and past_deadline.",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "effect": {
      "type": "string",
      "enum": [
        "approve",
        "attention",
        "refuse"
      ],
      "description": "What Vega does: approve (the content must pass it to be approved), attention (a person looks), refuse (Vega asks the creator for changes, in fully_automatic)."
    }
  },
  "required": [
    "condition",
    "effect"
  ],
  "additionalProperties": false
}
```

**Response**

- `201` → `ContentApprovalWriteResult`: Created (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Change a rule

`PATCH /api/v1/campaigns/{id}/content-approval/rules/{ruleId}` · `updateContentApprovalRule`

Turns a rule on or off, changes what it does, or rewrites a guidelines or company rule. A campaign rule only turns on, off and changes its effect.

**Permission:** `content_approval:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `ruleId` · required | In the path | `string` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "description": "Turn the rule on or off.",
      "type": "boolean"
    },
    "effect": {
      "type": "string",
      "enum": [
        "approve",
        "attention",
        "refuse"
      ],
      "description": "What Vega does: approve (the content must pass it to be approved), attention (a person looks), refuse (Vega asks the creator for changes, in fully_automatic)."
    },
    "condition": {
      "description": "A new condition (guidelines and company rules only; send value with it when the condition takes one).",
      "type": "string",
      "enum": [
        "says",
        "does_not_say",
        "caption_contains",
        "caption_does_not_contain",
        "mentions",
        "no_paid_partnership_label",
        "past_deadline",
        "live_less_than_days",
        "video_shorter_than_seconds"
      ]
    },
    "value": {
      "description": "What the condition checks: a sentence of 3 to 200 characters for says / does_not_say, a term for caption_contains / caption_does_not_contain, an @handle for mentions, a whole number as text for live_less_than_days (1 to 90) and video_shorter_than_seconds (1 to 600); null or absent for no_paid_partnership_label and past_deadline.",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}
```

**Response**

- `200` → `ContentApprovalWriteResult`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Remove a rule

`DELETE /api/v1/campaigns/{id}/content-approval/rules/{ruleId}` · `deleteContentApprovalRule`

Removes a guidelines or company rule. A campaign rule is not removed: switch it off.

**Permission:** `content_approval:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `ruleId` · required | In the path | `string` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```

**Response**

- `200` → `ContentApprovalWriteResult`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

## Deals

### List cards (deals)

`GET /api/v1/deals` · `listDeals`

The cards between the company and its creators: the stage, the creator (name, handle and networks), the dates of acceptance and exit, the contract (status and dates), how many deliverables are in each status, the coupon codes and the post metrics measured through the creator's own connected account. With the payments:read permission, also the agreed value and how much has been billed and paid. Filter by campaign, stage, creator, outcome (open, won, paused, lost) or the creator's handle or name (q).

**Permission:** `deals:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `stage_id` | In the URL | `string (uuid)` | Only deals in this stage (etapa). |
| `updated_since` | In the URL | `string (date-time)` | Only items changed at or after this instant (ISO 8601). |
| `q` | In the URL | `string` | Text to match (2 to 80 characters, a literal substring, case-insensitive). |
| `creator_id` | In the URL | `string (uuid)` |  |
| `outcome` | In the URL | `"open" \\| "won" \\| "paused" \\| "lost"` |  |
| `fields` | In the URL | `"full" \\| "compact"` | `full` (default) or `compact` (the `<Resource>Compact` items). |

**Response**

- `200` → `DealList \| DealCompactList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a card

`GET /api/v1/deals/{id}` · `getDeal`

One card by its id.

**Permission:** `deals:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Deal`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Move a card

`POST /api/v1/deals/{id}/move` · `moveDeal`

Moves the card to another stage under the app's rules (required fields, exits, automations). Stages that release to the fatura or send a contract stay in the app.

**Permission:** `deals:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "stage_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "The destination stage (an id from the campaign's stages)."
    },
    "expected_stage_id": {
      "description": "The stage you believe the deal is in now; if it moved meanwhile the call answers 409 conflict and changes nothing.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "exit": {
      "description": "Only when stage_id is an exit stage (paused or lost): reason (why the deal leaves) and an optional text.",
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "enum": [
            "criador_recusou",
            "marca_desistiu",
            "valor",
            "prazo",
            "sem_resposta",
            "outro"
          ],
          "description": "Why the deal leaves (required when stage_id is a paused or lost stage)."
        },
        "text": {
          "description": "An optional note on the exit.",
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        }
      },
      "required": [
        "reason"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "stage_id"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `DealWriteResult`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Add a note to a card

`POST /api/v1/deals/{id}/notes` · `addDealNote`

Adds a note to the card, seen only by the company's team.

**Permission:** `deals:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "The note, 1 to 4000 characters."
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `DealWriteResult`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### Create a coupon code

`POST /api/v1/deals/{id}/coupon-codes` · `createCouponCode`

Creates a coupon code for the card's creator under one of the company's benefits. On a Vega benefit the code is born to be created in the store and, without a code, Vega generates one; on a benefit with the store's own codes, the code is required, kept as sent and born already in the store.

**Permission:** `coupons:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "benefit_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "The benefit (the benefit id on a coupon from list_coupons)."
    },
    "code": {
      "description": "Your own code. Vega benefits: 3 to 24 letters A-Z and digits 0-9 (upper-cased). Benefits with the store's own codes: 3 to 24 letters, digits, - or _, kept exactly as sent (required there). Absent = Vega generates one.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{3,24}$"
    }
  },
  "required": [
    "benefit_id"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `Coupon`: Changed (or replayed: see `Idempotent-Replayed`).
- `201` → `Coupon`: Created (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

## Deliverables

### List deliverables

`GET /api/v1/deliverables` · `listDeliverables`

The deliverables agreed on the cards: due date, status, the published post's address and the post's verification. The post metrics are on the card.

**Permission:** `deliverables:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `deal_id` | In the URL | `string (uuid)` | Only items of this deal. |
| `status` | In the URL | `"pending" \\| "submitted" \\| "in_review" \\| "changes_requested" \\| "approved" \\| "published" \\| "verified" \\| "post_removed"` | Only items with this status. |
| `updated_since` | In the URL | `string (date-time)` | Only items changed at or after this instant (ISO 8601). |
| `fields` | In the URL | `"full" \\| "compact"` | `full` (default) or `compact` (the `<Resource>Compact` items). |

**Response**

- `200` → `DeliverableList \| DeliverableCompactList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a deliverable

`GET /api/v1/deliverables/{id}` · `getDeliverable`

One deliverable by its id.

**Permission:** `deliverables:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Deliverable`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Review a deliverable

`POST /api/v1/deliverables/{id}/review` · `reviewDeliverable`

Approves the submitted deliverable or asks for changes with a comment. When the company's rules need evidence or a second person, the approval stays pending. Approving never pays anyone.

**Permission:** `deliverables:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "decision": {
      "type": "string",
      "enum": [
        "approve",
        "request_changes"
      ],
      "description": "approve, or request_changes (needs comment)."
    },
    "comment": {
      "description": "What to change (required with request_changes), shown to the creator.",
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    }
  },
  "required": [
    "decision"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `DeliverableReviewResult`: Changed (or replayed: see `Idempotent-Replayed`).
- `202` → `DeliverableReviewResult`: Accepted: the change is pending (a review waiting for approval, sales still being processed).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

## Coupons

### List coupons

`GET /api/v1/coupons` · `listCoupons`

The coupon codes issued to creators, with each one's benefit and status.

**Permission:** `coupons:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `deal_id` | In the URL | `string (uuid)` | Only items of this deal. |
| `benefit_id` | In the URL | `string (uuid)` | Only coupons of this benefit. |

**Response**

- `200` → `CouponList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a coupon

`GET /api/v1/coupons/{id}` · `getCoupon`

One coupon code by its id.

**Permission:** `coupons:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Coupon`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Issue a coupon code

`POST /api/v1/coupons/{id}/issue` · `issueCouponCode`

Marks a draft coupon code as issued, the same change the app allows by hand.

**Permission:** `coupons:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```

**Response**

- `200` → `Coupon`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

## Sales

### List sales sheets

`GET /api/v1/sales` · `listSales`

Each campaign's sales cycles, with total sales and commission in cents. The lines come when you read one cycle.

**Permission:** `sales:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `cycle_key` | In the URL | `string` | Only this cycle (`YYYY-MM`). |

**Response**

- `200` → `SalesCycleList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a sales sheet

`GET /api/v1/sales/{id}` · `getSalesCycle`

One sales cycle with its lines: card, coupon, sales and commission.

**Permission:** `sales:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `SalesCycle`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Send orders

`POST /api/v1/sales/orders` · `sendOrders`

Records in the company's sales the orders made with the creators' coupon codes, up to 1000 per call: your order number, the code, the paid day and what the buyer paid for the products after the discount, without freight, in cents. Each order waits "a confirmar" for the benefit's days, then counts as confirmed; cancelled or refunded meanwhile, it is voided. Sending the same order again updates an order still waiting, never a confirmed one. A refused order (two Vega codes, an unknown code, a number that looks like an e-mail, CPF or CNPJ) comes back by its index and the others stay. Also needs the orders switch on for the company. Commission reaches the fatura only through the cutoff planilha the company signs.

**Permission:** `sales:write`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "orders": {
      "minItems": 1,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "order_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:/-]{1,64}$",
            "description": "Your order reference (1 to 64 of A-Z a-z 0-9 . _ : / -). Never an e-mail, a CPF or a CNPJ: those are refused."
          },
          "coupon": {
            "description": "The coupon code on the order.",
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "coupons": {
            "description": "Or every code on the order (two Vega codes on one order are refused).",
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          "paid_on": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The São Paulo day the order was paid (YYYY-MM-DD)."
          },
          "net_cents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000000000,
            "description": "What the buyer paid for the products after the coupon, in cents (BRL), without freight."
          },
          "status": {
            "type": "string",
            "enum": [
              "paid",
              "cancelled",
              "refunded"
            ]
          },
          "refunded_cents": {
            "description": "A partial refund, in cents.",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "via_link": {
            "description": "The order came through the creator's Vega link (evidence only).",
            "type": "boolean"
          }
        },
        "required": [
          "order_id",
          "paid_on",
          "net_cents",
          "status"
        ],
        "additionalProperties": false
      },
      "description": "The orders, 1 to 1000. A refused order is answered by its index in this list; the others are recorded."
    }
  },
  "required": [
    "orders"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `SalesOrderBatch`: Changed (or replayed: see `Idempotent-Replayed`).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope), `module_not_in_plan`, `api_not_enabled` or `write_not_allowed` (the person responsible for the credential can no longer make this change).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource moved meanwhile, the same Idempotency-Key was used for another request, the creator is already in the campaign, the code is taken), `requires_app` (the change moves money or sends a contract: details.stage, details.reason) or `feature_unavailable` (changes through the API are not switched on for the company: details.feature `workflow_writes`).
- `422` → `Error`: `refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### List sales entries

`GET /api/v1/sales/entries` · `listSalesEntries`

The sales ledger: one line per order, period total or adjustment, with its state (to be confirmed, confirmed, locked, voided), the channel, the campaign whose card carried the code on the day and the agreed commission. No buyer data, no order number and no fee. Filter by state, campaign, creator or from a day on.

**Permission:** `sales:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `state` | In the URL | `"pendente" \\| "confirmado" \\| "travado" \\| "anulado"` |  |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `creator_id` | In the URL | `string (uuid)` |  |
| `since` | In the URL | `string` |  |

**Response**

- `200` → `SalesEntryList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Faturas

### List faturas

`GET /api/v1/faturas` · `listFaturas`

The company's monthly faturas (bills): status (open, partial or paid), due date and totals in cents.

**Permission:** `faturas:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `status` | In the URL | `"aberta" \\| "parcial" \\| "paga"` | Only items with this status. |
| `cycle_key` | In the URL | `string` | Only this cycle (`YYYY-MM`). |

**Response**

- `200` → `FaturaList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a fatura

`GET /api/v1/faturas/{id}` · `getFatura`

One fatura by its id.

**Permission:** `faturas:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Fatura`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Reports

### List reports

`GET /api/v1/reports` · `listReports`

The reports shared with the whole company: name, type and a link that opens the report inside Vega. A report's table comes from "See a report's data". Drafts, templates and private reports do not appear.

**Permission:** `reports:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |

**Response**

- `200` → `ReportList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a report

`GET /api/v1/reports/{id}` · `getReport`

One report visible to the company, by its id.

**Permission:** `reports:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Report`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a report's data

`GET /api/v1/reports/{id}/data` · `getReportData`

A company report's table, the same data as its CSV export: columns and rows. Columns with bought data are left out.

**Permission:** `reports:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `ReportData`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `422` → `Error`: `refused`: the report cannot be served through the API. details.reason: `report_source_not_served` (a Publicações report), `report_filter_not_served` (a filter or period the API cannot apply) or `report_config_not_served`. Nothing is served.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Notas-fiscais

### List tax invoices

`GET /api/v1/notas-fiscais` · `listNotasFiscais`

The service tax invoices (NFS-e, notas fiscais) issued to the company: each creator's invoice for a paid charge of the fatura and the invoice for Vega's fee. Carries the issuer (the invoice's name and CNPJ), the amount in cents, the service date, the status and the invoice's reference at the issuer (provider_reference). The pdf_url and xml_url links download the invoice's PDF and XML.

**Permission:** `notas_fiscais:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `period` | In the URL | `string` | Only notas whose competence date falls in this month (`YYYY-MM`, São Paulo time). |
| `fatura_id` | In the URL | `string (uuid)` | Only notas of this fatura. |
| `issuer_kind` | In the URL | `"vega" \\| "creator"` | Only notas issued by Vega (`vega`) or by a creator (`creator`). |
| `status` | In the URL | `"pendente" \\| "preparado" \\| "enviado" \\| "emitido" \\| "rejeitado" \\| "bloqueado" \\| "erro_provedor" \\| "reenvio_agendado"` | Only items with this status. |

**Response**

- `200` → `NotaFiscalList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a tax invoice

`GET /api/v1/notas-fiscais/{id}` · `getNotaFiscal`

One tax invoice by its id. The pdf_url and xml_url links download the file with the same key: the answer redirects (302) to an address valid for 60 seconds. The links are empty while Vega does not hold the file.

**Permission:** `notas_fiscais:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `NotaFiscal`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Download the PDF of a nota fiscal

`GET /api/v1/notas-fiscais/{id}/pdf` · `notaFiscalPdf`

Redirects (302) to a signed URL valid for 60 seconds. Answers 409 file_unavailable while Vega holds no PDF (the nota exists only at the issuer: see provider / provider_reference) or when the file fails Vega’s file check.

Scope: `notas_fiscais:read`.

**Permission:** `notas_fiscais:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `302`: Redirect to a signed URL of the file (`application/pdf`), valid for 60 seconds.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `file_unavailable`: Vega holds no such file for this nota yet, or the file failed Vega’s file check.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Download the XML of a nota fiscal

`GET /api/v1/notas-fiscais/{id}/xml` · `notaFiscalXml`

Redirects (302) to a signed URL valid for 60 seconds. Answers 409 file_unavailable while Vega holds no XML or when the file fails Vega’s file check.

Scope: `notas_fiscais:read`.

**Permission:** `notas_fiscais:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `302`: Redirect to a signed URL of the file (`application/xml`), valid for 60 seconds.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `file_unavailable`: Vega holds no such file for this nota yet, or the file failed Vega’s file check.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Creators

### List creators

`GET /api/v1/creators` · `listCreators`

The creators the company works with (every creator with a card in one of its campaigns): name, handle, networks, profile links, whether they joined Vega and how many cards they have. No follower or audience numbers.

**Permission:** `creators:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `q` | In the URL | `string` | Text to match (2 to 80 characters, a literal substring, case-insensitive). |
| `platform` | In the URL | `"instagram" \\| "tiktok" \\| "youtube"` |  |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `updated_since` | In the URL | `string (date-time)` | Only items changed at or after this instant (ISO 8601). |
| `fields` | In the URL | `"full" \\| "compact"` | `full` (default) or `compact` (the `<Resource>Compact` items). |

**Response**

- `200` → `CreatorList \| CreatorCompactList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a creator

`GET /api/v1/creators/{id}` · `getCreator`

One creator by id, with each of their cards in the company (campaign and stage).

**Permission:** `creators:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Creator`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Payments

### List payments

`GET /api/v1/payments` · `listPayments`

Each creator's part of the company's faturas: gross amount, Vega's fee, the fees and the total in cents, with status and dates. Read-only: nothing here pays anyone.

**Permission:** `payments:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `fatura_id` | In the URL | `string (uuid)` | Only notas of this fatura. |
| `creator_id` | In the URL | `string (uuid)` |  |
| `status` | In the URL | `"pendente" \\| "aguardando_conta" \\| "emitida" \\| "paga" \\| "estornada" \\| "falhou" \\| "aguardando_repasse" \\| "adiada"` | Only items with this status. |
| `cycle_key` | In the URL | `string` | Only this cycle (`YYYY-MM`). |
| `paid_since` | In the URL | `string (date-time)` |  |
| `fields` | In the URL | `"full" \\| "compact"` | `full` (default) or `compact` (the `<Resource>Compact` items). |

**Response**

- `200` → `PaymentList \| PaymentCompactList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a payment

`GET /api/v1/payments/{id}` · `getPayment`

One payment by id, with its lines (fixed, variable, commission, prize and fees).

**Permission:** `payments:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Payment`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Posts

### List Monitoramento posts

`GET /api/v1/posts` · `listPosts`

The posts Vega captured for the company (campaign hashtags and mentions, monitored partners). Metrics come only when Vega or the creator's own connected account measured them.

**Permission:** `monitoring:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `creator_id` | In the URL | `string (uuid)` |  |
| `platform` | In the URL | `"instagram" \\| "tiktok" \\| "youtube"` |  |
| `source` | In the URL | `"campaign_tag" \\| "partner_monitor"` |  |
| `posted_since` | In the URL | `string (date-time)` |  |
| `hashtag` | In the URL | `string` |  |
| `fields` | In the URL | `"full" \\| "compact"` | `full` (default) or `compact` (the `<Resource>Compact` items). |

**Response**

- `200` → `PostList \| PostCompactList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a post

`GET /api/v1/posts/{id}` · `getPost`

One captured post by id.

**Permission:** `monitoring:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Post`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Gamification-programs

### List Gamificação programs

`GET /api/v1/gamification-programs` · `listGamificationPrograms`

The company's competitions and bonuses: period, repetition, whether invites went out and how many creators joined.

**Permission:** `gamification:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `kind` | In the URL | `"competicao" \\| "bonus"` |  |

**Response**

- `200` → `GamificationProgramList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a Gamificação program

`GET /api/v1/gamification-programs/{id}` · `getGamificationProgram`

One program by id, with its confirmed cycles and each creator's prize.

**Permission:** `gamification:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `GamificationProgram`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Events

### List the Agenda

`GET /api/v1/events` · `listEvents`

The company's Agenda in a date range: its own events, the open events approved by Vega and the campaigns' periods.

**Permission:** `agenda:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `from` | In the URL | `string` |  |
| `to` | In the URL | `string` |  |
| `kind` | In the URL | `"company_event" \\| "vega_event" \\| "campaign"` |  |

**Response**

- `200` → `AgendaEventList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Overview

### What needs attention

`GET /api/v1/overview` · `getOverview`

The company at a glance: deliverables to review, late deliverables, cards waiting for a signed contract, the open fatura and the credit balance. Each block appears only with its permission.

**Permission:** None: any key can call it.

**Parameters**

No parameters.

**Response**

- `200` → `Overview`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Search

### Find

`GET /api/v1/search` · `search`

Looks up campaigns by title and creators and cards by handle or name, up to 10 of each. Use it to turn a name into an id.

**Permission:** None: any key can call it.

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `q` · required | In the URL | `string` | Text to match (2 to 80 characters, a literal substring, case-insensitive). |

**Response**

- `200` → `SearchResults`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Sales-deliveries

### List sales deliveries

`GET /api/v1/sales-deliveries` · `listSalesDeliveries`

Every batch of sales sent to Vega (by the sales webhook or the API), with its outcome and error codes.

**Permission:** `sales:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `campaign_id` | In the URL | `string (uuid)` | Only items of this campaign. |
| `status` | In the URL | `"processing" \\| "accepted" \\| "rejected"` | Only items with this status. |

**Response**

- `200` → `SalesDeliveryList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a sales delivery

`GET /api/v1/sales-deliveries/{id}` · `getSalesDelivery`

One batch of sales: processing, accepted or rejected, the rows matched and ignored and the error codes by line.

**Permission:** `sales:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `SalesDelivery`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Credits

### See the balance and the prices

`GET /api/v1/credits` · `getCredits`

How many credits the company has now, how many the plan gives each month, what each paid action costs and the link to the Wallet to buy more. Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

No parameters.

**Response**

- `200` → `Credits`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Creator-searches

### List searches

`GET /api/v1/creator-searches` · `listCreatorSearches`

The Vega AI searches of the last 90 days, made in Vega or through the API, newest first. Filter by status (searching, ready or failed). Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `status` | In the URL | `"searching" \\| "ready" \\| "failed"` | Only items with this status. |

**Response**

- `200` → `CreatorSearchList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Run a search

`POST /api/v1/creator-searches` · `createCreatorSearch`

Describe the profile you are looking for, in Portuguese for the best results, and the Vega AI search returns the 20 closest creators. You can filter by network, follower range, minimum engagement, language and city. Spends credits. The same search asked again by the same key within 2 minutes is free, and repeating the same Idempotency-Key never charges twice. It takes about 30 seconds: the answer is 202 while searching, or 200 if it finished within wait.

**Permission:** `credits:spend`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |
| `wait` | In the URL | `integer` |  |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "minLength": 3,
      "maxLength": 500,
      "description": "The creator profile in plain words, in Portuguese for best results (e.g. \"moda praia feminina no Rio\")."
    },
    "platforms": {
      "description": "Networks to search; absent = all three.",
      "minItems": 1,
      "maxItems": 3,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "instagram",
          "tiktok",
          "youtube"
        ]
      }
    },
    "min_followers": {
      "description": "Drop creators with fewer followers.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "max_followers": {
      "description": "Drop creators with more followers.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "min_engagement_rate": {
      "description": "Minimum engagement rate as a fraction (0.03 = 3 %).",
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "language": {
      "description": "Language the creator posts in (ISO 639-1).",
      "type": "string",
      "enum": [
        "pt",
        "en",
        "es"
      ]
    },
    "city": {
      "description": "A Brazilian city name (e.g. \"São Paulo\"); drops only creators measured elsewhere.",
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    }
  },
  "required": [
    "description"
  ],
  "additionalProperties": false
}
```

**Response**

- `200` → `CreatorSearchCharged`: Finished within `wait`, or nothing new was started (same Idempotency-Key, a repeat within 2 minutes, a report reused): see `billing.charged`.
- `202` → `CreatorSearchCharged`: Started and still running: poll the URL in `Location` (GET) after `Retry-After` seconds.
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `402` → `Error`: `insufficient_credits` (details: credits_needed, balance, next_step, and buy_url when the company buys credits in the app; without it, details.who_can_fix says who adds them) or `trial_limit` (details: reason).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource is not in a state that allows this, e.g. more results of a search still searching) or `feature_unavailable` (searches and reports are not switched on for the company: details.feature `paid_data_actions` for the whole group; details.next_step).
- `422` → `Error`: `profile_unavailable`: the profile does not exist, is private or was removed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### See a search

`GET /api/v1/creator-searches/{id}` · `getCreatorSearch`

A search and the creators the company has already paid to see, by relevance. The numbers (followers, engagement, niche and city) appear only on profiles Vega measured itself; on the others, metrics is null. Ordering by followers or engagement puts the profiles Vega measured first, and the others after them, by relevance. While the search runs, the answer carries Retry-After. Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `order` | In the URL | `"relevance" \\| "followers" \\| "engagement"` |  |

**Response**

- `200` → `CreatorSearch`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See more results

`POST /api/v1/creator-searches/{id}/more` · `moreCreatorSearch`

20 more creators of a ready search. Spends credits. The search's next field says whether more can be asked for and what it costs; when Vega has to search again, the answer is 202 until it finishes. If a request for more results is already running, the answer is that same request, free.

**Permission:** `credits:spend`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |
| `wait` | In the URL | `integer` |  |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```

**Response**

- `200` → `CreatorSearchCharged`: Finished within `wait`, or nothing new was started (same Idempotency-Key, a repeat within 2 minutes, a report reused): see `billing.charged`.
- `202` → `CreatorSearchCharged`: Started and still running: poll the URL in `Location` (GET) after `Retry-After` seconds.
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `402` → `Error`: `insufficient_credits` (details: credits_needed, balance, next_step, and buy_url when the company buys credits in the app; without it, details.who_can_fix says who adds them) or `trial_limit` (details: reason).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource is not in a state that allows this, e.g. more results of a search still searching) or `feature_unavailable` (searches and reports are not switched on for the company: details.feature `paid_data_actions` for the whole group; details.next_step).
- `422` → `Error`: `profile_unavailable`: the profile does not exist, is private or was removed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

## Creator-reports

### List creator reports

`GET /api/v1/creator-reports` · `listCreatorReports`

The simplified reports of the last 90 days, made in Vega or through the API, with the full document once ready. Filter by network, profile or status. Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |
| `platform` | In the URL | `"instagram" \\| "tiktok" \\| "youtube"` |  |
| `handle` | In the URL | `string` |  |
| `status` | In the URL | `"generating" \\| "ready" \\| "failed"` | Only items with this status. |

**Response**

- `200` → `CreatorReportList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Generate a creator report

`POST /api/v1/creator-reports` · `createCreatorReport`

Generates the simplified report of an Instagram, TikTok or YouTube profile: send the network and the handle, or the creator_id of a search result. Spends credits. If a ready report of that profile less than 90 days old exists, or one is being generated, it comes back free (refresh: true asks for a new one and charges again). It takes under a minute: the answer is 202 while generating.

**Permission:** `credits:spend`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `Idempotency-Key` · required | In a header | `string (uuid)` | A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice. |
| `wait` | In the URL | `integer` |  |

**Body (JSON)**

```json
{
  "type": "object",
  "properties": {
    "platform": {
      "description": "With handle: the network of the profile.",
      "type": "string",
      "enum": [
        "instagram",
        "tiktok",
        "youtube"
      ]
    },
    "handle": {
      "description": "With platform: the profile handle, with or without @.",
      "type": "string",
      "minLength": 1,
      "maxLength": 101
    },
    "creator_id": {
      "description": "Instead of platform + handle: a creator_id from a search result.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "refresh": {
      "description": "true = generate a new report even if a ready one is less than 90 days old (charged again).",
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
```

**Response**

- `200` → `CreatorReportCharged`: Finished within `wait`, or nothing new was started (same Idempotency-Key, a repeat within 2 minutes, a report reused): see `billing.charged`.
- `202` → `CreatorReportCharged`: Started and still running: poll the URL in `Location` (GET) after `Retry-After` seconds.
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `402` → `Error`: `insufficient_credits` (details: credits_needed, balance, next_step, and buy_url when the company buys credits in the app; without it, details.who_can_fix says who adds them) or `trial_limit` (details: reason).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `conflict` (the resource is not in a state that allows this, e.g. more results of a search still searching) or `feature_unavailable` (searches and reports are not switched on for the company: details.feature `paid_data_actions` for the whole group; details.next_step).
- `422` → `Error`: `profile_unavailable`: the profile does not exist, is private or was removed.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.
- `503` → `Error`: `temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.

### See a creator report

`GET /api/v1/creator-reports/{id}` · `getCreatorReport`

A simplified report: who the profile is, how its posts perform, the brands it has mentioned, the audience quality, on TikTok a sample of followers measured by Vega, and the history (Vega's own follower readings, growth over 30 and 90 days and engagement by month). Available for 90 days. Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `CreatorReport`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Creator-lists

### List saved lists

`GET /api/v1/creator-lists` · `listCreatorLists`

The creator lists saved in Prospecting (Saved lists), without their creators. Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |

**Response**

- `200` → `SavedCreatorListList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### See a saved list

`GET /api/v1/creator-lists/{id}` · `getCreatorList`

One saved list with its creators: network, handle and name, nothing else. Spends no credits.

**Permission:** `prospecting:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `SavedCreatorList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `409` → `Error`: `feature_unavailable`: this group of operations is not switched on for the company yet (details.feature: `paid_data_actions` or `workflow_writes`; details.who_can_fix, details.next_step).
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Benefits

### List benefits

`GET /api/v1/benefits` · `listBenefits`

The company's benefits (offers), each with its rule in force and its version: the discount, what it applies to, the dates, the minimum order, the reference commission and how many days a sale waits before it is confirmed. Changing the rule creates a new version; each sale keeps the version of its day.

**Permission:** `coupons:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `cursor` | In the URL | `string` | Opaque cursor from the previous page (`next_cursor`). |
| `limit` | In the URL | `integer` | Page size, 1 to 100 (default 25). |

**Response**

- `200` → `BenefitList`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

### Get a benefit

`GET /api/v1/benefits/{id}` · `getBenefit`

One benefit by id, with its rule in force and its version.

**Permission:** `coupons:read`

**Parameters**

| Name | Where | Type | |
| --- | --- | --- | --- |
| `id` · required | In the path | `string (uuid)` |  |

**Response**

- `200` → `Benefit`: OK
- `304`: Not modified (the `If-None-Match` ETag still matches).
- `400` → `Error`: `invalid_request`: a query parameter or the cursor is invalid.
- `401` → `Error`: `unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).
- `403` → `Error`: `insufficient_scope` (details.required_scope names the permission, also in `WWW-Authenticate`), `module_not_in_plan` (details.module) or `api_not_enabled` (the API is not switched on for this company yet: details.who_can_fix, details.next_step).
- `404` → `Error`: `not_found`: no such route, or no such item in your company (another company's id and a malformed id included). A switch never answers this to a valid credential.
- `429` → `Error`: `rate_limited`.
- `500` → `Error`: `internal_error`.

## Schemas

### Error

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "unauthorized",
            "invalid_token",
            "insufficient_scope",
            "module_not_in_plan",
            "api_not_enabled",
            "not_found",
            "invalid_request",
            "method_not_allowed",
            "file_unavailable",
            "rate_limited",
            "internal_error",
            "insufficient_credits",
            "trial_limit",
            "spend_not_allowed",
            "feature_unavailable",
            "profile_unavailable",
            "conflict",
            "temporarily_unavailable",
            "write_not_allowed",
            "requires_app",
            "refused"
          ]
        },
        "message": {
          "type": "string"
        },
        "request_id": {
          "type": "string"
        },
        "details": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "credits_needed": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "balance": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "buy_url": {
                  "type": "string"
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "credits_needed",
                "balance"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "reason": {
                  "type": "string",
                  "enum": [
                    "daily_cap",
                    "allowance",
                    "not_started",
                    "ended",
                    "no_access"
                  ]
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "reason"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "retry_after_seconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "retry_after_seconds"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "stage": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "payment",
                    "contract"
                  ]
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "stage",
                "reason"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "reason": {
                  "type": "string"
                },
                "missing": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "reason"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "deal_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "deal_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "required_scope": {
                  "type": "string",
                  "enum": [
                    "campaigns:read",
                    "deals:read",
                    "deliverables:read",
                    "coupons:read",
                    "sales:read",
                    "faturas:read",
                    "reports:read",
                    "notas_fiscais:read",
                    "prospecting:read",
                    "creators:read",
                    "payments:read",
                    "monitoring:read",
                    "gamification:read",
                    "agenda:read",
                    "deals:write",
                    "deliverables:write",
                    "coupons:write",
                    "sales:write",
                    "content_approval:write",
                    "credits:spend"
                  ]
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "required_scope"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "module": {
                  "type": "string",
                  "enum": [
                    "api",
                    "monitoring",
                    "gamification"
                  ]
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "required": [
                "module"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "credits_refunded": {
                  "type": "boolean",
                  "const": true
                },
                "retry_after_seconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "feature": {
                  "type": "string",
                  "enum": [
                    "paid_data_actions",
                    "workflow_writes",
                    "sales_orders"
                  ]
                },
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "next_step": {
                  "type": "string"
                },
                "who_can_fix": {
                  "type": "string",
                  "enum": [
                    "vega_support",
                    "company_admin"
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "required": [
        "code",
        "message",
        "request_id"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
```

### Me

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "me"
    },
    "org": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "plan": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "slug",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "credential": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "api_key",
            "oauth"
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "label": {
          "type": "string"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "kind",
        "id",
        "label",
        "scopes"
      ],
      "additionalProperties": false
    },
    "rate_limit": {
      "type": "object",
      "properties": {
        "requests_per_minute": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "org_requests_per_minute": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "requests_per_minute",
        "org_requests_per_minute"
      ],
      "additionalProperties": false
    },
    "api_version": {
      "type": "string",
      "const": "v1"
    },
    "features": {
      "type": "object",
      "properties": {
        "reads": {
          "type": "boolean"
        },
        "paid_data_actions": {
          "type": "boolean"
        },
        "workflow_writes": {
          "type": "boolean"
        },
        "sales_orders": {
          "type": "boolean"
        }
      },
      "required": [
        "reads",
        "paid_data_actions",
        "workflow_writes",
        "sales_orders"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "object",
    "org",
    "plan",
    "credential",
    "rate_limit",
    "api_version",
    "features"
  ],
  "additionalProperties": false
}
```

### CampaignList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Campaign"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### CampaignCompactList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CampaignCompact"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Campaign

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "campaign"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "board_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "title": {
      "type": "string"
    },
    "brief": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "rascunho",
        "publicada",
        "encerrada"
      ]
    },
    "hashtag": {
      "type": [
        "string",
        "null"
      ]
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "compensation_model": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "commission_only",
            "per_creator",
            "fixed_only"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "sales_source": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "manual_csv"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "starts_on": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "ends_on": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "closed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "archived_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "stages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StageRef"
      }
    },
    "content_approval": {
      "$ref": "#/components/schemas/CampaignContentApproval"
    }
  },
  "required": [
    "object",
    "id",
    "board_id",
    "title",
    "brief",
    "status",
    "hashtag",
    "platforms",
    "compensation_model",
    "sales_source",
    "starts_on",
    "ends_on",
    "published_at",
    "closed_at",
    "archived_at",
    "created_at",
    "updated_at",
    "stages"
  ],
  "additionalProperties": false
}
```

### DealList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Deal"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### DealCompactList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DealCompact"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Deal

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "deal"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "stage": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/StageRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "creator": {
      "$ref": "#/components/schemas/CreatorRef"
    },
    "contract_mode": {
      "type": "string",
      "enum": [
        "deliverables",
        "performance"
      ]
    },
    "prior_approval": {
      "type": "boolean"
    },
    "commission_bps": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "accepted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "declined_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "exited_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "exit_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "criador_recusou",
            "marca_desistiu",
            "valor",
            "prazo",
            "sem_resposta",
            "outro"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "service_finalized_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "invoice_released_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "contract": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/DealContract"
        },
        {
          "type": "null"
        }
      ]
    },
    "deliverables": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "approved": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "published": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "verified": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "late": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "approved",
        "published",
        "verified",
        "late"
      ],
      "additionalProperties": false
    },
    "coupon_codes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "post_metrics": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/PostMetrics"
        },
        {
          "type": "null"
        }
      ]
    },
    "value": {
      "$ref": "#/components/schemas/DealValue"
    },
    "payment": {
      "$ref": "#/components/schemas/DealPayment"
    }
  },
  "required": [
    "object",
    "id",
    "campaign_id",
    "stage",
    "creator",
    "contract_mode",
    "prior_approval",
    "commission_bps",
    "accepted_at",
    "declined_at",
    "exited_at",
    "exit_reason",
    "service_finalized_at",
    "invoice_released_at",
    "created_at",
    "updated_at",
    "contract",
    "deliverables",
    "post_metrics"
  ],
  "additionalProperties": false
}
```

### DeliverableList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Deliverable"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### DeliverableCompactList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DeliverableCompact"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Deliverable

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "deliverable"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "deal_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "platform": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "submitted",
        "in_review",
        "changes_requested",
        "approved",
        "published",
        "verified",
        "post_removed"
      ]
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_start": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_end": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "published_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "fulfilled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "fulfilled_late": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "verification": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "verified",
                "ownership_mismatch",
                "post_deleted"
              ]
            },
            "post_url": {
              "type": [
                "string",
                "null"
              ]
            },
            "verified_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_checked_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "status",
            "post_url",
            "verified_at",
            "last_checked_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "guidelines_check": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/GuidelinesCheck"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "deal_id",
    "campaign_id",
    "platform",
    "format",
    "title",
    "status",
    "deadline",
    "window_start",
    "window_end",
    "published_url",
    "fulfilled_at",
    "fulfilled_late",
    "verification",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### CouponList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Coupon"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Coupon

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "coupon"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "code": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "rascunho",
        "emitido",
        "no_ar",
        "encerrando",
        "encerrado",
        "desatualizado"
      ]
    },
    "benefit": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "deal_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "creator_handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "creator_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "issued_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "live_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "ends_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "creator_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "The creator who sells with this code (the code is theirs, per benefit, across campaigns)."
    },
    "benefit_rule_version": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "The version of the benefit rules the code was born under (null: before typed rules)."
    },
    "link": {
      "description": "The creator's Vega coupon link (`/cupom/<token>`) for this benefit: it opens the company's store with the code applied where the platform allows it, and with utm_source=vega. Null when the benefit has no offer link or the code is closed.",
      "type": [
        "string",
        "null"
      ]
    },
    "link_opens_30d": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Opens of the link in the last 30 days (São Paulo days), an estimate: social-network previews and the same connection twice in a day are not counted. Null when link is null. Opens never count as sales."
    },
    "legacy_format": {
      "type": "boolean",
      "description": "True for a code outside letters and digits (3 to 24): it keeps working; a new code is offered."
    },
    "created": {
      "description": "Create answers only: false when the creator already held a live code of this benefit (that one is returned).",
      "type": "boolean"
    }
  },
  "required": [
    "object",
    "id",
    "code",
    "status",
    "benefit",
    "deal_id",
    "campaign_id",
    "creator_handle",
    "creator_name",
    "issued_at",
    "live_at",
    "ends_at",
    "created_at",
    "updated_at",
    "creator_id",
    "benefit_rule_version",
    "link",
    "link_opens_30d",
    "legacy_format"
  ],
  "additionalProperties": false
}
```

### SalesCycleList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SalesCycle"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### SalesCycle

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "sales_cycle"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "cycle_key": {
      "type": "string"
    },
    "window_start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "window_end": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "status": {
      "type": "string",
      "enum": [
        "disponivel",
        "enviado",
        "importado"
      ]
    },
    "return_deadline": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "returned_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "return_channel": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "upload",
            "webhook"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "totals": {
      "type": "object",
      "properties": {
        "sales_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "commission_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "rows": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "sales_cents",
        "commission_cents",
        "rows"
      ],
      "additionalProperties": false
    },
    "rows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SalesCycleRow"
      }
    }
  },
  "required": [
    "object",
    "id",
    "campaign_id",
    "cycle_key",
    "window_start",
    "window_end",
    "status",
    "return_deadline",
    "returned_at",
    "return_channel",
    "totals"
  ],
  "additionalProperties": false
}
```

### FaturaList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Fatura"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Fatura

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "fatura"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "cycle_key": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "regular",
        "comissao_atrasada"
      ]
    },
    "payment_model": {
      "type": "string",
      "enum": [
        "pix_por_criador",
        "pix_unico",
        "conta_marca"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "aberta",
        "parcial",
        "paga"
      ]
    },
    "window_start": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_end": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "due_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "totals": {
      "type": "object",
      "properties": {
        "fixed_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "variable_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "prize_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "vega_fee_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "processing_fee_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "transfer_fee_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "fixed_cents",
        "variable_cents",
        "prize_cents",
        "vega_fee_cents",
        "processing_fee_cents",
        "transfer_fee_cents",
        "total_cents"
      ],
      "additionalProperties": false
    },
    "charge_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "closed_at": {
      "type": "string",
      "format": "date-time"
    },
    "paid_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "cycle_key",
    "kind",
    "payment_model",
    "status",
    "window_start",
    "window_end",
    "due_date",
    "totals",
    "charge_count",
    "closed_at",
    "paid_at"
  ],
  "additionalProperties": false
}
```

### ReportList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Report"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Report

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "report"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "acordos",
        "publicacoes"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "a4",
        "slides"
      ]
    },
    "live": {
      "type": "boolean"
    },
    "snapshot_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "id",
    "campaign_id",
    "name",
    "source",
    "format",
    "live",
    "snapshot_at",
    "created_at",
    "updated_at",
    "url"
  ],
  "additionalProperties": false
}
```

### NotaFiscalList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/NotaFiscal"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### NotaFiscal

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "nota_fiscal"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "pendente",
        "preparado",
        "enviado",
        "emitido",
        "rejeitado",
        "bloqueado",
        "erro_provedor",
        "reenvio_agendado"
      ]
    },
    "issuer_kind": {
      "type": "string",
      "enum": [
        "vega",
        "creator"
      ]
    },
    "issuer_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "issuer_cnpj": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{14}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "creator_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "tomador": {
      "type": "object",
      "properties": {
        "org_id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "org_id",
        "name"
      ],
      "additionalProperties": false
    },
    "amount_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "competence_date": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "issued_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "provider": {
      "type": [
        "string",
        "null"
      ]
    },
    "provider_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "fatura_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "deal_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "pdf_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "xml_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "status",
    "issuer_kind",
    "issuer_name",
    "issuer_cnpj",
    "creator_id",
    "tomador",
    "amount_cents",
    "competence_date",
    "issued_at",
    "provider",
    "provider_reference",
    "fatura_id",
    "deal_id",
    "pdf_url",
    "xml_url",
    "created_at"
  ],
  "additionalProperties": false
}
```

### Credits

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "credits"
    },
    "balance": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "monthly_credits": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "prices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreditPrice"
      }
    },
    "buy_url": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "balance",
    "monthly_credits",
    "prices",
    "buy_url"
  ],
  "additionalProperties": false
}
```

### CreatorSearchList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatorSearch"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### CreatorSearch

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator_search"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "searching",
        "ready",
        "failed"
      ]
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "sem_chave",
            "desligado",
            "fornecedor_indisponivel",
            "sem_resultados",
            "fila",
            "tempo",
            "erro_interno"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "instagram",
          "tiktok",
          "youtube"
        ]
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "credits_spent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "results_shown": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "exhausted": {
      "type": "boolean"
    },
    "next": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorSearchNext"
        },
        {
          "type": "null"
        }
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatorSearchResult"
      }
    }
  },
  "required": [
    "object",
    "id",
    "status",
    "failure_code",
    "description",
    "platforms",
    "created_at",
    "finished_at",
    "expires_at",
    "credits_spent",
    "results_shown",
    "exhausted",
    "next",
    "results"
  ],
  "additionalProperties": false
}
```

### CreatorSearchCharged

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator_search"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "searching",
        "ready",
        "failed"
      ]
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "sem_chave",
            "desligado",
            "fornecedor_indisponivel",
            "sem_resultados",
            "fila",
            "tempo",
            "erro_interno"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "instagram",
          "tiktok",
          "youtube"
        ]
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "credits_spent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "results_shown": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "exhausted": {
      "type": "boolean"
    },
    "next": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorSearchNext"
        },
        {
          "type": "null"
        }
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatorSearchResult"
      }
    },
    "billing": {
      "$ref": "#/components/schemas/Billing"
    }
  },
  "required": [
    "object",
    "id",
    "status",
    "failure_code",
    "description",
    "platforms",
    "created_at",
    "finished_at",
    "expires_at",
    "credits_spent",
    "results_shown",
    "exhausted",
    "next",
    "results",
    "billing"
  ],
  "additionalProperties": false
}
```

### CreatorReportList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatorReport"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### CreatorReport

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator_report"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "generating",
        "ready",
        "failed"
      ]
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "perfil_nao_encontrado",
            "perfil_renomeado",
            "perfil_privado",
            "fornecedor_indisponivel",
            "limite_custo",
            "sem_chave",
            "desligado",
            "fila",
            "tempo",
            "erro_interno"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "tiktok",
        "youtube"
      ]
    },
    "handle": {
      "type": "string"
    },
    "creator_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "requested_at": {
      "type": "string",
      "format": "date-time"
    },
    "generated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "credits_spent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "report": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorReportDocument"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "status",
    "failure_code",
    "platform",
    "handle",
    "creator_id",
    "requested_at",
    "generated_at",
    "expires_at",
    "credits_spent",
    "report"
  ],
  "additionalProperties": false
}
```

### CreatorReportCharged

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator_report"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "generating",
        "ready",
        "failed"
      ]
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "perfil_nao_encontrado",
            "perfil_renomeado",
            "perfil_privado",
            "fornecedor_indisponivel",
            "limite_custo",
            "sem_chave",
            "desligado",
            "fila",
            "tempo",
            "erro_interno"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "tiktok",
        "youtube"
      ]
    },
    "handle": {
      "type": "string"
    },
    "creator_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "requested_at": {
      "type": "string",
      "format": "date-time"
    },
    "generated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "credits_spent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "report": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorReportDocument"
        },
        {
          "type": "null"
        }
      ]
    },
    "billing": {
      "$ref": "#/components/schemas/Billing"
    }
  },
  "required": [
    "object",
    "id",
    "status",
    "failure_code",
    "platform",
    "handle",
    "creator_id",
    "requested_at",
    "generated_at",
    "expires_at",
    "credits_spent",
    "report",
    "billing"
  ],
  "additionalProperties": false
}
```

### CreatorList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Creator"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### CreatorCompactList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatorCompact"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Creator

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "profile_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "claimed": {
      "type": "boolean"
    },
    "deal_counts": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "open": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "won": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "lost": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "open",
        "won",
        "lost"
      ],
      "additionalProperties": false
    },
    "campaigns": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "first_deal_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "last_activity_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "paid_cents_total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "latest_report_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "deals": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "campaign_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StageRef"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "campaign_id",
          "campaign_title",
          "stage"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "object",
    "id",
    "name",
    "handle",
    "platforms",
    "profile_urls",
    "claimed",
    "deal_counts",
    "campaigns",
    "first_deal_at",
    "last_activity_at"
  ],
  "additionalProperties": false
}
```

### SavedCreatorListList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SavedCreatorList"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### SavedCreatorList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator_list"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "name": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "creator_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "creators": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "creator_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "platform": {
            "type": [
              "string",
              "null"
            ]
          },
          "handle": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "added_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "creator_id",
          "platform",
          "handle",
          "name",
          "added_at"
        ],
        "additionalProperties": false
      }
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "object",
    "id",
    "name",
    "tags",
    "creator_count",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### PaymentList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Payment"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### PaymentCompactList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PaymentCompact"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Payment

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "payment"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "fatura_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "cycle_key": {
      "type": "string"
    },
    "creator": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "gross_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "vega_fee_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "processing_fee_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "transfer_fee_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "status": {
      "type": "string",
      "enum": [
        "pendente",
        "aguardando_conta",
        "emitida",
        "paga",
        "estornada",
        "falhou",
        "aguardando_repasse",
        "adiada"
      ]
    },
    "due_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "issued_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "paid_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "rolled_to_cycle_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "fixo",
              "variavel",
              "comissao",
              "taxa_vega",
              "tarifa_pix",
              "tarifa_saque",
              "premio"
            ]
          },
          "description": {
            "type": "string"
          },
          "deal_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "unit_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "kind",
          "description",
          "deal_id",
          "quantity",
          "unit_cents",
          "amount_cents"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "object",
    "id",
    "fatura_id",
    "cycle_key",
    "creator",
    "gross_cents",
    "vega_fee_cents",
    "processing_fee_cents",
    "transfer_fee_cents",
    "total_cents",
    "status",
    "due_date",
    "issued_at",
    "paid_at",
    "rolled_to_cycle_key",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### GamificationProgramList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GamificationProgram"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### GamificationProgram

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "gamification_program"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "kind": {
      "type": "string",
      "enum": [
        "competicao",
        "bonus"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "starts_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "ends_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "repeat": {
      "type": "string",
      "enum": [
        "nunca",
        "mensal",
        "trimestral",
        "semestral"
      ]
    },
    "draft": {
      "type": "boolean"
    },
    "participants": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "cycles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "start": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "end": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "confirmed_at": {
            "type": "string",
            "format": "date-time"
          },
          "total_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "payouts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "creator": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CreatorRef"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dinheiro",
                    "outro"
                  ]
                },
                "amount_cents": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "place": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "points": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "a_faturar",
                    "faturado",
                    "fora_da_vega",
                    "a_entregar",
                    "entregue"
                  ]
                }
              },
              "required": [
                "creator",
                "kind",
                "amount_cents",
                "description",
                "place",
                "points",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "index",
          "start",
          "end",
          "confirmed_at",
          "total_cents",
          "payouts"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "object",
    "id",
    "kind",
    "name",
    "campaign_id",
    "starts_on",
    "ends_on",
    "repeat",
    "draft",
    "participants",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### AgendaEventList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgendaEvent"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### PostList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Post"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### PostCompactList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostCompact"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Post

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "post"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "source": {
      "type": "string",
      "enum": [
        "campaign_tag",
        "partner_monitor"
      ]
    },
    "platform": {
      "type": "string"
    },
    "media_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "permalink": {
      "type": [
        "string",
        "null"
      ]
    },
    "posted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "author_handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "creator_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "matched": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "hashtag",
            "mention",
            "monitor"
          ]
        },
        "value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "type",
        "value"
      ],
      "additionalProperties": false
    },
    "paid_partnership": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "metrics": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "likes": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "comments": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "views": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "likes",
            "comments",
            "views"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "metrics_source": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "instagram",
            "youtube",
            "tiktok"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "guidelines_check": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/GuidelinesCheck"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "source",
    "platform",
    "media_type",
    "permalink",
    "posted_at",
    "author_handle",
    "creator_id",
    "campaign_id",
    "matched",
    "paid_partnership",
    "metrics",
    "metrics_source",
    "guidelines_check"
  ],
  "additionalProperties": false
}
```

### CampaignSummary

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "campaign_summary"
    },
    "campaign_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "rascunho",
        "publicada",
        "encerrada"
      ]
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "deals": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "by_stage": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "stage": {
                "$ref": "#/components/schemas/StageRef"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "stage",
              "count"
            ],
            "additionalProperties": false
          }
        },
        "won": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "lost": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "paused": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "by_stage",
        "won",
        "lost",
        "paused"
      ],
      "additionalProperties": false
    },
    "deliverables": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "pending": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "submitted": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "approved": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "published": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "verified": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "late": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "pending",
        "submitted",
        "approved",
        "published",
        "verified",
        "late"
      ],
      "additionalProperties": false
    },
    "posts": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "views": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "likes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "comments": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "shares": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "reach": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "partial": {
          "type": "boolean"
        }
      },
      "required": [
        "count",
        "views",
        "likes",
        "comments",
        "shares",
        "reach",
        "partial"
      ],
      "additionalProperties": false
    },
    "sales": {
      "type": "object",
      "properties": {
        "sales_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "commission_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "cycles": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "sales_cents",
        "commission_cents",
        "cycles"
      ],
      "additionalProperties": false
    },
    "coupons": {
      "type": "object",
      "properties": {
        "codes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "live": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "codes",
        "live"
      ],
      "additionalProperties": false
    },
    "needs_attention": {
      "$ref": "#/components/schemas/NeedsAttention"
    },
    "money": {
      "type": "object",
      "properties": {
        "committed_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "billed_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "paid_cents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "committed_cents",
        "billed_cents",
        "paid_cents"
      ],
      "additionalProperties": false
    },
    "content_approval": {
      "$ref": "#/components/schemas/CampaignContentApproval"
    }
  },
  "required": [
    "object",
    "campaign_id",
    "title",
    "status",
    "generated_at"
  ],
  "additionalProperties": false
}
```

### Overview

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "overview"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "needs_attention": {
      "$ref": "#/components/schemas/NeedsAttention"
    },
    "open_fatura": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "due_date": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "total_cents": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "id",
            "due_date",
            "total_cents"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "campaigns_published": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "credits_balance": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "object",
    "generated_at"
  ],
  "additionalProperties": false
}
```

### SearchResults

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "search"
    },
    "q": {
      "type": "string"
    },
    "campaigns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "rascunho",
              "publicada",
              "encerrada"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "creators": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "handle": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "handle"
        ],
        "additionalProperties": false
      }
    },
    "deals": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "campaign_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator_handle": {
            "type": [
              "string",
              "null"
            ]
          },
          "stage_name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "campaign_id",
          "creator_handle",
          "stage_name"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "object",
    "q"
  ],
  "additionalProperties": false
}
```

### ReportData

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "report_data"
    },
    "report": {
      "$ref": "#/components/schemas/Report"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "integer",
              "number",
              "cents",
              "date",
              "datetime"
            ]
          }
        },
        "required": [
          "key",
          "label",
          "type"
        ],
        "additionalProperties": false
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": [
            "string",
            "number",
            "null"
          ]
        }
      }
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "object",
    "report",
    "columns",
    "rows",
    "truncated"
  ],
  "additionalProperties": false
}
```

### SalesDeliveryList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SalesDelivery"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### SalesDelivery

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "sales_delivery"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "processing",
        "accepted",
        "rejected"
      ]
    },
    "received_at": {
      "type": "string",
      "format": "date-time"
    },
    "processed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "stats": {
      "type": "object",
      "properties": {
        "rows": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "matched": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "ignored": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "rows",
        "matched",
        "ignored"
      ],
      "additionalProperties": false
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "line": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "type": "string"
          }
        },
        "required": [
          "line",
          "code"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "object",
    "id",
    "campaign_id",
    "status",
    "received_at",
    "processed_at",
    "stats",
    "errors"
  ],
  "additionalProperties": false
}
```

### DealWriteResult

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "deal"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "stage": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/StageRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "creator": {
      "$ref": "#/components/schemas/CreatorRef"
    },
    "contract_mode": {
      "type": "string",
      "enum": [
        "deliverables",
        "performance"
      ]
    },
    "prior_approval": {
      "type": "boolean"
    },
    "commission_bps": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "accepted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "declined_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "exited_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "exit_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "criador_recusou",
            "marca_desistiu",
            "valor",
            "prazo",
            "sem_resposta",
            "outro"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "service_finalized_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "invoice_released_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "contract": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/DealContract"
        },
        {
          "type": "null"
        }
      ]
    },
    "deliverables": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "approved": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "published": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "verified": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "late": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "approved",
        "published",
        "verified",
        "late"
      ],
      "additionalProperties": false
    },
    "coupon_codes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "post_metrics": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/PostMetrics"
        },
        {
          "type": "null"
        }
      ]
    },
    "value": {
      "$ref": "#/components/schemas/DealValue"
    },
    "payment": {
      "$ref": "#/components/schemas/DealPayment"
    },
    "notices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WriteNotice"
      }
    }
  },
  "required": [
    "object",
    "id",
    "campaign_id",
    "stage",
    "creator",
    "contract_mode",
    "prior_approval",
    "commission_bps",
    "accepted_at",
    "declined_at",
    "exited_at",
    "exit_reason",
    "service_finalized_at",
    "invoice_released_at",
    "created_at",
    "updated_at",
    "contract",
    "deliverables",
    "post_metrics"
  ],
  "additionalProperties": false
}
```

### DeliverableReviewResult

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "deliverable"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "deal_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "platform": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "submitted",
        "in_review",
        "changes_requested",
        "approved",
        "published",
        "verified",
        "post_removed"
      ]
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_start": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_end": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "published_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "fulfilled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "fulfilled_late": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "verification": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "verified",
                "ownership_mismatch",
                "post_deleted"
              ]
            },
            "post_url": {
              "type": [
                "string",
                "null"
              ]
            },
            "verified_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_checked_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "status",
            "post_url",
            "verified_at",
            "last_checked_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "guidelines_check": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/GuidelinesCheck"
        },
        {
          "type": "null"
        }
      ]
    },
    "review": {
      "type": "string",
      "enum": [
        "approved",
        "changes_requested",
        "pending_approval"
      ]
    },
    "notices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WriteNotice"
      }
    }
  },
  "required": [
    "object",
    "id",
    "deal_id",
    "campaign_id",
    "platform",
    "format",
    "title",
    "status",
    "deadline",
    "window_start",
    "window_end",
    "published_url",
    "fulfilled_at",
    "fulfilled_late",
    "verification",
    "created_at",
    "updated_at",
    "review"
  ],
  "additionalProperties": false
}
```

### ContentApproval

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "content_approval"
    },
    "campaign_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "mode": {
      "type": "string",
      "enum": [
        "fully_automatic",
        "automatic_with_manual_approval",
        "fully_manual"
      ]
    },
    "company_default": {
      "type": "string",
      "enum": [
        "fully_automatic",
        "automatic_with_manual_approval",
        "fully_manual"
      ]
    },
    "fully_automatic_allowed": {
      "type": "boolean"
    },
    "checks_videos": {
      "type": "boolean"
    },
    "credits_per_video_checked": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "guidelines": {
      "type": "object",
      "properties": {
        "present": {
          "type": "boolean"
        },
        "reading": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "reading",
                "ready",
                "failed",
                "no_text"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "present",
        "reading"
      ],
      "additionalProperties": false
    },
    "rules": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ContentRule"
      }
    },
    "max_rules": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "object",
    "campaign_id",
    "mode",
    "fully_automatic_allowed",
    "checks_videos",
    "credits_per_video_checked",
    "guidelines",
    "rules",
    "max_rules"
  ],
  "additionalProperties": false
}
```

### ContentApprovalWriteResult

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "content_approval"
    },
    "campaign_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "mode": {
      "type": "string",
      "enum": [
        "fully_automatic",
        "automatic_with_manual_approval",
        "fully_manual"
      ]
    },
    "company_default": {
      "type": "string",
      "enum": [
        "fully_automatic",
        "automatic_with_manual_approval",
        "fully_manual"
      ]
    },
    "fully_automatic_allowed": {
      "type": "boolean"
    },
    "checks_videos": {
      "type": "boolean"
    },
    "credits_per_video_checked": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "guidelines": {
      "type": "object",
      "properties": {
        "present": {
          "type": "boolean"
        },
        "reading": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "reading",
                "ready",
                "failed",
                "no_text"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "present",
        "reading"
      ],
      "additionalProperties": false
    },
    "rules": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ContentRule"
      }
    },
    "max_rules": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "rule_id": {
      "type": "string"
    },
    "notices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WriteNotice"
      }
    }
  },
  "required": [
    "object",
    "campaign_id",
    "mode",
    "fully_automatic_allowed",
    "checks_videos",
    "credits_per_video_checked",
    "guidelines",
    "rules",
    "max_rules"
  ],
  "additionalProperties": false
}
```

### BenefitList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Benefit"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### Benefit

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "benefit"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "rascunho",
        "no_ar",
        "encerrado"
      ]
    },
    "rule": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/BenefitRule"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "name",
    "status",
    "rule",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### SalesOrderBatch

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "sales_order_batch"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "recorded": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "updated": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "refused": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reason": {
            "type": "string",
            "enum": [
              "sem_codigo",
              "codigo_desconhecido",
              "dois_codigos",
              "pedido_invalido",
              "ja_confirmado"
            ]
          }
        },
        "required": [
          "index",
          "reason"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "object",
    "id",
    "recorded",
    "updated",
    "refused"
  ],
  "additionalProperties": false
}
```

### SalesEntryList

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SalesEntry"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}
```

### StageRef

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "name": {
      "type": "string"
    },
    "position": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "outcome": {
      "type": "string",
      "enum": [
        "station",
        "won",
        "paused",
        "lost"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "position",
    "outcome"
  ],
  "additionalProperties": false
}
```

### CampaignContentApproval

```json
{
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "fully_automatic",
        "automatic_with_manual_approval",
        "fully_manual"
      ]
    },
    "rules_enabled": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "checks_videos": {
      "type": "boolean"
    }
  },
  "required": [
    "mode",
    "rules_enabled",
    "checks_videos"
  ],
  "additionalProperties": false
}
```

### CampaignCompact

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "campaign"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "rascunho",
        "publicada",
        "encerrada"
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "title",
    "status",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### CreatorRef

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "claimed": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "name",
    "handle",
    "platforms",
    "claimed"
  ],
  "additionalProperties": false
}
```

### DealContract

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "preparing",
        "sent",
        "signed",
        "declined"
      ]
    },
    "sent_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "signed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "status",
    "sent_at",
    "signed_at"
  ],
  "additionalProperties": false
}
```

### PostMetrics

```json
{
  "type": "object",
  "properties": {
    "platform": {
      "type": [
        "string",
        "null"
      ]
    },
    "views": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "likes": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "comments": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "shares": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "reach": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "measured_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "platform",
    "views",
    "likes",
    "comments",
    "shares",
    "reach",
    "measured_at"
  ],
  "additionalProperties": false
}
```

### DealValue

```json
{
  "type": "object",
  "properties": {
    "fixed_cents": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "produto",
              "servico"
            ]
          },
          "label": {
            "type": "string"
          },
          "unit_value_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "kind",
          "label",
          "unit_value_cents"
        ],
        "additionalProperties": false
      }
    },
    "commission_bps": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "fixed_cents",
    "rates",
    "commission_bps"
  ],
  "additionalProperties": false
}
```

### DealPayment

```json
{
  "type": "object",
  "properties": {
    "accrued_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "billed_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "paid_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "last_paid_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "accrued_cents",
    "billed_cents",
    "paid_cents",
    "last_paid_at"
  ],
  "additionalProperties": false
}
```

### DealCompact

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "deal"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "creator_handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "stage_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "campaign_id",
    "creator_handle",
    "stage_name",
    "updated_at"
  ],
  "additionalProperties": false
}
```

### GuidelinesCheck

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "checking",
        "checked",
        "no_media",
        "no_speech",
        "no_credits",
        "failed"
      ]
    },
    "result": {
      "type": "string",
      "enum": [
        "in_line",
        "outside",
        "not_checked"
      ]
    },
    "not_checked_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "in_progress",
            "no_media",
            "no_speech",
            "no_credits",
            "failed"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "decided_by": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "vega",
            "person"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule_id": {
            "type": "string"
          },
          "rule": {
            "$ref": "#/components/schemas/ContentRuleRef"
          },
          "passage": {
            "type": [
              "string",
              "null"
            ]
          },
          "at_seconds": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "rule_id",
          "rule",
          "passage",
          "at_seconds"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "status",
    "result",
    "not_checked_reason",
    "decided_by",
    "points"
  ],
  "additionalProperties": false
}
```

### ContentRuleRef

```json
{
  "type": "object",
  "properties": {
    "origin": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "campaign",
            "guidelines",
            "company"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "condition": {
      "type": "string",
      "enum": [
        "says",
        "does_not_say",
        "caption_contains",
        "caption_does_not_contain",
        "mentions",
        "no_paid_partnership_label",
        "past_deadline",
        "live_less_than_days",
        "video_shorter_than_seconds",
        "on_creator_account",
        "has_campaign_hashtag",
        "agreed_format",
        "within_campaign_period",
        "posted_before_approval",
        "link_broken_or_other_account",
        "taken_down"
      ]
    },
    "value": {
      "type": [
        "string",
        "null"
      ]
    },
    "effect": {
      "type": "string",
      "enum": [
        "approve",
        "attention",
        "refuse"
      ]
    }
  },
  "required": [
    "origin",
    "condition",
    "value",
    "effect"
  ],
  "additionalProperties": false
}
```

### DeliverableCompact

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "deliverable"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "deal_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "submitted",
        "in_review",
        "changes_requested",
        "approved",
        "published",
        "verified",
        "post_removed"
      ]
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "deal_id",
    "status",
    "deadline"
  ],
  "additionalProperties": false
}
```

### SalesCycleRow

```json
{
  "type": "object",
  "properties": {
    "deal_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "coupon_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "sales_cents": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "commission_cents": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "commission_bps": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "deal_id",
    "coupon_code",
    "sales_cents",
    "commission_cents",
    "commission_bps"
  ],
  "additionalProperties": false
}
```

### CreditPrice

```json
{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "search.vega",
        "search.page",
        "report.simplified"
      ]
    },
    "credits": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "action",
    "credits",
    "description"
  ],
  "additionalProperties": false
}
```

### CreatorSearchNext

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "list",
        "extension"
      ]
    },
    "credits": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "kind",
    "credits"
  ],
  "additionalProperties": false
}
```

### CreatorSearchResult

```json
{
  "type": "object",
  "properties": {
    "creator_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "tiktok",
        "youtube"
      ]
    },
    "handle": {
      "type": "string"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "profile_url": {
      "type": "string"
    },
    "metrics": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorSearchMetrics"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "creator_id",
    "platform",
    "handle",
    "display_name",
    "profile_url",
    "metrics"
  ],
  "additionalProperties": false
}
```

### CreatorSearchMetrics

```json
{
  "type": "object",
  "properties": {
    "followers": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "engagement_rate": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "niche": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "followers",
    "engagement_rate",
    "niche",
    "city"
  ],
  "additionalProperties": false
}
```

### Billing

```json
{
  "type": "object",
  "properties": {
    "charged": {
      "type": "boolean"
    },
    "credits": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "balance_after": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "charged",
    "credits",
    "balance_after"
  ],
  "additionalProperties": false
}
```

### CreatorReportDocument

```json
{
  "type": "object",
  "properties": {
    "schema_version": {
      "anyOf": [
        {
          "type": "number",
          "const": 1
        },
        {
          "type": "number",
          "const": 2
        }
      ]
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "tiktok",
        "youtube"
      ]
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "window": {
      "type": "object",
      "properties": {
        "posts_read": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "from_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "to_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "posts_read",
        "from_date",
        "to_date"
      ],
      "additionalProperties": false
    },
    "identity": {
      "type": "object",
      "properties": {
        "platform_user_id": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "display_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "bio": {
          "type": [
            "string",
            "null"
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "medida",
                "sem_evidencia",
                "indisponivel"
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "uf": {
              "type": [
                "string",
                "null"
              ]
            },
            "country": {
              "type": [
                "string",
                "null"
              ]
            },
            "ibge_id": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "basis": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "bio",
                    "endereco",
                    "locais",
                    "legendas"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "status",
            "name",
            "uf",
            "country",
            "ibge_id",
            "basis"
          ],
          "additionalProperties": false
        },
        "niche": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "medido",
                "indisponivel"
              ]
            },
            "niche_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "status",
            "niche_ids",
            "tags"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "platform_user_id",
        "handle",
        "display_name",
        "bio",
        "verified",
        "category",
        "city",
        "niche"
      ],
      "additionalProperties": false
    },
    "performance": {
      "type": "object",
      "properties": {
        "followers": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "following": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "posts": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "avg_likes": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "avg_comments": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "avg_views": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "avg_shares": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "engagement_rate": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "engagement_rate_by_views": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "posts_per_week": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "reels_share": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "sample_size": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "viral_dropped": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "followers",
        "following",
        "posts",
        "avg_likes",
        "avg_comments",
        "avg_views",
        "avg_shares",
        "engagement_rate",
        "engagement_rate_by_views",
        "posts_per_week",
        "reels_share",
        "sample_size",
        "viral_dropped"
      ],
      "additionalProperties": false
    },
    "brands": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "medido",
            "indisponivel",
            "nao_se_aplica"
          ]
        },
        "sponsored_posts": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "sponsored_performance": {
          "anyOf": [
            {
              "type": "number",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "handle": {
                "type": "string"
              },
              "posts": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "last_post_on": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "declared": {
                "type": "boolean"
              }
            },
            "required": [
              "handle",
              "posts",
              "last_post_on",
              "declared"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "status",
        "sponsored_posts",
        "sponsored_performance",
        "items"
      ],
      "additionalProperties": false
    },
    "quality": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "medido",
            "dados_insuficientes",
            "nao_se_aplica"
          ]
        },
        "score": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            {
              "type": "null"
            }
          ]
        },
        "signals": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "engajamento_vs_pares": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "segue_poucos": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comentarios_de_verdade": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comentaristas_comuns": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "curtidas_por_view": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "engajamento_vs_pares",
                "segue_poucos",
                "comentarios_de_verdade",
                "comentaristas_comuns",
                "curtidas_por_view"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "comments_read": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "status",
        "score",
        "signals",
        "comments_read"
      ],
      "additionalProperties": false
    },
    "audience": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "amostra",
            "amostra_insuficiente",
            "no_relatorio_completo"
          ]
        },
        "sample": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "brazil_share": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "no_posts_share": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "no_followers_share": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "follows_many_share": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "influencer_share": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              },
              "required": [
                "size",
                "brazil_share",
                "no_posts_share",
                "no_followers_share",
                "follows_many_share",
                "influencer_share"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "status",
        "sample"
      ],
      "additionalProperties": false
    },
    "history": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CreatorReportHistory"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "schema_version",
    "platform",
    "generated_at",
    "window",
    "identity",
    "performance",
    "brands",
    "quality",
    "audience",
    "history"
  ],
  "additionalProperties": false
}
```

### CreatorReportHistory

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "medido",
        "acompanhando"
      ]
    },
    "tracked_since": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "followers": {
      "maxItems": 60,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "on": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "followers": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "on",
          "followers"
        ],
        "additionalProperties": false
      }
    },
    "growth": {
      "type": "object",
      "properties": {
        "d30": {
          "type": [
            "number",
            "null"
          ]
        },
        "d90": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "d30",
        "d90"
      ],
      "additionalProperties": false
    },
    "engagement": {
      "maxItems": 13,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
          },
          "posts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "avg_likes": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "avg_comments": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "avg_views": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "month",
          "posts",
          "avg_likes",
          "avg_comments",
          "avg_views"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "status",
    "tracked_since",
    "followers",
    "growth",
    "engagement"
  ],
  "additionalProperties": false
}
```

### CreatorCompact

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "creator"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_activity_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "name",
    "handle",
    "last_activity_at"
  ],
  "additionalProperties": false
}
```

### PaymentCompact

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "payment"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "creator_handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pendente",
        "aguardando_conta",
        "emitida",
        "paga",
        "estornada",
        "falhou",
        "aguardando_repasse",
        "adiada"
      ]
    },
    "total_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "due_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "object",
    "id",
    "creator_handle",
    "status",
    "total_cents",
    "due_date"
  ],
  "additionalProperties": false
}
```

### AgendaEvent

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "event"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "kind": {
      "type": "string",
      "enum": [
        "company_event",
        "vega_event",
        "campaign"
      ]
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "starts_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "ends_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "kind",
    "title",
    "type",
    "starts_on",
    "ends_on",
    "city",
    "country",
    "campaign_id"
  ],
  "additionalProperties": false
}
```

### PostCompact

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "post"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "author_handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "platform": {
      "type": "string"
    },
    "permalink": {
      "type": [
        "string",
        "null"
      ]
    },
    "posted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "object",
    "id",
    "author_handle",
    "platform",
    "permalink",
    "posted_at"
  ],
  "additionalProperties": false
}
```

### NeedsAttention

```json
{
  "type": "object",
  "properties": {
    "deliverables_to_review": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "late_deliverables": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "deals_waiting_contract": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "deliverables_to_review",
    "late_deliverables",
    "deals_waiting_contract"
  ],
  "additionalProperties": false
}
```

### WriteNotice

```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "code",
    "message"
  ],
  "additionalProperties": false
}
```

### ContentRule

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "origin": {
      "type": "string",
      "enum": [
        "campaign",
        "guidelines",
        "company"
      ]
    },
    "condition": {
      "type": "string",
      "enum": [
        "says",
        "does_not_say",
        "caption_contains",
        "caption_does_not_contain",
        "mentions",
        "no_paid_partnership_label",
        "past_deadline",
        "live_less_than_days",
        "video_shorter_than_seconds",
        "on_creator_account",
        "has_campaign_hashtag",
        "agreed_format",
        "within_campaign_period",
        "posted_before_approval",
        "link_broken_or_other_account",
        "taken_down"
      ]
    },
    "value": {
      "type": [
        "string",
        "null"
      ]
    },
    "effect": {
      "type": "string",
      "enum": [
        "approve",
        "attention",
        "refuse"
      ]
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "origin",
    "condition",
    "value",
    "effect",
    "enabled"
  ],
  "additionalProperties": false
}
```

### BenefitRule

```json
{
  "type": "object",
  "properties": {
    "version": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "kind": {
      "type": "string",
      "enum": [
        "percentual",
        "valor",
        "frete_gratis",
        "sem_valor",
        "nao_definido"
      ]
    },
    "label": {
      "description": "The company label of a kind with no amount (e.g. \"Brinde\").",
      "type": [
        "string",
        "null"
      ]
    },
    "percent": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "amount_cents": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "scope": {
      "type": "string",
      "enum": [
        "loja_toda",
        "selecao"
      ]
    },
    "scope_description": {
      "type": [
        "string",
        "null"
      ]
    },
    "starts_on": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "ends_on": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "min_order_cents": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "once_per_customer": {
      "type": "boolean"
    },
    "total_limit": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "stackable": {
      "type": "boolean"
    },
    "commission_bps": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "The offer's reference commission; an acordo's own rate is what is billed."
    },
    "confirmation_days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Days a sale waits before it is confirmed (7 to 90)."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "version",
    "kind",
    "label",
    "percent",
    "amount_cents",
    "scope",
    "scope_description",
    "starts_on",
    "ends_on",
    "min_order_cents",
    "once_per_customer",
    "total_limit",
    "stackable",
    "commission_bps",
    "confirmation_days",
    "created_at"
  ],
  "additionalProperties": false
}
```

### SalesEntry

```json
{
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "sales_entry"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "kind": {
      "type": "string",
      "enum": [
        "pedido",
        "total_do_periodo",
        "ajuste"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "pendente",
        "confirmado",
        "travado",
        "anulado"
      ]
    },
    "channel": {
      "type": "string",
      "enum": [
        "planilha",
        "looker",
        "api",
        "tela",
        "shopify",
        "vtex",
        "checkout"
      ]
    },
    "day": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "São Paulo day of the sale (an order: paid day; a period total: the cutoff)."
    },
    "value_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Net merchandise value, after discounts, without freight; negative only for an adjustment."
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ],
      "description": "The campaign whose acordo carried the code on the sale day (commission)."
    },
    "deal_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "creator_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "coupon_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "benefit_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "commission_bps": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "hold_until": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "An order is \"a confirmar\" until this day."
    },
    "confirmed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "locked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "voided_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "void_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "cancelado",
            "estornado",
            "substituido"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "refunded_after_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "A refund after confirmation: a fact only, never a clawback."
    },
    "sales_cycle_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ],
      "description": "The cutoff planilha that signed it (GET /sales/{id})."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "kind",
    "state",
    "channel",
    "day",
    "value_cents",
    "campaign_id",
    "deal_id",
    "creator_id",
    "coupon_id",
    "benefit_id",
    "commission_bps",
    "hold_until",
    "confirmed_at",
    "locked_at",
    "voided_at",
    "void_reason",
    "refunded_after_at",
    "sales_cycle_id",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}
```
