create_openai_ads_conversion_api_key
Create a ChatGPT Ads Conversions API key
Description
Create a ChatGPT Ads Conversions API key — the credential a SERVER uses to send conversion events, which is the only way a conversion that happens off the page (an offline sale, a webhook, a mobile backend) can be counted at all. PERMANENT AND UNREPEATABLE, and both halves of that are why it is confirm-gated even though a key cannot spend: ChatGPT Ads publishes NO way to list, rotate or delete a key, so it exists on the ad account forever and Hermoso cannot clean it up; and OpenAI returns the secret EXACTLY ONCE. Tell the user both facts, get an explicit yes, then call with confirm:true — and tell them to store it in a server-side secret manager and never place it in browser code, client-visible environment variables, logs or source control. If OpenAI answers that key creation is not enabled for this ad account, that is an account-enablement answer from OpenAI (they say to contact your partner representative) — the connection is fine and nothing is broken on Hermoso’s side.
Parameters
| Parameter | Type | Description |
|---|---|---|
namerequired | string | a descriptive name, 3–1000 characters — it can never be listed or renamed afterwards |
confirm | boolean | REQUIRED true — the key is permanent and its secret is shown once |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_openai_ads_conversion_api_key.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_openai_ads_conversion_api_key","arguments":{"name":"<string>"}}}
CLI
hermoso call create_openai_ads_conversion_api_key --json '{"name":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
send_openai_ads_conversionsSend server-side conversion events to ChatGPT Adsupdate_openai_ads_accountUpdate the ChatGPT Ads account (brand / account / legal name, URL, favicon)preview_openai_ads_adPreview a ChatGPT Ads adset_openai_ads_statusActivate, pause or archive a ChatGPT Ads account / campaign / ad group / adopenai_ads_conversionsChatGPT Ads attributed conversionsdelete_openai_ads_objectArchive (ChatGPT Ads’ delete) a campaign / ad group / adset_openai_ads_budgetSet a ChatGPT Ads campaign budgetupdate_openai_ads_objectEdit a ChatGPT Ads campaign / ad group / adupdate_openai_ads_feed_productsUpdate ChatGPT Ads product-feed variantsopenai_ads_bulk_jobRead a ChatGPT Ads bulk job