pixel

Create Openai Capi Credential

Store an OpenAI Ads pixel ID + Conversions API key (encrypted at rest).

Once stored with forward_server_events enabled, matched Lapis server events are automatically forwarded to the OpenAI Conversions API.

post/api/v1/pixel/openai-capi/credentials

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/pixel/openai-capi/credentials
  • Auth: HTTP bearer

Request body

openai_pixel_idstring required

Pixel ID from the conversions tab of OpenAI Ads Manager

api_keystring required

Conversions API key from OpenAI Ads Manager (stored encrypted)

labelstring nullable

Human-readable label

pixel_api_key_idinteger nullable

Optional Lapis pixel key scope. If set, only events attributed to this pixel's sessions are forwarded.

forward_server_eventsboolean

Auto-forward verified Lapis server events to OpenAI

forward_browser_eventsboolean

Also forward browser pixel conversions + value-ladder rungs

Response

Successful Response

idinteger required
labelstring nullable required
openai_pixel_idstring required
api_key_maskedstring nullable required
pixel_api_key_idinteger nullable required
forward_server_eventsboolean required
forward_browser_eventsboolean
is_activeboolean required
created_atstring date-time required
last_forwarded_atstring date-time nullable required
last_forward_errorstring nullable required

Changes

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