API Reference
Ads
Authorization
bearerAuth AuthorizationBearer <token>
A Space API key, e.g. wks_live_….
In: header
Response Body
application/json
curl -X GET "https://example.com/ads/accounts"{}Authorization
bearerAuth AuthorizationBearer <token>
A Space API key, e.g. wks_live_….
In: header
Query Parameters
status?string
Response Body
application/json
curl -X GET "https://example.com/ads/campaigns"{}Authorization
bearerAuth AuthorizationBearer <token>
A Space API key, e.g. wks_live_….
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/ads/campaigns" \ -H "Content-Type: application/json" \ -d '{ "ad_account_id": "string", "name": "string", "goal": "engagement", "budget_amount": 0 }'{}