ad-campaigns
ad-campaigns

Create Profile

Create a new company profile and Saphire website record (without crawling).

Use this endpoint when you want to upload manual reference images instead of crawling the website for brand assets.

This endpoint:

  1. Creates a Saphire website record (or finds existing)
  2. Creates/updates local SaphireWebsite record
  3. Creates a CompanyProfile linked to the Saphire website

After creating the profile, upload manual references via the /manual-reference-images endpoints and start ad campaign generation via POST /generate.

Requirements:

  • User must have a company_website set in their profile

Response:

  • profile_id: ID of the newly created profile
  • status: 'pending'
  • message: Confirmation message
post/api/v1/ad-campaigns/create-profile

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/create-profile
  • Auth: HTTP bearer

Query parameters

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

profile_idinteger required
statusstring required
messagestring required

Changes

No recorded changes to this operation across all 1 revision of this API.