Skip to content
adscapi

LINE CAPI Payload Preview

The server-side request adscapi builds when you track() a purchase and LINE is configured. Secrets and hashed values show as placeholders.

Request

POST
Endpoint
https://conversion-api.tr.line.me/v1/{LINE_TAG_ID}/events
Headers
X-Line-TagAccessToken: {LINE_TOKEN}
Content-Type: application/json
Body (purchase example)
[
  {
    "web": {
      "ip_address": "203.0.113.10"
    },
    "event": {
      "deduplication_key": "order_1001",
      "event_type": "conversion",
      "event_name": "purchase",
      "source_type": "web",
      "event_timestamp": 1739452800000
    },
    "user": {
      "email": "<sha256(normalized-email)>",
      "phone": "<sha256(e164-phone)>"
    },
    "custom": {
      "value": 49.99,
      "currency": "USD"
    }
  }
]

Verified against the library dispatcher (src/dispatchers/line.ts). See the LINE setup guide for where to get each secret.

Required secrets

LINE_TAG_IDLINE_TOKEN

LINE activates when every secret is present. One missing key and the platform no-ops — the rest still receive the event.

Event-name mapping

Canonical eventLINE receives
page_viewpage_view
leadlead
signup_startsignup_start (custom event passthrough)
signupsignup
checkout_createdcheckout_created
purchasepurchase
reply_generatedreply_generated (custom event passthrough)
upgrade_clickedupgrade_clicked (custom event passthrough)

Good to know

  • The body is a bare JSON array of event objects — no wrapper object.
  • Token goes in the X-Line-TagAccessToken header; the tag id is in the URL path.
  • web.ip_address sends without a consent check; user.email and user.phone require adUserData consent.
  • event_timestamp is epoch milliseconds; event_type is a 2-value enum — page_view stays page_view, everything else sends conversion.

Frequently Asked Questions

Related Tools

Discover more free tools to fix your tracking

Event Payload Playground

Pick a canonical conversion event, fill the fields, and see the exact JSON payload adscapi builds — before you write a line of code.

Try it now

PII Hash Previewer

Type a raw email or phone number and see the normalized value plus its SHA-256 hash — the exact rules adscapi applies per platform. Nothing leaves the browser.

Try it now

Platform Coverage Explorer

Search all 26 ad platforms adscapi dispatches to — support level, required secrets, and setup docs, always in sync with the library registry.

Try it now

Ready to track LINE conversions server-side?

adscapi is free and open source. Set your platform tokens, call track() once, and every configured Conversions API receives the event — hashed the way each platform expects.