Create a draft campaign
const url = 'https://ads.wortise.com/api/public/v1/campaigns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"end":"2026-04-15","fee":{"-2":1,"other":1},"name":"example","rush":true,"sample":{"-2":1,"other":1},"start":"2026-04-15","timezone":"America/Argentina/Buenos_Aires","type":"CPC","user":{"expiration":1,"max":1},"audience":{"appFilter":["example"],"device":{"battery":{"plugged":true},"brand":["example"],"language":["example"],"model":["example"],"os":["android","ios"],"osVersion":["example"],"type":["mobile"]},"not":{"appFilter":["example"],"device":{"battery":{"plugged":true},"brand":["example"],"language":["example"],"model":["example"],"os":["android","ios"],"osVersion":["example"],"type":["mobile"]},"not":{},"tag":{"audiences":[{"id":"example","label":"example"}],"products":[{"id":"example","label":"example"}],"topics":[{"id":"example","label":"example"}]},"app":{"category":[{"id":"example","label":"example"}],"list":[{"icon":"example","id":"example","label":"example","platform":"android"}]},"appFilters":{"coppa":true,"maxInstalls":1,"minInstalls":1,"minScore":1,"platform":["android"]},"cellular":{"carrier":[{"country":"example","countryCode":"example","iso":"example","mcc":"example","mnc":"example","network":"example"}]},"cpm":1,"isPublic":true,"location":[{"countryCode":"example","displayName":"example","lat":1,"lng":1,"placeId":"example","source":"google_places","type":"place","types":["example"]}],"time":{"day":[1],"hour":[{"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","from":1,"to":1}]},"traffic":{"age":{"additionalProperty":1},"category":{"additionalProperty":1},"country":{"additionalProperty":1},"device":{"additionalProperty":1},"gender":{"additionalProperty":1},"size":{"additionalProperty":1}},"user":{"gender":["female"],"id":["example"],"age":["-18"],"interest":[{"id":"example","label":"example"}]}},"tag":{"audiences":[{"id":"example","label":"example"}],"products":[{"id":"example","label":"example"}],"topics":[{"id":"example","label":"example"}]},"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","app":{"category":[{"id":"example","label":"example"}],"list":[{"icon":"example","id":"example","label":"example","platform":"android"}]},"appFilters":{"coppa":true,"maxInstalls":1,"minInstalls":1,"minScore":1,"platform":["android"]},"cellular":{"carrier":[{"country":"example","countryCode":"example","iso":"example","mcc":"example","mnc":"example","network":"example"}]},"cpm":1,"createdAt":"2026-04-15T12:00:00Z","createdBy":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","deletedAt":"2026-04-15T12:00:00Z","isDraft":true,"isPublic":true,"location":[{"countryCode":"example","displayName":"example","lat":1,"lng":1,"placeId":"example","source":"google_places","type":"place","types":["example"]}],"time":{"day":[1],"hour":[{"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","from":1,"to":1}]},"traffic":{"age":{"additionalProperty":1},"category":{"additionalProperty":1},"country":{"additionalProperty":1},"device":{"additionalProperty":1},"gender":{"additionalProperty":1},"size":{"additionalProperty":1}},"updatedAt":"2026-04-15T12:00:00Z","updatedBy":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","user":{"gender":["female"],"id":["example"],"age":["-18"],"interest":[{"id":"example","label":"example"}]}},"autopilot":true,"brand":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","budget":1,"country":"example","cta":"example","ctaLanguage":"example","currency":"BRL","format":"display","trackingTag":"https://example.com","unitPrice":1,"url":"https://example.com","utm":{"campaign":"example","id":"example","medium":"example","source":"example"},"warnings":[{"adGroup":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","code":"campaign_too_short"}],"adGroups":[{"adFormat":"banner","audience":{"appFilter":["example"],"device":{"battery":{"plugged":true},"brand":["example"],"language":["example"],"model":["example"],"os":["android","ios"],"osVersion":["example"],"type":["mobile"]},"not":{"appFilter":["example"],"device":{"battery":{"plugged":true},"brand":["example"],"language":["example"],"model":["example"],"os":["android","ios"],"osVersion":["example"],"type":["mobile"]},"not":{},"tag":{"audiences":[{"id":"example","label":"example"}],"products":[{"id":"example","label":"example"}],"topics":[{"id":"example","label":"example"}]},"app":{"category":[{"id":"example","label":"example"}],"list":[{"icon":"example","id":"example","label":"example","platform":"android"}]},"appFilters":{"coppa":true,"maxInstalls":1,"minInstalls":1,"minScore":1,"platform":["android"]},"cellular":{"carrier":[{"country":"example","countryCode":"example","iso":"example","mcc":"example","mnc":"example","network":"example"}]},"cpm":1,"isPublic":true,"location":[{"countryCode":"example","displayName":"example","lat":1,"lng":1,"placeId":"example","source":"google_places","type":"place","types":["example"]}],"time":{"day":[1],"hour":[{"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","from":1,"to":1}]},"traffic":{"age":{"additionalProperty":1},"category":{"additionalProperty":1},"country":{"additionalProperty":1},"device":{"additionalProperty":1},"gender":{"additionalProperty":1},"size":{"additionalProperty":1}},"user":{"gender":["female"],"id":["example"],"age":["-18"],"interest":[{"id":"example","label":"example"}]}},"tag":{"audiences":[{"id":"example","label":"example"}],"products":[{"id":"example","label":"example"}],"topics":[{"id":"example","label":"example"}]},"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","app":{"category":[{"id":"example","label":"example"}],"list":[{"icon":"example","id":"example","label":"example","platform":"android"}]},"appFilters":{"coppa":true,"maxInstalls":1,"minInstalls":1,"minScore":1,"platform":["android"]},"cellular":{"carrier":[{"country":"example","countryCode":"example","iso":"example","mcc":"example","mnc":"example","network":"example"}]},"cpm":1,"createdAt":"2026-04-15T12:00:00Z","createdBy":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","deletedAt":"2026-04-15T12:00:00Z","isDraft":true,"isPublic":true,"location":[{"countryCode":"example","displayName":"example","lat":1,"lng":1,"placeId":"example","source":"google_places","type":"place","types":["example"]}],"time":{"day":[1],"hour":[{"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","from":1,"to":1}]},"traffic":{"age":{"additionalProperty":1},"category":{"additionalProperty":1},"country":{"additionalProperty":1},"device":{"additionalProperty":1},"gender":{"additionalProperty":1},"size":{"additionalProperty":1}},"updatedAt":"2026-04-15T12:00:00Z","updatedBy":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","user":{"gender":["female"],"id":["example"],"age":["-18"],"interest":[{"id":"example","label":"example"}]}},"budgetAllocation":1,"frequencyCap":{"expiration":1,"max":1},"name":"example","order":1,"status":"enabled","trackingTag":"https://example.com","unitPrice":1,"url":"https://example.com","utm":{"campaign":"example","id":"example","medium":"example","source":"example"},"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","ads":[{"asset":{"aspectRatio":"5:4","filename":"example","height":1,"size":1,"storageKey":"example","url":"https://example.com","watermark":true,"watermarkUrl":"https://example.com","width":1,"extension":"jpeg","type":"image"},"brand":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","height":1,"html":"example","name":"example","order":1,"product":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","type":"banner","width":1,"_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","isLive":true}],"isLive":true}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://ads.wortise.com/api/public/v1/campaigns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "end": "2026-04-15", "fee": { "-2": 1, "other": 1 }, "name": "example", "rush": true, "sample": { "-2": 1, "other": 1 }, "start": "2026-04-15", "timezone": "America/Argentina/Buenos_Aires", "type": "CPC", "user": { "expiration": 1, "max": 1 }, "audience": { "appFilter": [ "example" ], "device": { "battery": { "plugged": true }, "brand": [ "example" ], "language": [ "example" ], "model": [ "example" ], "os": [ "android", "ios" ], "osVersion": [ "example" ], "type": [ "mobile" ] }, "not": { "appFilter": [ "example" ], "device": { "battery": { "plugged": true }, "brand": [ "example" ], "language": [ "example" ], "model": [ "example" ], "os": [ "android", "ios" ], "osVersion": [ "example" ], "type": [ "mobile" ] }, "not": {}, "tag": { "audiences": [ { "id": "example", "label": "example" } ], "products": [ { "id": "example", "label": "example" } ], "topics": [ { "id": "example", "label": "example" } ] }, "app": { "category": [ { "id": "example", "label": "example" } ], "list": [ { "icon": "example", "id": "example", "label": "example", "platform": "android" } ] }, "appFilters": { "coppa": true, "maxInstalls": 1, "minInstalls": 1, "minScore": 1, "platform": [ "android" ] }, "cellular": { "carrier": [ { "country": "example", "countryCode": "example", "iso": "example", "mcc": "example", "mnc": "example", "network": "example" } ] }, "cpm": 1, "isPublic": true, "location": [ { "countryCode": "example", "displayName": "example", "lat": 1, "lng": 1, "placeId": "example", "source": "google_places", "type": "place", "types": [ "example" ] } ], "time": { "day": [ 1 ], "hour": [ { "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": 1, "to": 1 } ] }, "traffic": { "age": { "additionalProperty": 1 }, "category": { "additionalProperty": 1 }, "country": { "additionalProperty": 1 }, "device": { "additionalProperty": 1 }, "gender": { "additionalProperty": 1 }, "size": { "additionalProperty": 1 } }, "user": { "gender": [ "female" ], "id": [ "example" ], "age": [ "-18" ], "interest": [ { "id": "example", "label": "example" } ] } }, "tag": { "audiences": [ { "id": "example", "label": "example" } ], "products": [ { "id": "example", "label": "example" } ], "topics": [ { "id": "example", "label": "example" } ] }, "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "app": { "category": [ { "id": "example", "label": "example" } ], "list": [ { "icon": "example", "id": "example", "label": "example", "platform": "android" } ] }, "appFilters": { "coppa": true, "maxInstalls": 1, "minInstalls": 1, "minScore": 1, "platform": [ "android" ] }, "cellular": { "carrier": [ { "country": "example", "countryCode": "example", "iso": "example", "mcc": "example", "mnc": "example", "network": "example" } ] }, "cpm": 1, "createdAt": "2026-04-15T12:00:00Z", "createdBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "deletedAt": "2026-04-15T12:00:00Z", "isDraft": true, "isPublic": true, "location": [ { "countryCode": "example", "displayName": "example", "lat": 1, "lng": 1, "placeId": "example", "source": "google_places", "type": "place", "types": [ "example" ] } ], "time": { "day": [ 1 ], "hour": [ { "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": 1, "to": 1 } ] }, "traffic": { "age": { "additionalProperty": 1 }, "category": { "additionalProperty": 1 }, "country": { "additionalProperty": 1 }, "device": { "additionalProperty": 1 }, "gender": { "additionalProperty": 1 }, "size": { "additionalProperty": 1 } }, "updatedAt": "2026-04-15T12:00:00Z", "updatedBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "user": { "gender": [ "female" ], "id": [ "example" ], "age": [ "-18" ], "interest": [ { "id": "example", "label": "example" } ] } }, "autopilot": true, "brand": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "budget": 1, "country": "example", "cta": "example", "ctaLanguage": "example", "currency": "BRL", "format": "display", "trackingTag": "https://example.com", "unitPrice": 1, "url": "https://example.com", "utm": { "campaign": "example", "id": "example", "medium": "example", "source": "example" }, "warnings": [ { "adGroup": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "code": "campaign_too_short" } ], "adGroups": [ { "adFormat": "banner", "audience": { "appFilter": [ "example" ], "device": { "battery": { "plugged": true }, "brand": [ "example" ], "language": [ "example" ], "model": [ "example" ], "os": [ "android", "ios" ], "osVersion": [ "example" ], "type": [ "mobile" ] }, "not": { "appFilter": [ "example" ], "device": { "battery": { "plugged": true }, "brand": [ "example" ], "language": [ "example" ], "model": [ "example" ], "os": [ "android", "ios" ], "osVersion": [ "example" ], "type": [ "mobile" ] }, "not": {}, "tag": { "audiences": [ { "id": "example", "label": "example" } ], "products": [ { "id": "example", "label": "example" } ], "topics": [ { "id": "example", "label": "example" } ] }, "app": { "category": [ { "id": "example", "label": "example" } ], "list": [ { "icon": "example", "id": "example", "label": "example", "platform": "android" } ] }, "appFilters": { "coppa": true, "maxInstalls": 1, "minInstalls": 1, "minScore": 1, "platform": [ "android" ] }, "cellular": { "carrier": [ { "country": "example", "countryCode": "example", "iso": "example", "mcc": "example", "mnc": "example", "network": "example" } ] }, "cpm": 1, "isPublic": true, "location": [ { "countryCode": "example", "displayName": "example", "lat": 1, "lng": 1, "placeId": "example", "source": "google_places", "type": "place", "types": [ "example" ] } ], "time": { "day": [ 1 ], "hour": [ { "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": 1, "to": 1 } ] }, "traffic": { "age": { "additionalProperty": 1 }, "category": { "additionalProperty": 1 }, "country": { "additionalProperty": 1 }, "device": { "additionalProperty": 1 }, "gender": { "additionalProperty": 1 }, "size": { "additionalProperty": 1 } }, "user": { "gender": [ "female" ], "id": [ "example" ], "age": [ "-18" ], "interest": [ { "id": "example", "label": "example" } ] } }, "tag": { "audiences": [ { "id": "example", "label": "example" } ], "products": [ { "id": "example", "label": "example" } ], "topics": [ { "id": "example", "label": "example" } ] }, "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "app": { "category": [ { "id": "example", "label": "example" } ], "list": [ { "icon": "example", "id": "example", "label": "example", "platform": "android" } ] }, "appFilters": { "coppa": true, "maxInstalls": 1, "minInstalls": 1, "minScore": 1, "platform": [ "android" ] }, "cellular": { "carrier": [ { "country": "example", "countryCode": "example", "iso": "example", "mcc": "example", "mnc": "example", "network": "example" } ] }, "cpm": 1, "createdAt": "2026-04-15T12:00:00Z", "createdBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "deletedAt": "2026-04-15T12:00:00Z", "isDraft": true, "isPublic": true, "location": [ { "countryCode": "example", "displayName": "example", "lat": 1, "lng": 1, "placeId": "example", "source": "google_places", "type": "place", "types": [ "example" ] } ], "time": { "day": [ 1 ], "hour": [ { "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": 1, "to": 1 } ] }, "traffic": { "age": { "additionalProperty": 1 }, "category": { "additionalProperty": 1 }, "country": { "additionalProperty": 1 }, "device": { "additionalProperty": 1 }, "gender": { "additionalProperty": 1 }, "size": { "additionalProperty": 1 } }, "updatedAt": "2026-04-15T12:00:00Z", "updatedBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "user": { "gender": [ "female" ], "id": [ "example" ], "age": [ "-18" ], "interest": [ { "id": "example", "label": "example" } ] } }, "budgetAllocation": 1, "frequencyCap": { "expiration": 1, "max": 1 }, "name": "example", "order": 1, "status": "enabled", "trackingTag": "https://example.com", "unitPrice": 1, "url": "https://example.com", "utm": { "campaign": "example", "id": "example", "medium": "example", "source": "example" }, "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ads": [ { "asset": { "aspectRatio": "5:4", "filename": "example", "height": 1, "size": 1, "storageKey": "example", "url": "https://example.com", "watermark": true, "watermarkUrl": "https://example.com", "width": 1, "extension": "jpeg", "type": "image" }, "brand": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "height": 1, "html": "example", "name": "example", "order": 1, "product": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "type": "banner", "width": 1, "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "isLive": true } ], "isLive": true } ] }'Creates a draft campaign with the caller-generated id.
It never overwrites: when a campaign already has the id the answer is 409 and nothing is written. Use PATCH /campaigns/{id} to change it.
Requires the campaigns:write scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Caller-generated campaign UUID v4.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
object
object
object
object
Only explicitly requested targeting exclusions.
object
object
object
object
object
object
object
object
object
E.g: “1”, “20”.
object
object
object
object
Exact inventory locations or geographic areas to target.
object
object
object
object
object
object
object
object
object
object
object
Optional demographic filters. Age codes are ranges: -18=under 18, 18=18–24, 25=25–34, 35=35–44, 45=45–54, 55=55–64, 65=65+. Adults 18+ requires all six adult ranges, not just 18. Gender ?? means unknown, not all genders; omit gender on creation or use [] on update for unrestricted gender.
object
object
object
object
object
object
object
object
E.g: “1”, “20”.
object
object
object
object
Exact inventory locations or geographic areas to target.
object
object
object
object
object
object
object
object
object
object
object
Optional demographic filters. Age codes are ranges: -18=under 18, 18=18–24, 25=25–34, 35=35–44, 45=45–54, 55=55–64, 65=65+. Adults 18+ requires all six adult ranges, not just 18. Gender ?? means unknown, not all genders; omit gender on creation or use [] on update for unrestricted gender.
object
object
Brand UUID
Budget in the campaign currency
ISO-2 Country
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
object
object
The campaign with its ad groups and their ads, saved in one transaction. The body is then the whole campaign: name, start, end and budget are required, ad groups left out are deleted, creatives of the campaign left out of every ads list are deleted (drafts excepted), and an ad whose creative does not exist yet is skipped: create creatives with PUT /creatives/{id}. Targeting, price, link and frequency cap come from the ad groups. Leave it out to save only the sent campaign fields; PATCH /ad-groups/{id} edits one ad group at a time.
object
Restricts every creative in this ad group to a single format
object
object
object
Only explicitly requested targeting exclusions.
object
object
object
object
object
object
object
object
object
E.g: “1”, “20”.
object
object
object
object
Exact inventory locations or geographic areas to target.
object
object
object
object
object
object
object
object
object
object
object
Optional demographic filters. Age codes are ranges: -18=under 18, 18=18–24, 25=25–34, 35=35–44, 45=45–54, 55=55–64, 65=65+. Adults 18+ requires all six adult ranges, not just 18. Gender ?? means unknown, not all genders; omit gender on creation or use [] on update for unrestricted gender.
object
object
object
object
object
object
object
object
E.g: “1”, “20”.
object
object
object
object
Exact inventory locations or geographic areas to target.
object
object
object
object
object
object
object
object
object
object
object
Optional demographic filters. Age codes are ranges: -18=under 18, 18=18–24, 25=25–34, 35=35–44, 45=45–54, 55=55–64, 65=65+. Adults 18+ requires all six adult ranges, not just 18. Gender ?? means unknown, not all genders; omit gender on creation or use [] on update for unrestricted gender.
object
object
Slice of the campaign budget assigned to this ad group, in local currency
Impressions per user (“max”) within a rolling window (“expiration”, in seconds)
object
Unit price in local currency (CPM/CPC) for creatives in this ad group
Destination URL (redirect)
object
object
object
object
object
Narrate the ad with an AI voice, one line per scene.
Language of the narration. Omit to narrate in the on-screen language.
Speaking speed, from 1 to 1.5; the pitch is kept.
Voice of the narration. cedar and onyx sound best in Spanish.
Ref to brands collection
HTML content of the creative. Optional until first render.
Position of the creative inside its ad group
Ref to products collection
Responses
Section titled “Responses”The saved campaign.
object
object
Impressions (CPM) or clicks (CPC) targeted.
Unit price in USD (CPM or CPC) to external service-ads. Only for a campaign without ad groups
object
object
object
object
object
Only explicitly requested targeting exclusions.
object
object
object
object
object
object
object
object
object
E.g: “1”, “20”.
object
object
object
object
Exact inventory locations or geographic areas to target.
object
object
object
object
object
object
object
object
object
object
object
Optional demographic filters. Age codes are ranges: -18=under 18, 18=18–24, 25=25–34, 35=35–44, 45=45–54, 55=55–64, 65=65+. Adults 18+ requires all six adult ranges, not just 18. Gender ?? means unknown, not all genders; omit gender on creation or use [] on update for unrestricted gender.
object
object
object
object
object
object
object
object
E.g: “1”, “20”.
object
object
object
object
Exact inventory locations or geographic areas to target.
object
object
object
object
object
object
object
object
object
object
object
Optional demographic filters. Age codes are ranges: -18=under 18, 18=18–24, 25=25–34, 35=35–44, 45=45–54, 55=55–64, 65=65+. Adults 18+ requires all six adult ranges, not just 18. Gender ?? means unknown, not all genders; omit gender on creation or use [] on update for unrestricted gender.
object
object
The advertiser lets the system slightly adjust the audience to ensure a better reach. Campaigns saved before it existed have no value: not authorized
Budget in the campaign currency
ISO-2 Country
Currency ISO 4217. E.g. USD, EUR. A draft saved without it takes the currency of the account that saves it, else USD.
Exchange rate from local currency to USD
USD taken off the budget and not yet credited back to the organization
Unit price in local currency (CPM or CPC bid). Only for a campaign without ad groups
object
Tips the review raised when the campaign was last saved: the code the clients translate and the ad group it is about
object
Example
{ "origin": "ads", "rush": false, "status": "enabled", "timezone": "America/Argentina/Buenos_Aires", "type": "CPC", "verification": "approved", "audience": { "device": { "os": [ "android", "ios" ], "type": [ "mobile" ] }, "not": { "device": { "os": [ "android", "ios" ], "type": [ "mobile" ] }, "app": { "list": [ { "platform": "android" } ] }, "appFilters": { "platform": [ "android" ] }, "location": [ { "source": "google_places", "type": "place" } ], "user": { "gender": [ "female" ], "age": [ "-18" ] } }, "app": { "list": [ { "platform": "android" } ] }, "appFilters": { "platform": [ "android" ] }, "isDraft": true, "location": [ { "source": "google_places", "type": "place" } ], "user": { "gender": [ "female" ], "age": [ "-18" ] } }, "autopilot": true, "currency": "BRL", "format": "display", "isDraft": true, "method": "ai", "warnings": []}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 resource does not exist in the organization of the API key.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}The request conflicts with the resource state.
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.