wakato-io Ads API
The Ads API from wakato-io — 3 operation(s) for ads.
The Ads API from wakato-io — 3 operation(s) for ads.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wakato-io:wakato-io-ads-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wakato Space Ads API
version: 1.0.0
description: 'The **Wakato Space API** lets an external agent or tool (Claude Code, Cursor,
Zapier, a partner integration, your own scripts) operate a single Wakato
**Space** using a scoped Bearer token (a *Space API key*, `wks_live_…`).
The **same token** works two ways:
- **REST** — the endpoints documented here (`/functions/v1/space-api/…`).
- **MCP** — a Model Context Protocol server at `/functions/v1/space-mcp`
that exposes the same operations as tools to MCP clients. MCP clients
self-discover the tools via `tools/list`; see the Quickstart to connect.
### Authentication
Send the key as a Bearer token: `Authorization: Bearer wks_live_…`.
A key is locked to exactly one Space and cannot read or write any other
Space, the wallet (beyond read), member permissions, or other users.
### Scopes
Every key grants per-domain scopes with up to three actions:
- `read` — list / inspect
- `write` — create / edit
- `run` — the *consequential* action (publish a page, send an SMS, post
socially, run an automation). Public/billable actions are deliberately
split into `run` so you grant them explicitly.
Each operation below notes its required scope via `x-required-scope`.
A call without the scope returns `403`.
### Safety model
- Wallet, Finance, Integrations are **read-only**. Money is never moved.
- Secrets returns **names only** — values are never exposed.
- Social posts and ad campaigns default to **drafts**; going live requires
the `run` scope. Connecting new OAuth accounts is never done by a key.'
servers:
- url: https://api.wakato.io/functions/v1/space-api
description: Production
- url: https://pnwxrleocjbcvrrwrycq.supabase.co/functions/v1/space-api
description: Development
security:
- bearerAuth: []
tags:
- name: Ads
paths:
/ads/accounts:
get:
tags:
- Ads
summary: List ad accounts
x-required-scope: ads:read
responses:
'200':
$ref: '#/components/responses/Ok'
description: '**Required scope:** `ads:read`'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET \"https://api.wakato.io/functions/v1/space-api/ads/accounts\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\""
operationId: getAdsAccounts
x-operation-id-source: derived
/ads/campaigns:
get:
tags:
- Ads
summary: List ad campaigns
x-required-scope: ads:read
parameters:
- in: query
name: status
schema:
type: string
responses:
'200':
$ref: '#/components/responses/Ok'
description: '**Required scope:** `ads:read`'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET \"https://api.wakato.io/functions/v1/space-api/ads/campaigns\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\""
operationId: getAdsCampaigns
x-operation-id-source: derived
post:
tags:
- Ads
summary: Create a DRAFT ad campaign (no spend)
description: '**Required scope:** `ads:write`
Drafts only. Launching real ad spend is done by a human in the Ads Manager.'
x-required-scope: ads:write
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- ad_account_id
- name
- goal
- budget_amount
properties:
ad_account_id:
type: string
name:
type: string
goal:
type: string
enum:
- engagement
- traffic
- awareness
- video_views
- lead_generation
- conversions
- app_promotion
budget_amount:
type: number
budget_type:
type: string
enum:
- daily
- lifetime
responses:
'201':
$ref: '#/components/responses/Created'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X POST \"https://api.wakato.io/functions/v1/space-api/ads/campaigns\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"ad_account_id\": \"b7e4a1c2-9d3f-4e8a-b2c1-5f6d7e8a9b0c\",\n \"name\": \"Launch plan\",\n \"goal\": \"engagement\",\n \"budget_amount\": 1\n}'"
operationId: postAdsCampaigns
x-operation-id-source: derived
/ads/campaign-drafts:
post:
tags:
- Ads
summary: Design a full campaign into "Ready to launch" (no account needed)
description: '**Required scope:** `ads:write`
Create a fully-designed draft campaign that appears in Ads Manager →
Campaigns → "Ready to launch" with a native ad preview, even when no ad
account is connected. A human reviews and launches it (no spend). Pass
either `ad_account_id` or `platform`. Each creative''s `image_url` may be
an image or a video URL (set `media_kind` to disambiguate).'
x-required-scope: ads:write
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- goal
- budget_amount
properties:
name:
type: string
platform:
type: string
enum:
- metaads
- googleads
- tiktokads
- linkedinads
- pinterestads
- xads
description: Required when ad_account_id is omitted
ad_account_id:
type: string
description: Optional — pins the platform when supplied
goal:
type: string
enum:
- engagement
- traffic
- awareness
- video_views
- lead_generation
- conversions
- app_promotion
objective:
type: string
description: Optional platform-native objective value
budget_amount:
type: number
budget_type:
type: string
enum:
- daily
- lifetime
schedule_start:
type: string
schedule_end:
type: string
audience_id:
type: string
targeting:
type: object
properties:
age_min:
type: number
age_max:
type: number
genders:
type: array
items:
type: string
enum:
- male
- female
- other
countries:
type: array
items:
type: string
description: Country codes, e.g. ["US","GB"]
interests:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
keywords:
type: array
items:
type: string
languages:
type: array
items:
type: string
creatives:
type: array
description: One or more ad variations.
items:
type: object
properties:
headline:
type: string
body:
type: string
destination_url:
type: string
cta:
type: string
image_url:
type: string
description: Hosted image or video URL
media_kind:
type: string
enum:
- image
- video
responses:
'201':
$ref: '#/components/responses/Created'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X POST \"https://api.wakato.io/functions/v1/space-api/ads/campaign-drafts\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Launch plan\",\n \"goal\": \"engagement\",\n \"budget_amount\": 1\n}'"
operationId: postAdsCampaignDrafts
x-operation-id-source: derived
components:
responses:
Ok:
description: Success
content:
application/json:
schema:
type: object
Created:
description: Created
content:
application/json:
schema:
type: object
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A Space API key, e.g. `wks_live_…`.