{"openapi":"3.1.0","info":{"title":"Vega API","version":"v1","description":"Access to your company's data in Vega: campaigns, deals, deliverables, creators, coupons, sales, faturas, payments, notas fiscais, posts, Gamificação, the Agenda and reports, plus Vega's creator search and creator reports, paid in the company's credits (the only operations that spend anything; see GET /credits for prices).\n\nReads change nothing. Actions (adding a creator to a campaign, moving a deal, notes, reviewing a deliverable, coupon codes, sending sales, a campaign's content approval by the guidelines) exist only on a key or app given a write scope, off by default; nothing pays, bills or sends a contract.\n\nAuthenticate with `Authorization: Bearer <key>` (an API key `vk_…` from Configurações → Integrações) or an OAuth 2.1 access token.\n\nData is in Brazilian Portuguese; money is integer cents (BRL); timestamps are ISO 8601 UTC; dates are `YYYY-MM-DD`.\n\nLists are ordered newest change first and paginated with `cursor` / `limit`; follow `next_cursor` while `has_more` is true.\n\nErrors share one shape: `{ \"error\": { \"code\", \"message\", \"request_id\", \"details\"? } }` with code one of `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`. Where there is something to do next, `details.next_step` says it in one sentence and `details.who_can_fix` says who (`vega_support` or `company_admin`). `GET /me` reports what is switched on for the company in `features`."},"servers":[{"url":"https://use-vega.com/api/v1"}],"tags":[{"name":"Me"},{"name":"Campaigns"},{"name":"Deals"},{"name":"Deliverables"},{"name":"Coupons"},{"name":"Sales"},{"name":"Faturas"},{"name":"Reports"},{"name":"Notas-fiscais"},{"name":"Creators"},{"name":"Payments"},{"name":"Posts"},{"name":"Gamification-programs"},{"name":"Events"},{"name":"Overview"},{"name":"Search"},{"name":"Sales-deliveries"},{"name":"Credits"},{"name":"Creator-searches"},{"name":"Creator-reports"},{"name":"Creator-lists"}],"paths":{"/me":{"get":{"operationId":"me","summary":"Who am I","description":"The company, plan, credential (kind, label, scopes) and rate limits behind the bearer token, and in `features` which groups of operations are switched on for the company (reads, paid_data_actions, workflow_writes). Call it first to see which data this connection may read.\n\nNo scope needed.","tags":["Me"],"security":[{"bearer":[]},{"oauth2":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/campaigns":{"get":{"operationId":"listCampaigns","summary":"List campaigns","description":"The company's campaigns with their stages (etapas), newest change first. Status: rascunho (draft), publicada (published), encerrada (closed).\n\nScope: `campaigns:read`.","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["campaigns:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"rascunho = draft, publicada = published, encerrada = closed.","type":"string","enum":["rascunho","publicada","encerrada"]}},{"name":"updated_since","in":"query","required":false,"description":"Only items changed at or after this instant (ISO 8601).","schema":{"description":"Only rows changed at or after this ISO 8601 timestamp, e.g. 2026-11-01T00:00:00Z.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"q","in":"query","required":false,"description":"Text to match (2 to 80 characters, a literal substring, case-insensitive).","schema":{"type":"string","minLength":2,"maxLength":80,"description":"Only campaigns whose title contains this text (2 to 80 characters)."}},{"name":"fields","in":"query","required":false,"description":"`full` (default) or `compact` (the `<Resource>Compact` items).","schema":{"description":"full (default) = every field; compact = id, name or handle, status or stage and one date (smaller pages, for assistants).","type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CampaignList"},{"$ref":"#/components/schemas/CampaignCompactList"}]}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/campaigns/{id}":{"get":{"operationId":"getCampaign","summary":"Get a campaign","description":"One campaign by id, with its stages (etapas).\n\nScope: `campaigns:read`.","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["campaigns:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/deals":{"get":{"operationId":"listDeals","summary":"List deals","description":"Deals: one per creator in a campaign (a cartão on Vega's board), with the current stage (etapa), the creator's name / handle / platforms, the acceptance and exit dates, the contract state, the deliverable counts and the latest post metrics measured by the creator's own account. With coupons:read also the coupon codes; with payments:read also the agreed value and where the deal's money stands.\n\nScope: `deals:read`.","tags":["Deals"],"security":[{"bearer":[]},{"oauth2":["deals:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"stage_id","in":"query","required":false,"description":"Only deals in this stage (etapa).","schema":{"description":"Only deals now in this stage (a stage id from the campaign's stages).","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-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":"updated_since","in":"query","required":false,"description":"Only items changed at or after this instant (ISO 8601).","schema":{"description":"Only rows changed at or after this ISO 8601 timestamp, e.g. 2026-11-01T00:00:00Z.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"q","in":"query","required":false,"description":"Text to match (2 to 80 characters, a literal substring, case-insensitive).","schema":{"type":"string","minLength":2,"maxLength":80,"description":"Only deals whose creator's handle or name contains this text (2 to 80 characters)."}},{"name":"creator_id","in":"query","required":false,"schema":{"description":"Only rows of this creator (a 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":"outcome","in":"query","required":false,"schema":{"description":"Only deals whose current stage has this outcome: open (an ordinary stage), won, paused or lost.","type":"string","enum":["open","won","paused","lost"]}},{"name":"fields","in":"query","required":false,"description":"`full` (default) or `compact` (the `<Resource>Compact` items).","schema":{"description":"full (default) = every field; compact = id, name or handle, status or stage and one date (smaller pages, for assistants).","type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/DealList"},{"$ref":"#/components/schemas/DealCompactList"}]}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/deals/{id}":{"get":{"operationId":"getDeal","summary":"Get a deal","description":"One deal (card) by id.\n\nScope: `deals:read`.","tags":["Deals"],"security":[{"bearer":[]},{"oauth2":["deals:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deal"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/deliverables":{"get":{"operationId":"listDeliverables","summary":"List deliverables","description":"Deliverables (entregas) of the deals, with deadlines, the published URL and the post verification status. No post metrics.\n\nScope: `deliverables:read`.","tags":["Deliverables"],"security":[{"bearer":[]},{"oauth2":["deliverables:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"deal_id","in":"query","required":false,"description":"Only items of this deal.","schema":{"description":"Only rows of this deal (a 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)$"}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"Delivery status. verified = the published post was checked; post_removed = it was taken down.","type":"string","enum":["pending","submitted","in_review","changes_requested","approved","published","verified","post_removed"]}},{"name":"updated_since","in":"query","required":false,"description":"Only items changed at or after this instant (ISO 8601).","schema":{"description":"Only rows changed at or after this ISO 8601 timestamp, e.g. 2026-11-01T00:00:00Z.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"fields","in":"query","required":false,"description":"`full` (default) or `compact` (the `<Resource>Compact` items).","schema":{"description":"full (default) = every field; compact = id, name or handle, status or stage and one date (smaller pages, for assistants).","type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/DeliverableList"},{"$ref":"#/components/schemas/DeliverableCompactList"}]}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/deliverables/{id}":{"get":{"operationId":"getDeliverable","summary":"Get a deliverable","description":"One deliverable by id.\n\nScope: `deliverables:read`.","tags":["Deliverables"],"security":[{"bearer":[]},{"oauth2":["deliverables:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deliverable"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/coupons":{"get":{"operationId":"listCoupons","summary":"List coupons","description":"Coupon codes (cupons) issued to creators, with their benefit and status.\n\nScope: `coupons:read`.","tags":["Coupons"],"security":[{"bearer":[]},{"oauth2":["coupons:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"deal_id","in":"query","required":false,"description":"Only items of this deal.","schema":{"description":"Only rows of this deal (a 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)$"}},{"name":"benefit_id","in":"query","required":false,"description":"Only coupons of this benefit.","schema":{"description":"Only codes of this benefit (the benefit id on a coupon).","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/coupons/{id}":{"get":{"operationId":"getCoupon","summary":"Get a coupon","description":"One coupon code by id.\n\nScope: `coupons:read`.","tags":["Coupons"],"security":[{"bearer":[]},{"oauth2":["coupons:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sales":{"get":{"operationId":"listSales","summary":"List sales cycles","description":"Sales planilha cycles per campaign with totals (sales and commission, in cents). Rows come with GET /sales/{id}.\n\nScope: `sales:read`.","tags":["Sales"],"security":[{"bearer":[]},{"oauth2":["sales:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"cycle_key","in":"query","required":false,"description":"Only this cycle (`YYYY-MM`).","schema":{"description":"Only this month, YYYY-MM (e.g. 2026-10).","type":"string","maxLength":32}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesCycleList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sales/{id}":{"get":{"operationId":"getSalesCycle","summary":"Get a sales cycle","description":"One sales cycle with its rows (deal, coupon code, sales and commission).\n\nScope: `sales:read`.","tags":["Sales"],"security":[{"bearer":[]},{"oauth2":["sales:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesCycle"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/faturas":{"get":{"operationId":"listFaturas","summary":"List faturas","description":"The company's monthly faturas: status (aberta, parcial, paga), due date and totals in cents.\n\nScope: `faturas:read`.","tags":["Faturas"],"security":[{"bearer":[]},{"oauth2":["faturas:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"aberta = open, parcial = partly paid, paga = paid.","type":"string","enum":["aberta","parcial","paga"]}},{"name":"cycle_key","in":"query","required":false,"description":"Only this cycle (`YYYY-MM`).","schema":{"description":"Only the fatura of this billing month, YYYY-MM (e.g. 2026-10).","type":"string","maxLength":32}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaturaList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/faturas/{id}":{"get":{"operationId":"getFatura","summary":"Get a fatura","description":"One fatura by id. MCP tool get_fatura_status takes fatura_id or cycle_key; with neither it returns the most recent fatura.\n\nScope: `faturas:read`.","tags":["Faturas"],"security":[{"bearer":[]},{"oauth2":["faturas:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fatura"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/reports":{"get":{"operationId":"listReports","summary":"List reports","description":"Reports shared with the whole company (metadata and a link that opens in Vega). Drafts, templates and private reports are not listed.\n\nScope: `reports:read`.","tags":["Reports"],"security":[{"bearer":[]},{"oauth2":["reports:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/reports/{id}":{"get":{"operationId":"getReport","summary":"Get a report","description":"One company-visible report by id.\n\nScope: `reports:read`.","tags":["Reports"],"security":[{"bearer":[]},{"oauth2":["reports:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/notas-fiscais":{"get":{"operationId":"listNotasFiscais","summary":"List notas fiscais","description":"NFS-e where the company is the tomador: each creator's nota for a paid fatura charge (issuer_kind creator) and Vega's fee nota (issuer_kind vega). Amounts in cents. `period` (YYYY-MM) filters by competence month; status `emitido` = issued. pdf_url / xml_url are Vega API download links (same bearer, scope notas_fiscais:read), null while Vega holds no file.\n\nScope: `notas_fiscais:read`.","tags":["Notas-fiscais"],"security":[{"bearer":[]},{"oauth2":["notas_fiscais:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"period","in":"query","required":false,"description":"Only notas whose competence date falls in this month (`YYYY-MM`, São Paulo time).","schema":{"description":"Competence month of the nota, YYYY-MM (e.g. 2026-10).","type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"fatura_id","in":"query","required":false,"description":"Only notas of this fatura.","schema":{"description":"Only the notas of this fatura (a 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)$"}},{"name":"issuer_kind","in":"query","required":false,"description":"Only notas issued by Vega (`vega`) or by a creator (`creator`).","schema":{"description":"creator = the creator's nota for a fatura charge; vega = Vega's fee nota.","type":"string","enum":["vega","creator"]}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"Nota status; emitido = issued.","type":"string","enum":["pendente","preparado","enviado","emitido","rejeitado","bloqueado","erro_provedor","reenvio_agendado"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotaFiscalList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/notas-fiscais/{id}":{"get":{"operationId":"getNotaFiscal","summary":"Get a nota fiscal","description":"One NFS-e by id, with its issuer (name and business CNPJ printed on the nota), amount, competence date, the linked fatura and the download links.\n\nScope: `notas_fiscais:read`.","tags":["Notas-fiscais"],"security":[{"bearer":[]},{"oauth2":["notas_fiscais:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotaFiscal"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/credits":{"get":{"operationId":"getCredits","summary":"Credit balance and prices","description":"The company's credit balance, the plan's monthly credits, the price of each paid action (search 5, more results 2, report 3 credits) and the page where a member buys credits. Free.\n\nScope: `prospecting:read`.","tags":["Credits"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credits"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/creator-searches":{"get":{"operationId":"listCreatorSearches","summary":"List creator searches","description":"The company's Vega AI creator searches of the last 90 days, newest first, from the app or the API, without their results (get one by id for them). Free.\n\nScope: `prospecting:read`.","tags":["Creator-searches"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"searching = still running, ready = finished, failed = refunded.","type":"string","enum":["searching","ready","failed"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorSearchList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}},"post":{"operationId":"createCreatorSearch","summary":"Start a creator search","description":"Find Brazilian creators matching a description with Vega's AI search: costs 5 credits for the first 20 results and takes about 30 seconds. The same description and filters asked again by the same credential within 2 minutes returns that search free. Requires the header Idempotency-Key (a UUID): a retry with the same key never pays twice. Answers 202 while searching (poll GET /creator-searches/{id}) or 200 when finished within wait.\n\nScope: `credits:spend`.","tags":["Creator-searches"],"security":[{"bearer":[]},{"oauth2":["credits:spend"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}},{"name":"wait","in":"query","required":false,"schema":{"description":"Seconds (0 to 50) to wait for the result before answering; 0 or absent on REST answers at once with 202 and the running resource.","type":"integer","minimum":0,"maximum":50}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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}}}},"responses":{"200":{"description":"Finished within `wait`, or nothing new was started (same Idempotency-Key, a repeat within 2 minutes, a report reused): see `billing.charged`.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorSearchCharged"}}}},"202":{"description":"Started and still running: poll the URL in `Location` (GET) after `Retry-After` seconds.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorSearchCharged"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ProfileUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/creator-searches/{id}":{"get":{"operationId":"getCreatorSearch","summary":"Get a creator search","description":"One search by id with the results the company paid for (status searching: call again in a few seconds). metrics are measured by Vega and null for creators Vega did not measure itself. Free, any number of times, for 90 days.\n\nScope: `prospecting:read`.","tags":["Creator-searches"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"order","in":"query","required":false,"schema":{"description":"Result order: relevance (default, the search rank), followers or engagement (highest first; results without the measure last).","type":"string","enum":["relevance","followers","engagement"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorSearch"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/creator-searches/{id}/more":{"post":{"operationId":"moreCreatorSearch","summary":"More results of a search","description":"Show 20 more results of a ready search for 2 credits (next tells whether one is available and its price). While a request for more is still running, asking again is free and returns it. Requires the header Idempotency-Key (a UUID).\n\nScope: `credits:spend`.","tags":["Creator-searches"],"security":[{"bearer":[]},{"oauth2":["credits:spend"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}},{"name":"wait","in":"query","required":false,"schema":{"description":"Seconds (0 to 50) to wait for the result before answering; 0 or absent on REST answers at once with 202 and the running resource.","type":"integer","minimum":0,"maximum":50}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Finished within `wait`, or nothing new was started (same Idempotency-Key, a repeat within 2 minutes, a report reused): see `billing.charged`.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorSearchCharged"}}}},"202":{"description":"Started and still running: poll the URL in `Location` (GET) after `Retry-After` seconds.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorSearchCharged"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ProfileUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/creator-reports":{"get":{"operationId":"listCreatorReports","summary":"List creator reports","description":"The company's simplified creator reports of the last 90 days, newest first, from the app or the API, each with its full document when ready. Free.\n\nScope: `prospecting:read`.","tags":["Creator-reports"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"platform","in":"query","required":false,"schema":{"description":"Only reports of this network.","type":"string","enum":["instagram","tiktok","youtube"]}},{"name":"handle","in":"query","required":false,"schema":{"description":"Only reports of this handle (with or without @, any case).","type":"string","minLength":1,"maxLength":101}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"generating = still running, ready = finished, failed = refunded.","type":"string","enum":["generating","ready","failed"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorReportList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}},"post":{"operationId":"createCreatorReport","summary":"Generate a creator report","description":"Generate a simplified creator report of an Instagram, TikTok or YouTube profile for 3 credits; takes about a minute. A ready report of the same profile less than 90 days old is returned free (unless refresh is true), and so is one still generating. Failure refunds the credits. Requires the header Idempotency-Key (a UUID).\n\nScope: `credits:spend`.","tags":["Creator-reports"],"security":[{"bearer":[]},{"oauth2":["credits:spend"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}},{"name":"wait","in":"query","required":false,"schema":{"description":"Seconds (0 to 50) to wait for the result before answering; 0 or absent on REST answers at once with 202 and the running resource.","type":"integer","minimum":0,"maximum":50}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"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}}}},"responses":{"200":{"description":"Finished within `wait`, or nothing new was started (same Idempotency-Key, a repeat within 2 minutes, a report reused): see `billing.charged`.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorReportCharged"}}}},"202":{"description":"Started and still running: poll the URL in `Location` (GET) after `Retry-After` seconds.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorReportCharged"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ProfileUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/creator-reports/{id}":{"get":{"operationId":"getCreatorReport","summary":"Get a creator report","description":"One simplified creator report by id (status generating: call again in a few seconds). Measured by Vega on the creator's public profile: identity, performance, brands, audience quality and, on TikTok, a measured follower sample. Free for 90 days.\n\nScope: `prospecting:read`.","tags":["Creator-reports"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorReport"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/creators":{"get":{"operationId":"listCreators","summary":"List creators","description":"The creators the company works with (every creator with a deal in one of its campaigns), most recent activity first: name, handle, networks, profile links, whether they joined Vega, deal counts. No follower or audience numbers. With payments:read also what the company paid them.\n\nScope: `creators:read`.","tags":["Creators"],"security":[{"bearer":[]},{"oauth2":["creators:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","required":false,"description":"Text to match (2 to 80 characters, a literal substring, case-insensitive).","schema":{"type":"string","minLength":2,"maxLength":80,"description":"Only creators whose handle or name contains this text (2 to 80 characters)."}},{"name":"platform","in":"query","required":false,"schema":{"description":"Only this network: instagram, tiktok or youtube.","type":"string","enum":["instagram","tiktok","youtube"]}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only creators with a deal in this campaign (a 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)$"}},{"name":"updated_since","in":"query","required":false,"description":"Only items changed at or after this instant (ISO 8601).","schema":{"description":"Only creators whose deals changed at or after this ISO 8601 timestamp.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"fields","in":"query","required":false,"description":"`full` (default) or `compact` (the `<Resource>Compact` items).","schema":{"description":"full (default) = every field; compact = id, name or handle, status or stage and one date (smaller pages, for assistants).","type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreatorList"},{"$ref":"#/components/schemas/CreatorCompactList"}]}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/creators/{id}":{"get":{"operationId":"getCreator","summary":"Get a creator","description":"One creator by id, with each of the company's deals with them (campaign and stage).\n\nScope: `creators:read`.","tags":["Creators"],"security":[{"bearer":[]},{"oauth2":["creators:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creator"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/creator-lists":{"get":{"operationId":"listCreatorLists","summary":"List saved creator lists","description":"The company's saved creator lists (Prospecção › Listas salvas), without their creators (get one by id for them). Free.\n\nScope: `prospecting:read`.","tags":["Creator-lists"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedCreatorListList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/creator-lists/{id}":{"get":{"operationId":"getCreatorList","summary":"Get a saved creator list","description":"One saved list with its creators: network, handle and name only (at most 1000; truncated says when there are more). Free.\n\nScope: `prospecting:read`.","tags":["Creator-lists"],"security":[{"bearer":[]},{"oauth2":["prospecting:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedCreatorList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/payments":{"get":{"operationId":"listPayments","summary":"List payments","description":"Each creator's part of the company's monthly faturas: gross amount, Vega's fee, the processing and transfer fees and the total, in cents, with status and dates. Read-only: nothing here pays anyone.\n\nScope: `payments:read`.","tags":["Payments"],"security":[{"bearer":[]},{"oauth2":["payments:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"fatura_id","in":"query","required":false,"description":"Only notas of this fatura.","schema":{"description":"Only payments of this fatura (a 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)$"}},{"name":"creator_id","in":"query","required":false,"schema":{"description":"Only rows of this creator (a 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":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"Payment status; paga = paid, emitida = charge issued, adiada = moved to the next fatura.","type":"string","enum":["pendente","aguardando_conta","emitida","paga","estornada","falhou","aguardando_repasse","adiada"]}},{"name":"cycle_key","in":"query","required":false,"description":"Only this cycle (`YYYY-MM`).","schema":{"description":"Only payments of this billing month, YYYY-MM (e.g. 2026-10).","type":"string","maxLength":32}},{"name":"paid_since","in":"query","required":false,"schema":{"description":"Only payments paid at or after this ISO 8601 timestamp.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"fields","in":"query","required":false,"description":"`full` (default) or `compact` (the `<Resource>Compact` items).","schema":{"description":"full (default) = every field; compact = id, name or handle, status or stage and one date (smaller pages, for assistants).","type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PaymentList"},{"$ref":"#/components/schemas/PaymentCompactList"}]}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/payments/{id}":{"get":{"operationId":"getPayment","summary":"Get a payment","description":"One payment by id, with its lines (fixed, variable, commission, prize and fees).\n\nScope: `payments:read`.","tags":["Payments"],"security":[{"bearer":[]},{"oauth2":["payments:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/gamification-programs":{"get":{"operationId":"listGamificationPrograms","summary":"List Gamificação programs","description":"The company's Gamificação competitions and bonuses: period, repetition, whether invites went out (draft) and how many creators joined.\n\nScope: `gamification:read`.","tags":["Gamification-programs"],"security":[{"bearer":[]},{"oauth2":["gamification:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"kind","in":"query","required":false,"schema":{"description":"competicao = a competition, bonus = a bonus (Bonificação).","type":"string","enum":["competicao","bonus"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamificationProgramList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/gamification-programs/{id}":{"get":{"operationId":"getGamificationProgram","summary":"Get a Gamificação program","description":"One program by id with its confirmed cycles and their prizes (cash in cents or a described prize, place, points, status).\n\nScope: `gamification:read`.","tags":["Gamification-programs"],"security":[{"bearer":[]},{"oauth2":["gamification:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamificationProgram"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/events":{"get":{"operationId":"listEvents","summary":"List Agenda events","description":"The company's Agenda in a date window: its own events, the open events approved by Vega and its campaigns' periods, newest start date first.\n\nScope: `agenda:read`.","tags":["Events"],"security":[{"bearer":[]},{"oauth2":["agenda:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"from","in":"query","required":false,"schema":{"description":"First day of the window, YYYY-MM-DD (default: today, São Paulo time).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"schema":{"description":"Last day of the window, YYYY-MM-DD (default: from + 90 days; at most 366 days after from).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"kind","in":"query","required":false,"schema":{"description":"company_event = the company's own, vega_event = an open event, campaign = a campaign period.","type":"string","enum":["company_event","vega_event","campaign"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaEventList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/posts":{"get":{"operationId":"listPosts","summary":"List Monitoramento posts","description":"Posts Vega captured for the company (campaign hashtags and mentions, monitored partners), newest first. metrics only when Vega or the creator's own connected account measured them; otherwise null.\n\nScope: `monitoring:read`.","tags":["Posts"],"security":[{"bearer":[]},{"oauth2":["monitoring:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"creator_id","in":"query","required":false,"schema":{"description":"Only rows of this creator (a 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":"platform","in":"query","required":false,"schema":{"description":"Only this network: instagram, tiktok or youtube.","type":"string","enum":["instagram","tiktok","youtube"]}},{"name":"source","in":"query","required":false,"schema":{"description":"campaign_tag = captured by a campaign hashtag or mention; partner_monitor = a monitored partner.","type":"string","enum":["campaign_tag","partner_monitor"]}},{"name":"posted_since","in":"query","required":false,"schema":{"description":"Only posts published at or after this ISO 8601 timestamp.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"hashtag","in":"query","required":false,"schema":{"description":"Only posts captured by this hashtag (without #).","type":"string","minLength":1,"maxLength":100}},{"name":"fields","in":"query","required":false,"description":"`full` (default) or `compact` (the `<Resource>Compact` items).","schema":{"description":"full (default) = every field; compact = id, name or handle, status or stage and one date (smaller pages, for assistants).","type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PostList"},{"$ref":"#/components/schemas/PostCompactList"}]}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/posts/{id}":{"get":{"operationId":"getPost","summary":"Get a post","description":"One captured post by id.\n\nScope: `monitoring:read`.","tags":["Posts"],"security":[{"bearer":[]},{"oauth2":["monitoring:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/campaigns/{id}/summary":{"get":{"operationId":"getCampaignSummary","summary":"Campaign summary","description":"One campaign at a glance: deals by stage, deliverables by status, post metrics, sales, coupons and what needs attention. A block the credential has no scope for is left out (money needs payments:read).\n\nScope: `campaigns:read`.","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["campaigns:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSummary"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/overview":{"get":{"operationId":"getOverview","summary":"What needs attention","description":"The company at a glance: entregas to review, late entregas, deals waiting for a signed contract, the open fatura, published campaigns and the credit balance. Each block appears only with its scope.\n\nNo scope needed.","tags":["Overview"],"security":[{"bearer":[]},{"oauth2":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Overview"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/search":{"get":{"operationId":"search","summary":"Find campaigns, creators and deals","description":"Find campaigns by title and creators and deals by handle or name: at most 10 of each, each kind only with its scope. Use it to turn a name into an id.\n\nNo scope needed.","tags":["Search"],"security":[{"bearer":[]},{"oauth2":[]}],"parameters":[{"name":"q","in":"query","required":true,"description":"Text to match (2 to 80 characters, a literal substring, case-insensitive).","schema":{"type":"string","minLength":2,"maxLength":80,"description":"Text to find in campaign titles, creator handles and names (2 to 80 characters)."}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResults"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/reports/{id}/data":{"get":{"operationId":"getReportData","summary":"Get a report's data","description":"The table of a company-visible report, the same data as its CSV export: columns, then rows as arrays (at most 5000; truncated says when there are more). Columns fed by bought data are left out.\n\nScope: `reports:read`.","tags":["Reports"],"security":[{"bearer":[]},{"oauth2":["reports:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportData"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ReportRefused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sales-deliveries":{"get":{"operationId":"listSalesDeliveries","summary":"List sales deliveries","description":"Every batch of sales sent to Vega (by the sales webhook or by POST /campaigns/{id}/sales), newest first, with its outcome and error codes.\n\nScope: `sales:read`.","tags":["Sales-deliveries"],"security":[{"bearer":[]},{"oauth2":["sales:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page (`next_cursor`).","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 25).","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"campaign_id","in":"query","required":false,"description":"Only items of this campaign.","schema":{"description":"Only rows of this campaign (a 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)$"}},{"name":"status","in":"query","required":false,"description":"Only items with this status.","schema":{"description":"processing, accepted or rejected.","type":"string","enum":["processing","accepted","rejected"]}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesDeliveryList"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sales-deliveries/{id}":{"get":{"operationId":"getSalesDelivery","summary":"Get a sales delivery","description":"One batch of sales by id: processing, accepted or rejected, the rows matched and ignored, and the error codes by line.\n\nScope: `sales:read`.","tags":["Sales-deliveries"],"security":[{"bearer":[]},{"oauth2":["sales:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesDelivery"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/campaigns/{id}/deals":{"post":{"operationId":"addDealToCampaign","summary":"Add a creator to a campaign","description":"Creates a deal (cartão) for a creator in the campaign's first stage, as \"Adicionar criador\" does in the app. A creator already in the campaign answers 409 conflict with the existing deal. Requires the header Idempotency-Key (a UUID). Nothing here pays anyone.\n\nScope: `deals:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["deals:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"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}}}},"responses":{"201":{"description":"Created (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/deals/{id}/move":{"post":{"operationId":"moveDeal","summary":"Move a deal to another stage","description":"Moves the cartão to another stage of its campaign under the app's rules (required fields, exits, the stage's automations; its e-mail rules may notify the creator). A stage that releases money to the fatura or sends a contract answers 409 requires_app: that move is made in the app. Requires the header Idempotency-Key (a UUID).\n\nScope: `deals:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Deals"],"security":[{"bearer":[]},{"oauth2":["deals:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/deals/{id}/notes":{"post":{"operationId":"addDealNote","summary":"Add a note to a deal","description":"Adds a note to the cartão (visible to the company's members, never to the creator). Requires the header Idempotency-Key (a UUID).\n\nScope: `deals:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Deals"],"security":[{"bearer":[]},{"oauth2":["deals:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000,"description":"The note, 1 to 4000 characters."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/deliverables/{id}/review":{"post":{"operationId":"reviewDeliverable","summary":"Review a deliverable","description":"Approves the entrega's pending submission or asks for changes (with a comment the creator sees; they are notified). When the company's rules need evidence or a second person, an approval answers 202 with review pending_approval. Approving never pays anyone. Requires the header Idempotency-Key (a UUID).\n\nScope: `deliverables:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Deliverables"],"security":[{"bearer":[]},{"oauth2":["deliverables:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableReviewResult"}}}},"202":{"description":"Accepted: the change is pending (a review waiting for approval, sales still being processed).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableReviewResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/deals/{id}/coupon-codes":{"post":{"operationId":"createCouponCode","summary":"Create a coupon code","description":"Creates a coupon code (rascunho) for the deal's creator under one of the company's benefits; without code Vega generates one. A code already taken answers 409 conflict. Requires the header Idempotency-Key (a UUID).\n\nScope: `coupons:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Deals"],"security":[{"bearer":[]},{"oauth2":["coupons:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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: 3 to 24 characters A-Z, 0-9, _ or - (upper-cased). Absent = Vega generates one.","type":"string","pattern":"^[A-Z0-9_-]{3,24}$"}},"required":["benefit_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/coupons/{id}/issue":{"post":{"operationId":"issueCouponCode","summary":"Issue a coupon code","description":"Marks a rascunho code as emitido (issued to the creator), the one transition the app allows by hand. Requires the header Idempotency-Key (a UUID).\n\nScope: `coupons:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Coupons"],"security":[{"bearer":[]},{"oauth2":["coupons:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/campaigns/{id}/sales":{"post":{"operationId":"sendSales","summary":"Send sales","description":"Sends the campaign's sales for its open cycle, one row per coupon code or deal (at most 5000 rows, 2 MB), the same way the sales webhook does. Answers 202 with the delivery; poll GET /sales-deliveries/{id}. Commission reaches the fatura only through the app's usual close. Requires the header Idempotency-Key (a UUID).\n\nScope: `sales:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["sales:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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}}}},"responses":{"202":{"description":"Accepted: the change is pending (a review waiting for approval, sales still being processed).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesDelivery"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/campaigns/{id}/content-approval":{"get":{"operationId":"getCampaignContentApproval","summary":"Get a campaign's content approval","description":"How the campaign's content is approved (\"Aprovação automática pelas diretrizes\"): the setting (fully_automatic, automatic_with_manual_approval or fully_manual), the company's default for new campaigns, whether full automation is allowed, whether Vega checks videos and the credits one video checked costs, whether Vega has read the content guidelines, and the rules (each with its origin, condition, value, effect and whether it is on). Vega approves or refuses based on what is said in the content's audio and what is written in the caption; it does not watch the video, so it never judges the images or the visuals.\n\nScope: `campaigns:read`.","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["campaigns:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentApproval"}}}},"304":{"description":"Not modified (the `If-None-Match` ETag still matches).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}},"put":{"operationId":"setContentApprovalMode","summary":"Set a campaign's content approval","description":"Chooses how the campaign's content is approved, as the app's panel does. fully_automatic and automatic_with_manual_approval turn the check on and spend the company's credits: 1 credit per video checked (photos and text are free); the person responsible for the credential needs \"Editar automações das etapas\" and, for these two, \"Usar créditos\". fully_manual turns it off. Vega approves or refuses based on what is said in the content's audio and what is written in the caption; it does not watch the video, so it never judges the images or the visuals. Requires the header Idempotency-Key (a UUID). Nothing here pays a creator.\n\nScope: `content_approval:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["content_approval:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentApprovalWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/campaigns/{id}/content-approval/rules":{"post":{"operationId":"createContentApprovalRule","summary":"Add a content approval rule","description":"Adds a company rule to the campaign's content approval, as \"Nova condição\" does in the app: a condition from the closed list, its value and what Vega does. At most 20 rules per campaign. Vega approves or refuses based on what is said in the content's audio and what is written in the caption; it does not watch the video, so it never judges the images or the visuals. Requires the header Idempotency-Key (a UUID).\n\nScope: `content_approval:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["content_approval:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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}}}},"responses":{"201":{"description":"Created (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentApprovalWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/campaigns/{id}/content-approval/rules/{ruleId}":{"patch":{"operationId":"updateContentApprovalRule","summary":"Change a content approval rule","description":"Turns a rule on or off, changes what it makes Vega do, or (for a guidelines or company rule) rewrites its condition and value. A campaign rule (id campaign:<condition>) comes from the campaign's own set-up: only enabled and effect change. Vega approves or refuses based on what is said in the content's audio and what is written in the caption; it does not watch the video, so it never judges the images or the visuals. Requires the header Idempotency-Key (a UUID).\n\nScope: `content_approval:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["content_approval:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"ruleId","in":"path","required":true,"schema":{"type":"string","description":"A rule id from GET /campaigns/{id}/content-approval: a uuid, or campaign:<condition>."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"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}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentApprovalWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}},"delete":{"operationId":"deleteContentApprovalRule","summary":"Remove a content approval rule","description":"Removes a guidelines or company rule. A campaign rule cannot be removed: switch it off with PATCH (enabled false). Requires the header Idempotency-Key (a UUID).\n\nScope: `content_approval:write`. Off unless your company's API actions are switched on (409 `feature_unavailable` otherwise; `GET /me` reports it in `features.workflow_writes`).","tags":["Campaigns"],"security":[{"bearer":[]},{"oauth2":["content_approval:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"ruleId","in":"path","required":true,"schema":{"type":"string","description":"A rule id from GET /campaigns/{id}/content-approval: a uuid, or campaign:<condition>."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A UUID you choose per request. Repeating the request with the same key returns the same resource and never debits twice.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Changed (or replayed: see `Idempotent-Replayed`).","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Location":{"description":"The GET URL of the resource.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when this answer replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentApprovalWriteResult"}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/WriteForbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/WriteConflict"},"422":{"$ref":"#/components/responses/Refused"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/TemporarilyUnavailable"}}}},"/notas-fiscais/{id}/pdf":{"get":{"operationId":"notaFiscalPdf","summary":"Download the PDF of a nota fiscal","description":"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.\n\nScope: `notas_fiscais:read`.","tags":["Notas-fiscais"],"security":[{"bearer":[]},{"oauth2":["notas_fiscais:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"302":{"description":"Redirect to a signed URL of the file (`application/pdf`), valid for 60 seconds.","headers":{"Location":{"description":"The signed URL.","schema":{"type":"string"}},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FileUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/notas-fiscais/{id}/xml":{"get":{"operationId":"notaFiscalXml","summary":"Download the XML of a nota fiscal","description":"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.\n\nScope: `notas_fiscais:read`.","tags":["Notas-fiscais"],"security":[{"bearer":[]},{"oauth2":["notas_fiscais:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"302":{"description":"Redirect to a signed URL of the file (`application/xml`), valid for 60 seconds.","headers":{"Location":{"description":"The signed URL.","schema":{"type":"string"}},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/FileUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}}},"components":{"schemas":{"Error":{"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"]},"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":{"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"}},"required":["reads","paid_data_actions","workflow_writes"],"additionalProperties":false}},"required":["object","org","plan","credential","rate_limit","api_version","features"],"additionalProperties":false},"CampaignList":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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"}},"required":["object","id","code","status","benefit","deal_id","campaign_id","creator_handle","creator_name","issued_at","live_at","ends_at","created_at","updated_at"],"additionalProperties":false},"SalesCycleList":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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},"StageRef":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"type":"object","properties":{"kind":{"type":"string","enum":["list","extension"]},"credits":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["kind","credits"],"additionalProperties":false},"CreatorSearchResult":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"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":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},"ContentRule":{"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}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key (`vk_…`) or an OAuth access token (`vat_…`)."},"oauth2":{"type":"oauth2","description":"Authorization code with PKCE (S256). Dynamic client registration at the registration endpoint.","flows":{"authorizationCode":{"authorizationUrl":"https://use-vega.com/api/oauth2/authorize","tokenUrl":"https://use-vega.com/api/oauth2/token","refreshUrl":"https://use-vega.com/api/oauth2/token","scopes":{"campaigns:read":"Read campaigns and their stages.","deals:read":"Read deals (cards) and the creator name / handle / platforms.","deliverables:read":"Read deliverables and verified posts.","coupons:read":"Read coupon codes.","sales:read":"Read sales cycles and their rows.","faturas:read":"Read fatura status and totals.","reports:read":"Read report metadata and links.","notas_fiscais:read":"Read the NFS-e where the company is the tomador and download their PDF / XML.","prospecting:read":"Read the company's creator searches and creator reports, its credit balance and the price list.","creators:read":"Read the creators the company works with (name, handle, networks, deal counts; no follower or audience numbers).","payments:read":"Read each creator's payments and the deals' agreed values. Read-only: nothing pays anyone.","monitoring:read":"Read the posts Vega captured (Monitoramento); metrics only when Vega or the creator's own account measured them.","gamification:read":"Read the company's Gamificação competitions and bonuses and their results.","agenda:read":"Read the company's Agenda: its events, open events and campaign periods.","deals:write":"Add creators to campaigns, move deals between stages and add notes. Never money or contracts. Granted only by a member who may do it in the app; never part of a default.","deliverables:write":"Approve deliverables or ask for changes. Never pays anyone. Granted only by a member who may approve content; never part of a default.","coupons:write":"Create coupon codes and mark them issued. Granted only by a member who manages coupons; never part of a default.","sales:write":"Send a campaign's sales. Granted only by a member who may return the sales planilha; never part of a default.","content_approval:write":"Set a campaign's content approval by the guidelines and manage its rules. Granted only by a member who may edit the etapas' automations; choosing a checking setting (it spends credits per video checked) also needs the right to use credits, re-checked on every call. Never part of a default.","credits:spend":"Spend the company's credits: start a creator search, ask for more results, generate a creator report. Granted only by a member who may spend credits; never part of a default."}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this credential.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"ETag":{"description":"Weak validator of the body; send it back in `If-None-Match`.","schema":{"type":"string"}},"X-Request-Id":{"description":"Id of this request (quote it when you write to support: contato@use-vega.com).","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer challenge with the protected-resource metadata URL (RFC 9728). On a 403 `insufficient_scope` it also names the missing permission: `scope=\"deals:write\"`.","schema":{"type":"string"}}},"responses":{"InvalidRequest":{"description":"`invalid_request`: a query parameter or the cursor is invalid.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"`unauthorized` (missing or malformed bearer) or `invalid_token` (unknown, expired or revoked).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"`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).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"`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.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"FeatureUnavailable":{"description":"`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).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"`rate_limited`.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"FileUnavailable":{"description":"`file_unavailable`: Vega holds no such file for this nota yet, or the file failed Vega’s file check.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"`internal_error`.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PaymentRequired":{"description":"`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).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"`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).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ProfileUnavailable":{"description":"`profile_unavailable`: the profile does not exist, is private or was removed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"WriteForbidden":{"description":"`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).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"WriteConflict":{"description":"`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`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ReportRefused":{"description":"`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.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Refused":{"description":"`refused`: Vega refused the change (details.reason; a move's missing required fields in details.missing). Nothing was changed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TemporarilyUnavailable":{"description":"`temporarily_unavailable`: nothing was spent (details.credits_refunded); retry after Retry-After.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"security":[{"bearer":[]},{"oauth2":[]}]}