Quote a campaign
const url = 'https://ads.wortise.com/api/public/v1/campaigns/quote';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","budget":1,"currency":"BRL","organization":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","type":"CPC","unitPrice":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://ads.wortise.com/api/public/v1/campaigns/quote \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "budget": 1, "currency": "BRL", "organization": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "type": "CPC", "unitPrice": 1 }'Prices a campaign: launch cost in USD, objective, organization minimums and balance shortfall.
Requires the campaigns:read scope.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Budget in the campaign currency
Currency ISO 4217. E.g. USD, EUR. A draft saved without it takes the currency of the account that saves it, else USD.
Unit price in local currency (CPM or CPC bid). Only for a campaign without ad groups
Responses
Section titled “Responses”The campaign quote.
object
Organization balance in USD
Whether the balance covers the cost and the campaign has at least one creative
Balance in USD debited at launch
Exchange rate from the campaign currency to USD
Organization minimum CPC in USD
Organization minimum CPM in USD
Impressions (CPM) or clicks (CPC) the budget buys
Unit price in USD sent to the ad server
Part of the cost the balance does not cover, in USD
Example generated
{ "balance": 1, "canLaunch": true, "cost": 1, "exchange": 1, "minCpc": 1, "minCpm": 1, "objective": 1, "revenue": 1, "shortfall": 1}The JSON body is malformed or fails the input validation.
object
Zod issues
object
Location of the invalid field in the procedure input
object
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "errors": [ { "code": "custom" } ], "message": "Validation Error"}The API key is missing, invalid, disabled or expired.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}The API key lacks the scope, or its owner lacks the dashboard permission.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}The API key exceeded its rate limit; retry after the Retry-After seconds.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}Headers
Section titled “Headers”Seconds to wait before retrying.
Unexpected server error.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}© 2026 Wortise. All rights reserved.