Vega talks to your finance team, your BI and your AI assistant.
Follow campaigns, check payments and tax invoices, prospect creators and approve deliverables through the API or by asking Claude or ChatGPT, and get a notice in your own system when something happens. Reading is free. Changing something in campaigns and spending credits need their own permissions, which start turned off. Nothing here pays, bills or sends a contract.
The API and the AI connector read your company's data in Vega and, if you allow it, make a few changes in campaigns. Every plan includes both, and reading is free.
Access always belongs to a company that is already on Vega, with a plan or a free trial. It all starts at the API and MCP card, in Settings, Integrations. The card is always on screen and shows four lines: the company's plan includes the API, the API is switched on for the company, you are an Administrator and two-step verification is on. Each line is ticked or says what is missing and who fixes it.
Who can connect
A key or a connector always belongs to one company on Vega and reads that company's data. There are three cases:
Your company already uses Vega. An Administrator creates the key or approves the connector, on any plan and during the free trial too. With the card's four lines ticked, nobody at Vega needs to do anything: follow the steps below. If the line about the API being switched on is not ticked, Vega switches it on: write to contato@use-vega.com.
You build software for a company that uses Vega (an agency, a BI team, a tool of your own). You do not need a Vega account. The company's Administrator creates a key and hands it to you, or your software connects as an app and the Administrator approves the access on Vega's screen: see "Building your own app" in AI assistants.
Your company does not use Vega yet. Access starts with a plan or a free trial, arranged with our team: book a conversation. When Vega gives the access, the company's Administrators get an e-mail with the link to sign in.
There are two ways to start.
With your AI assistant, no key
In Claude or ChatGPT, add this address as a connector, sign in to Vega and approve the access. The step by step for each assistant is in AI assistants.
MCP address
https://use-vega.com/api/mcp
Then ask in plain language:
"Which campaigns are published, and how many cards does each one have in each stage?"
With an API key
In Vega, open Settings, Integrations. On the API and MCP card, check the four lines and click Create key. The button appears when all four are ticked; if two-step verification is missing, the line itself takes you to turn it on and brings you back.
Give it a name that says what the key is for, for example "BI dashboard", and tick only the permissions it needs (see Permissions). If you want, choose when it expires.
Copy the key, which starts with vk_. It appears only once: Vega keeps only a fingerprint of it and cannot show it again. The same window has the API address, the command of the first call with the key already in it and the Test button, which makes that call and shows the company, the permissions and the limit.
Treat the key like a password: keep it out of spreadsheets, e-mails and code that goes into a repository. If it leaks, revoke it in Settings, Integrations. Revoking takes effect at once.
Replace vk_SUA_CHAVE with your key and make the first call:
The answer shows the company, the key's permissions, the limit of calls per minute and, in features, what is switched on for the company: reading, searching and generating reports (paid_data_actions) changing campaigns (workflow_writes) and sending orders (sales_orders). If you get invalid_token, the key was copied incomplete or has been revoked. If you get api_not_enabled, the key is valid and the API is not switched on for the company yet: write to contato@use-vega.com. Every error that has a next step says what it is, in details.next_step (see Errors).
Now, real data: the published campaigns, ten at a time.
Six everyday tasks, each with the API calls on one side and the request to the assistant on the other. The calls use example ids: swap them for the ones the previous answer gave you. The assistant finds campaigns and creators by name, so you need no id at all to ask.
Each payment is one creator's part of the fatura: gross amount, Vega's fee, the fees, the total and the status (paga = paid, emitida = issued, adiada = moved to the next fatura, and the others in the reference). Reading one payment by its id also brings its lines: fixed, variable, commission, prize and fees.
Describe the profile you are looking for, in Portuguese for the best results. The search spends credits and takes about 30 seconds. With wait, the answer comes only when the search finishes; if the time runs out first, the answer is 202 and you read the search later, spending nothing.
bash
curl -si -X POST "https://use-vega.com/api/v1/creator-searches?wait=50" \
-H "Authorization: Bearer vk_SUA_CHAVE" \
-H "Idempotency-Key: 3f6c2a9e-8b1d-4f7a-9c0e-5d2b7a1e4c90" \
-H "Content-Type: application/json" \
-d '{"description":"criadoras de moda praia no Rio de Janeiro, tom leve e bem-humorado","platforms":["instagram","tiktok"],"min_followers":10000,"max_followers":300000,"min_engagement_rate":0.02}'
Find the campaign's id by its name (as in step 1 of Follow a campaign) and create the card. It starts in the first stage, as Add creator does in the app. If the creator already has a card in that campaign, the answer is 409 and carries the id of the card that exists.
A simplified report of one profile, available for 90 days.
Free: reading searches, reports, the balance and the prices; asking for the same search again, from the same key or app, within 2 minutes; asking for a report of a profile that has a ready one less than 90 days old; repeating a call with the same Idempotency-Key (how to repeat). If a search or a report fails, the credits come back on their own. Every paid answer carries the billing block: whether it charged, how much and the balance right after.
Asking the assistant
Find three beachwear creators in Rio with up to 300 thousand followers, generate the report of the most promising one and add her to the Verão campaign.
The description of each tool that spends credits states its price and when it is free. On the connector, search and report wait up to 45 seconds for the result, so the assistant usually answers with them ready.
Asking for changes needs a comment, which the creator sees:
bash
curl -si -X POST "https://use-vega.com/api/v1/deliverables/e8b4c2a1-3d5f-4a7e-9c0b-1f2e3d4c5b6a/review" \
-H "Authorization: Bearer vk_SUA_CHAVE" \
-H "Idempotency-Key: <um UUID novo>" \
-H "Content-Type: application/json" \
-d '{"decision":"request_changes","comment":"Troque a música do começo, por favor."}'
When the company requires evidence or another person's confirmation to approve, the answer is 202 with review: "pending_approval": the approval waits for that person in Vega. Approving a deliverable never pays anyone.
Asking the assistant
Which deliverables are waiting for review? Approve the one from @perfil.exemplo and ask the other one to change the opening music.
One row per coupon or per card, with the amount in cents, up to 5000 rows per delivery. The sales go into the campaign's open cycle, as through the sales webhook. The answer is 202: Vega checks the rows right after.
processing while Vega checks; then accepted or rejected. A row that matches no coupon or card shows in errors, with the row number and a code, never its contents. The commission reaches the fatura only at the month's close, as always. Once Vega accepts the delivery, the campaign's creators are told their results, as when the spreadsheet is sent in the app.
If your system has the orders, send each one with the code, the paid day and what the buyer paid for the products after the discount, without freight, in cents. Each order waits to be confirmed for the benefit's days, then counts as confirmed; one cancelled or refunded meanwhile is voided. Sending the same order number again only updates an order still waiting. A refused order comes back by its index, with the reason, and the others stay. This needs the orders switch on for the company: ask support.
Each order becomes one line, with no buyer data and no order number. The commission reaches the fatura only when the company signs the cutoff planilha, which Vega brings already filled in with the confirmed orders.
The setting (fully_automatic = Fully automatic, automatic_with_manual_approval = Automatic with manual approval, fully_manual = Fully manual), whether Vega already read the guidelines, how many credits each video checked costs, and the rules, each with its origin (campaign, guidelines or company) and what it does (approve, attention, refuse).
The two checking settings spend the company's credits per video checked (photos and text are free); the answer states the price in notices. The key's responsible person needs to edit automations and, for those two, to use credits.
The deliverable (and the Monitoramento post) carries guidelines_check: the result, who decided and each point outside the guidelines with the passage and the second of the audio. The whole transcript never leaves. To be told, subscribe to content_check.completed and content_approval.changed in Receive events.
Vega approves or refuses based on what is said in the content's audio and what is written in the caption. Our AI does not watch the video: it does not see the images and has no opinion on the visuals.
Asking the assistant
In the Verão campaign, set the approval to Automatic with manual approval and add a rule: the creator must mention the coupon PERFIL10. Then tell me which deliverables fell outside the guidelines.
Vega finishes checking a piece of content against the guidelines, once per check. It carries the result, what Vega did and the rules of the points outside, never the passage or the transcript. A person's later decision shows on the deliverable or the post.
A new line enters the sales ledger: an order waiting to be confirmed, a period total or an adjustment, from any door. Never carries the coupon code or the order number.
The Send test button sends a webhook.test event, whose data carries only the endpoint_id. Answer 2xx to it too.
Check the signature
Anyone can find out your webhook's address; the signature proves the notice came from Vega. The Vega-Signature header carries the sending time (t) and the signature (v1), an HMAC-SHA256 of t, a dot and the body, with the whole whsec_... secret as the key.
Take the request's raw body, before parsing the JSON.
Compute the HMAC-SHA256 of t.body with your secret and compare it with v1 in constant time (the functions below already do).
Refuse it if t is more than 5 minutes away from your clock: that stops old notices from being replayed.
If the signature does not match, answer 400.
Node.js: assinatura.js
import { createHmac, timingSafeEqual } from 'node:crypto'
/**
* segredo o valor whsec_… mostrado uma única vez ao criar o webhook
* corpo o corpo CRU da requisição, como texto (não o JSON já convertido)
* cabecalho o valor do cabeçalho Vega-Signature
*/
export function assinaturaValida(segredo, corpo, cabecalho, toleranciaS = 300) {
let t = null
const v1 = []
for (const parte of String(cabecalho ?? '').split(',')) {
const i = parte.indexOf('=')
if (i < 0) continue
const chave = parte.slice(0, i).trim()
const valor = parte.slice(i + 1).trim()
if (chave === 't') t = valor
else if (chave === 'v1') v1.push(valor)
}
if (!/^\d+$/.test(t ?? '') || v1.length === 0) return false
// Recusa mensagens antigas (ou do futuro): protege contra reenvio.
if (Math.abs(Date.now() / 1000 - Number(t)) > toleranciaS) return false
const esperado = createHmac('sha256', segredo).update(`${t}.${corpo}`).digest()
return v1.some((candidato) => {
const recebido = Buffer.from(candidato, 'hex')
return recebido.length === esperado.length && timingSafeEqual(recebido, esperado)
})
}
Node.js: Express server
import express from 'express'
import { assinaturaValida } from './assinatura.js'
const app = express()
// express.raw entrega o corpo sem mexer. Se o JSON for convertido antes,
// a assinatura deixa de bater.
app.post('/vega/webhook', express.raw({ type: 'application/json' }), (req, res) => {
const corpo = req.body.toString('utf8')
if (!assinaturaValida(process.env.VEGA_WEBHOOK_SECRET, corpo, req.get('Vega-Signature'))) {
return res.sendStatus(400)
}
const evento = JSON.parse(corpo)
// Guarde evento.id: o mesmo evento pode chegar mais de uma vez.
console.log(evento.type, evento.id)
res.sendStatus(200) // responda rápido; o trabalho pesado fica para depois
})
app.listen(3000)
Python: assinatura.py
from __future__ import annotations
import hashlib
import hmac
import time
def assinatura_valida(segredo: str, corpo: bytes, cabecalho: str | None, tolerancia_s: int = 300) -> bool:
"""segredo: o whsec_… mostrado uma única vez. corpo: os bytes crus da requisição."""
t = None
v1 = []
for parte in (cabecalho or "").split(","):
chave, sep, valor = parte.partition("=")
if not sep:
continue
chave, valor = chave.strip(), valor.strip()
if chave == "t":
t = valor
elif chave == "v1":
v1.append(valor)
# isascii(): str.isdigit() also accepts digits such as "²", which int() refuses.
if t is None or not (t.isascii() and t.isdigit()) or not v1:
return False
# Recusa mensagens antigas (ou do futuro): protege contra reenvio.
if abs(time.time() - int(t)) > tolerancia_s:
return False
esperado = hmac.new(segredo.encode(), t.encode() + b"." + corpo, hashlib.sha256).hexdigest().encode()
# Compara bytes: compare_digest recusa (TypeError) um texto com caractere não ASCII.
return any(hmac.compare_digest(esperado, candidato.encode("utf-8")) for candidato in v1)
Python: Flask server
import os
from flask import Flask, abort, request
from assinatura import assinatura_valida
app = Flask(__name__)
@app.post("/vega/webhook")
def vega_webhook():
corpo = request.get_data() # bytes crus, antes de qualquer conversão
if not assinatura_valida(os.environ["VEGA_WEBHOOK_SECRET"], corpo, request.headers.get("Vega-Signature")):
abort(400)
evento = request.get_json()
# Guarde evento["id"]: o mesmo evento pode chegar mais de uma vez.
print(evento["type"], evento["id"])
return "", 200 # responda rápido; o trabalho pesado fica para depois
Delivery and retries
Answer with any 2xx within 10 seconds and leave the heavy work for later.
The address must be https, with a domain name (no IP address or internal network), on port 443. Redirects are not followed.
Any other answer, or none, counts as a failure. Vega tries again at growing intervals, for about 22 hours, 10 attempts in all:
Attempt
When
1
Right away
2
30 s after the previous one
3
2 min after the previous one
4
10 min after the previous one
5
30 min after the previous one
6
1 h after the previous one
7
2 h after the previous one
8
4 h after the previous one
9
6 h after the previous one
10
8 h after the previous one
If the address fails for 72 hours in a row, Vega turns the webhook off and tells the company's administrators by e-mail and inside Vega. Fix the address and turn it on again in Integrations.
The order of events is not guaranteed and the same event can arrive more than once. Use the id (evt_..., also in the Vega-Event-Id header) to ignore repeats, and the date inside data to know which is newest.
In Vega
Open Settings, Integrations. On the Webhooks card, click Create webhook.
Enter the address (https) and tick the events you want.
Keep the whsec_... secret: it appears only once, and it is what you check the signature with.
Click Send test. The webhook's delivery list shows each send, with its status, the HTTP code and the time of each attempt.
Permissions
Each key and each connected app carries only the permissions ticked when the key was created or the app approved. A call outside them answers insufficient_scope. There are three kinds: read, act (change something in campaigns) and spend credits.
Read the cards: stage, creator, contract (status and dates), deliverables and the post metrics measured through the creator's own account.In the reference: List cards (deals) · See a card
Whoever holds the Integrations permission.
deliverables:read Deliverables
Read the deliverables: due date, status, the published post and its verification.In the reference: List deliverables · See a deliverable
Read the creators the company works with: name, handle, networks and each one's cards. No audience numbers.In the reference: List creators · See a creator
Whoever holds the Integrations permission.
payments:read Agreed values and payments
Read the value agreed with each creator and each creator's part of the faturas: gross, fees, total and status.In the reference: List payments · See a payment
Whoever holds the Integrations permission.
monitoring:read Monitoramento
Read the posts Monitoramento captured. Numbers come only when Vega or the platform measured them.In the reference: List Monitoramento posts · See a post
Whoever holds the Integrations permission and also Use credits. Vega checks again on every call.
What a key can change
Reading changes nothing. Reads use database access that can only read.
Changing something in campaigns (adding a creator, moving a card or adding a note to it, reviewing a deliverable, creating or issuing a coupon, sending sales) works only on a key or an app that was given the act permission for it. These permissions start turned off, and only someone who holds, in Vega, the permission to do the same thing in the app can grant them.
Nothing here pays, bills or sends a contract. Moving a card into a stage that releases to the fatura or sends a contract, or out of such a stage, is refused with requires_app: that change is made in Vega.
Actions in campaigns are switched on for every company. GET /me shows, in features, what is switched on for yours. If Vega switches the actions off for a company, they stop appearing in Integrations and the calls answer feature_unavailable, with who to talk to.
How an act or spend permission is granted
They are never ticked by default. On the key form they appear only to someone who holds the matching app permission (the Who can grant it column above). On the screen where you approve an app, such as Claude or ChatGPT, each one has a switch, which starts off.
Every change and every spend is made in the name of one person: whoever created the key or approved the app. On every call, Vega checks that this person is still in the company and still holds the permission. If not, the answer is write_not_allowed or spend_not_allowed, and nothing changes and nothing is charged. Someone with the permission creates a new key or connects the app again.
In Integrations, each key and each app shows what it may change and how many credits it spent this month.
What is shown and what never is
Shown: the company's data in Vega, meaning campaigns and stages, cards (with the contract's status and dates), the creators the company works with (name, handle and networks), deliverables, coupons, sales, faturas, tax invoices, reports, Gamificação, the Agenda, searches and simplified reports.
Post metrics measured through the creator's own connected account are shown on the card and in the campaign summary. On Monitoramento posts, numbers are shown only when Vega or the platform measured them; on the others, metrics is null. A creator's followers and engagement are shown only when Vega measured them itself, in a search or a simplified report.
The value agreed with each creator and the payments per creator are shown only with the payments:read permission. Each card's coupon codes are shown only with the coupons:read permission.
Monitoramento posts and Gamificação follow the company's plan, as in the app: if the plan does not include the module, those reads answer module_not_in_plan, and the campaign summary adds up the cards' own metrics only.
Never shown: e-mail, phone, CPF, Pix key, bank details, the contract document, post captions and numbers bought from a vendor. Reads return only what is stored in Vega, without asking anyone else on each call.
Keys and apps that already exist
A key or a connected app gains no permission by itself. To use a new permission, create a key with it, or connect the app again and approve.
AI assistants (MCP)
MCP is the standard way for an AI assistant, such as Claude or ChatGPT, to query a system on its own. With Vega connected, you ask in plain language and the assistant looks for the answer in your company's data. It sees and does only what the approved key or app allows (see Permissions). The connector's address is this:
MCP address
https://use-vega.com/api/mcp
There are two ways, and the first is the simplest for someone outside IT.
No key, one click (Claude and ChatGPT): you add the address above as a connector, sign in to Vega with your account and approve. No key changes hands.
With a key (Claude Code, Cursor and the Claude Desktop file): you paste the vk_ key into the tool's configuration.
Steps checked against the vendors' own pages on November 12, 2026. Those tools' menus change now and then and many are in English, so the names below are as they appear there. Sources: Claude, ChatGPT, Claude Code, Cursor, mcp-remote.
Claude (claude.ai and Claude Desktop)
Claude connectors work on the website and in the desktop app. Anthropic makes the connection, from its own cloud, so the address must be public, as Vega's is.
Open "Customize" and then "Connectors".
Click "+ Add" and choose "Add custom connector".
Give it a name (for example, "Vega") and paste the MCP address above. Click "Continue".
Under "Authentication", keep "Sign in now". If Claude asks how it should identify itself ("OAuth client"), choose "Register automatically": Vega accepts automatic registration.
Click "Add". A Vega window opens: sign in with your account, check the app name and the permissions, decide whether the app may spend credits and make changes in campaigns (these options start off) and click Allow access. Vega asks for two-step verification before allowing; if you have not turned it on yet, you turn it on there and come back to the same request.
In a conversation, click the "+" in the bottom left corner, then "Connectors", and turn Vega on.
On Claude's Team and Enterprise plans, the organization's owner adds the connector, in "Organization settings", "Connectors", "Add", "Custom", "Web". Then each person opens "Customize", "Connectors" and clicks "Connect". Prefer signing in. Claude also accepts a fixed header in "Request headers" (Authorization with the value Bearer vk_...), but note: on the Team and Enterprise plans, a key placed there works for everyone in the Claude organization, is stored in Claude and does not appear in Connected apps to be disconnected person by person. If you use it, create a key with only the permissions needed and an expiry date.
Click the "+" button and choose "Add custom MCP server".
Give it a name and a description (for example, "Vega" and "My company's influencer data").
Under "Connection", paste the MCP address, with the /api/mcp path at the end.
Set authentication to OAuth, read the notice and click "I understand and want to continue".
Click "Create as a plugin". A Vega window opens: sign in with your account and click Allow access.
In a new conversation, type @ and choose Vega.
Your ChatGPT workspace rules may restrict custom MCP servers. If the button does not appear, ask the workspace administrator.
If Claude or ChatGPT shows an error right when you add the connector (before the Vega window opens), wait a minute and try again. If it keeps happening, use the key path below and tell Vega support, at contato@use-vega.com, the time of the attempt.
Claude Code
In the terminal, with the key created in Settings, Integrations:
Save this file as .cursor/mcp.json in the project (or ~/.cursor/mcp.json to apply it everywhere) and keep the key in the VEGA_API_KEY environment variable. Cursor replaces ${env:VEGA_API_KEY} with the variable's value.
Prefer the connector above. If you need the claude_desktop_config.json file (for example, to pin a key), use mcp-remote, which needs Node.js installed. The header goes with no space after the colon, and the value sits in the VEGA_AUTH variable, because some apps break arguments that contain a space.
Four tools do the work of several reads and take a name instead of an id:
find: finds campaigns, creators and cards by a name or handle.
what_needs_attention: the company at a glance, with the deliverables to review, the late ones, the cards waiting for a contract and the open fatura.
campaign_summary: a campaign's summary by its name. If more than one campaign has that name, the assistant gets the list and asks which one.
creator_overview: one creator at a glance, with their cards, payments, posts and latest simplified report. Each part comes only with its permission.
Lists reach the assistant in the compact form (only each item's essentials), so more fits in a conversation.
Tools that change data
Twelve tools change something in campaigns and are marked "Changes data" in the table below: add a creator to a campaign, move a card, add a note to a card, review a deliverable, create a coupon, issue a coupon, send sales, send orders (only with the orders switch on for the company), set the content approval and add, change and remove one of its rules. Choosing a checking approval spends credits per video checked; Vega checks what is said in the audio and written in the caption, never the images. Claude and ChatGPT ask for your confirmation before using each one. Moving a card and reviewing a deliverable may notify the creator; an accepted sales delivery tells the campaign's creators. They work only with the act permissions, and none of them pays anyone.
Ready-made prompts
The connector brings three prompts (MCP prompts), in Portuguese or English. Assistants that show MCP prompts list them next to the connector:
Campaign status (campaign_status): a campaign's summary and what needs attention in it.
Reconcile last month's payments (reconcile_last_month_payments): the month's fatura, each creator's part and the tax invoices.
Prospect into a campaign (prospect_into_campaign): search for creators, generate the report of the best ones and add the chosen one to the campaign.
All the tools
The assistant uses only the tools the approved key or app allows.
Authorization server metadata: https://use-vega.com/.well-known/oauth-authorization-server
Dynamic client registration (RFC 7591), authorization code with PKCE S256 (required) and resource (RFC 8707).
The access token lasts 1 hour. The refresh token lasts 30 days and rotates on each use; reusing a token that was already rotated revokes the whole connection.
A complete example, in three steps. First, register the app, once. The answer carries the client_id, which starts with vcl_:
A registered app that nobody ends up using (no approved request, no code exchanged) is deleted 7 days after registration. If that happens, register again.
Then generate a random code_verifier (43 to 128 characters), compute the code_challenge (its SHA-256 in base64url) and open this address in the person's browser. In scope, ask only for the permissions the app needs; in resource, send the MCP address (or the API's, for an app that calls the REST API):
Vega asks the person to sign in and shows the approval screen, with what has to be ready: the company's plan includes the API, the API is switched on for the company, the person is an Administrator and has two-step verification. If the plan does not include the API or it is not switched on for the company, the screen says who fixes it and does not let anyone approve. Once approved, the browser goes back to your return address with code and the same state. Once refused, it goes back with error=access_denied.
Finally, exchange the code for the tokens. The code lasts 10 minutes and one exchange:
Use the access_token in the Authorization: Bearer header. The scope field of the answer says what was actually granted, which can be less than the app asked for. An app that does not belong to a known vendor appears on the approval screen as "Unverified app", with the address the access goes to.
Someone in the company with the Integrations permission approves the connection. Connected apps appear in Settings, Integrations, and can be disconnected there at any time: the app's next call already gets invalid_token.
Errors
Every error has the same shape: a stable code your code can test, a message in English and the request_id. Keep the request_id: Vega support answers at contato@use-vega.com and finds the call by it.
Response (401)
{
"error": {
"code": "invalid_token",
"message": "The access token is invalid, expired or revoked.",
"request_id": "req_01JC8Q3X5Z"
}
}
Some errors carry details, with what is missing for the call to work. A change Vega refuses because it touches money or a contract names the stage and the reason:
Response (409)
{
"error": {
"code": "requires_app",
"message": "This change moves money or sends a contract, which is done only in the Vega app. Nothing was changed.",
"request_id": "req_01JD2M8Q4T",
"details": {
"stage": {
"id": "1d6c3b44-8e2f-4a7d-9c5b-3e0f7a1d6b03",
"name": "Concluídos"
},
"reason": "payment"
}
}
}
Whenever a change is refused, nothing was changed.
The error says what to do
When there is a next step, it comes in details.next_step, one sentence in English, and details.who_can_fix says who fixes it: vega_support (Vega) or company_admin (an Administrator of the company).
A valid key never gets not_found because something is switched off. If the API is not switched on for the company, the answer is api_not_enabled:
Response (403)
{
"error": {
"code": "api_not_enabled",
"message": "The API is not switched on for this company yet. Vega support can switch it on: write to contato@use-vega.com.",
"request_id": "req_01JD2M8Q4T",
"details": {
"next_step": "Write to contato@use-vega.com with this request_id.",
"who_can_fix": "vega_support"
}
}
}
If a group of operations is switched off for the company, the answer is feature_unavailable, and details.feature says which: paid_data_actions (search and reports), workflow_writes (changes to campaigns) or sales_orders (sending orders). GET /me shows all three in features, to check before calling.
When a permission is missing, details.required_scope names it, and the same name comes in the WWW-Authenticate header:
Response (403)
{
"error": {
"code": "insufficient_scope",
"message": "The credential does not carry the permission this operation needs: deals:write.",
"request_id": "req_01JD2M8Q4T",
"details": {
"required_scope": "deals:write",
"next_step": "Create an API key with the permission deals:write in Configurações > Integrações, or reconnect the app and approve it."
}
}
}
With no key, or a key that does not exist, has expired or was revoked, none of this appears: the answer is still unauthorized or invalid_token.
Code
HTTP
What it means
unauthorized
401
The call came without a key, or the Authorization header is malformed.
invalid_token
401
The key or token does not exist, has expired or was revoked. The message is the same in all three cases on purpose.
insufficient_scope
403
The key does not have the permission this call needs. details.required_scope names it, and the same name comes in the WWW-Authenticate header. Create another key with it, or connect the app again and approve.
module_not_in_plan
403
The company's current plan does not include the API, or the Monitoramento or Gamificação module the read needs. details.module says which: api, monitoring or gamification.
api_not_enabled
403
The key is valid, but the API is not switched on for your company yet. Vega switches it on: write to contato@use-vega.com with the request_id.
not_found
404
The address does not exist, the id does not exist or is malformed, or the item belongs to another company. All of these answer the same. With a valid key, something switched off for the company never answers not_found: it answers api_not_enabled or feature_unavailable, with what to do.
invalid_request
400
A parameter is invalid, for example a limit above 100 or a cursor that was changed.
method_not_allowed
405
This address does not accept that method. Reads are GET; paid actions and changes are POST. The Allow header says what is accepted.
file_unavailable
409
The invoice's file cannot be downloaded now: Vega does not hold that file yet, or it did not pass Vega's file check. The invoice's data comes in the invoice read, and the document can be looked up at the issuer with provider_reference.
rate_limited
429
Too many calls in one minute. Wait for the time in the Retry-After header (the same number comes in details.retry_after_seconds).
internal_error
500
An error on our side. Try again; if it keeps happening, write to contato@use-vega.com with the request_id.
insufficient_credits
402
The company does not have enough credits for this action. Nothing was charged. details says how many credits the action needs (credits_needed), the current balance (balance) and where to buy (buy_url). When the company's plan does not buy credits in the app, buy_url is absent and details.next_step says who to talk to.
trial_limit
402
The free trial does not allow this action now. details.reason says why: the day's limit (daily_cap), the trial credits ran out (allowance), the trial has not started (not_started) or has ended (ended), or the company has no access (no_access).
spend_not_allowed
403
The person responsible for the key (who created it) or for the app (who approved it) can no longer spend credits: they left the company or lost the Use credits permission. Nothing was charged. Someone with that permission has to create a new key or connect the app again.
feature_unavailable
409
Something the call uses is not switched on for your company: searches and reports through the API (details.feature paid_data_actions), changes to campaigns through the API (details.feature workflow_writes), or the Vega AI search or the simplified report. Nothing was charged or changed. Vega switches it on: write to contato@use-vega.com. GET /me shows what is switched on, in features.
profile_unavailable
422
The profile cannot be used: it was not found, is private, changed its name or asked not to appear in Vega. Nothing was charged.
conflict
409
The request does not fit the state of the resource, for example asking for more results of a search that has not finished or has already shown everything. Nothing was charged.
temporarily_unavailable
503
Unavailable for a moment. If there was a debit, the credits are already back (details.credits_refunded). Try again after the Retry-After time (details.retry_after_seconds).
write_not_allowed
403
The person responsible for the key or the app can no longer make this change: they left the company or lost the permission. Nothing was changed. Someone with the permission has to create a new key or connect the app again.
requires_app
409
The change moves money or sends a contract, which is done only in the Vega app. details names the stage and the reason. Nothing was changed.
refused
422
Vega refused the change (details.reason says why; on a card, details.missing lists the required fields that are missing). Nothing was changed.
Limits
There is no daily limit. The limits are per minute and exist so that a program stuck in a loop gets in nobody's way:
Reads: 60 to 600 per minute per key or app, depending on the plan. The whole company gets 2 times that number, so creating more keys does not raise the limit. The /me read shows yours.
Paid actions (run a search, see more results, generate a report): 20 per minute per key or app and 40 for the whole company, on top of the read limit.
Changes in campaigns: 60 per minute per key or app and 120 for the whole company, on top of the read limit.
RateLimit-Limit: how many reads the key can make per minute.
RateLimit-Remaining: how many are left this minute.
RateLimit-Reset: in how many seconds the count restarts.
Over the limit, the answer is 429. The Retry-After header and the details.retry_after_seconds field say how many seconds to wait; the field is there for clients that do not read headers, such as an AI assistant. A 503 answer carries the same two.
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the time in Retry-After.",
"request_id": "req_01JC8Q3X5Z",
"details": {
"retry_after_seconds": 41
}
}
}
Spending credits
The spending limit is the company's balance. To protect that balance:
If a key or an app spends, within 60 minutes, 10% or more of the credits the plan gives per month (and at least 50 credits), the company's administrators get a notice by e-mail and inside Vega, with the key's or app's name and the link to Integrations, where it can be revoked or disconnected. It is at most one notice every 24 hours per key or app, and it blocks nothing.
The Wallet's low-balance notice also covers what is spent through the API.
If the balance does not cover an action, the answer is 402 and nothing is charged. A company on a free trial spends the trial's credits and keeps to the trial's daily limit.
What's new
New fields may appear in answers at any time. That is never a breaking change: write your code to ignore the fields it does not know.
Cupom Vega: benefits, orders and the sales ledger
New reads: the benefits with their rule in force and its version (GET /benefits) and the sales ledger, one line per order, period total or adjustment (GET /sales/entries, permission sales:read).
POST /sales/orders records orders made with the coupon codes, up to 1000 per call, with the permission sales:write and the orders switch on for the company (off, it answers feature_unavailable with details.feature sales_orders). The same Idempotency-Key returns the same answer.
A coupon gained creator_id (the code belongs to the creator with the company, per benefit), benefit_rule_version, link, link_opens_30d and legacy_format.
Creating a coupon for a creator who already holds a live code of that benefit returns that code with 200 and created false (a new code answers 201 and created true). On a Vega benefit a chosen code has letters and digits only (_ or - is refused); on a benefit with the store's own codes the code is kept as it is in the store, with - or _ if it has them.
Two new events: sale.recorded and sale.confirmed, without the coupon code and without the order number. GET /me shows features.sales_orders.
Sending a different code for a creator who already holds a live code of that benefit answers conflict (409), changing nothing and without repeating the live code; the same code returns the live one with 200. On a benefit with the store's own codes, code is required.
Errors that say what to do
New code: api_not_enabled (403). A valid key of a company the API is not switched on for yet gets this code, no longer not_found. Without a valid key, nothing changes.
Search, reports and changes to campaigns, when switched off for the company, answer feature_unavailable (409) with details.feature, no longer 404.
Errors with a next step carry details.next_step and, when someone else has to act, details.who_can_fix.
insufficient_scope names the missing permission in details.required_scope and in the WWW-Authenticate header.
insufficient_credits can come without buy_url, when the company's plan does not buy credits in the app; details says who to talk to.
GET /me gained features: what is switched on for the company.
In Integrations, the API and MCP card is always on screen and shows what is missing and who fixes it; after a key is created, Vega shows the first call ready and a button to test it.
The screen that approves an app checks the company's plan and API before it lets anyone approve.
Automatic approval by the guidelines
Read and choose how each campaign's content is approved and change its rules, through the API and the connector, with the new permission content_approval:write (off by default).
A campaign carries content_approval; a deliverable and a post carry guidelines_check, with the points outside the guidelines.
Two new events: content_approval.changed and content_check.completed. deliverable.approved gained approved_by.
Vega approves or refuses based on what is said in the content's audio and what is written in the caption. Our AI does not watch the video: it does not see the images and has no opinion on the visuals.
History in the simplified report
The report (schema_version 2) carries history: Vega's own follower readings, growth over 30 and 90 days and engagement by month, viral posts left out. Only Vega's own readings leave.
A report generated before stays at schema_version 1 with history null.
More data, actions in campaigns and a connector that does tasks
New reads: creators, payments per creator, Monitoramento posts, Gamificação, the Agenda, the campaign summary, what needs attention, find by name, a report's table, the Saved lists and the sales deliveries.
A card now carries the contract (status and dates), the deliverables, the coupons and the post metrics measured through the creator's own account. With payments:read, also the agreed value and how much has been billed and paid.
Actions in campaigns, behind new permissions that start turned off: add a creator to a campaign, move cards and add notes, review deliverables, create and issue coupons, send sales.
Twelve new webhook events, from a card created to sales imported.
Lists take fields=compact and, on campaigns and cards, the q filter.
The AI connector gained task tools, three ready-made prompts and compact answers.
Vega AI search and simplified report
Find creators, see more results and generate a simplified report through the API and the connector, with the company's credits and the Spend credits permission.
API, AI connector and webhooks
The first version: reads of campaigns, cards, deliverables, coupons, sales, faturas, reports and tax invoices, the MCP connector and signed webhooks.
Cookie notice
Vega uses cookies. By default, only necessary cookies are on — optional ones only after you accept. Read the Cookie Policy and the Privacy Notice. Choose an option to continue.