dev

Toggle Chatgpt Ads

Enable or disable ChatGPT Ads for a specific user.

Optionally pass account_id to register the OpenAI Ads account for the automated daily pipeline (download → analyze → report → email).

Requires X-Lapis-Dev-Token header.

post/api/v1/dev/toggle-chatgpt-ads

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/dev/toggle-chatgpt-ads
  • Auth: none declared

Headers

x-lapis-dev-tokenstring

Request body

emailstring required

User email address

enabledboolean

Enable or disable ChatGPT Ads

account_idstring nullable

OpenAI Ads account ID (e.g. adacct_69d5a...). When provided, upserts a row in chatgpt_ads_client_accounts so the daily pipeline includes this account.

client_namestring nullable

Display name for the client (e.g. 'Italic', 'Gainful'). Used in report headers and emails. Defaults to user's company name.

Response

Successful Response

statusstring required
user_idinteger required
user_emailstring required
chatgpt_ads_enabledboolean required
account_idstring nullable
client_namestring nullable

Changes

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