Tracking

Define a conversion event

Adds a conversion event so OneLence reports it, e.g. "Demo booked" sent by the SDK as demo_booked.

post/event-definitions

Request

  • Base URL: https://api.onelence.com/v1
  • URL: https://api.onelence.com/v1/event-definitions
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.onelence.com/oauth/authorize, token URL https://api.onelence.com/oauth/token, scopes: tracking:write)
    • HTTP bearer

Query parameters

dry_runboolean

true returns a preview of the change and applies nothing.

Headers

Idempotency-Keystring

8 to 200 visible ASCII characters. Retries with the same key and request return the stored response for 24 hours.

Request body

namestring required

Display name, e.g. "Demo booked".

event_namestring required

Event name the SDK sends, e.g. demo_booked.

Response

With dry_run=true: what would change. Nothing is applied.

object'preview' required
capabilitystring required

Changes

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