ad-campaigns
ad-campaigns
Generate Ad Campaign Async
Start ad campaign generation asynchronously (non-blocking).
This endpoint starts the Celery task chain and returns immediately with the profile_id. Use GET /ad-campaigns/generate/status to poll for completion.
Requirements:
- User must have a company_website set in their profile
- User must have a CompanyProfile with status 'brand_assets_verified'
Credits: Consumes 1 credit per campaign.
post/api/v1/ad-campaigns/generate
Request
- Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
- URL: https://api.trylapis.com/api/v1/ad-campaigns/generate
- Auth: HTTP bearer
Query parameters
num_campaignsinteger
Number of campaigns to generate (1-10), selecting top personas by audience size
generate_imagesboolean
Whether to generate ad images as part of the pipeline
generate_forecastsboolean
Reserved for future forecast controls
use_manual_referencesboolean
Reserved for future manual-reference controls
client_user_idinteger nullable
Client user ID to view data for
Headers
x-lapis-dev-tokenstring nullable
x-assume-user-idinteger nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.