Taddy Docs
  • Getting started
    • Интеграция
    • Обмен трафиком
      • TMA
      • Бот
  • Реклама
    • TMA
    • Бот
  • Webhooks
  • SDK
    • Web (JS/TS)
    • PHP
    • Node.js (soon)
    • Go (soon)
    • Python (soon)
  • Rest API
    • About
    • Start event
    • Custom events
    • Exchange API
      • Get feed
      • Impressions event
      • Check completion
    • Ads API
      • Get Ad
      • Impressions event
  • Terms of Service
    • Правила платформы
    • Terms of Service
Powered by GitBook
On this page
  1. Rest API

Custom events

Отправка кастомных событий

PreviousStart eventNextExchange API

Last updated 1 month ago

Send custom event

post
Body
all ofOptional
Responses
204
Event successfully submitted
400
Invalid Request
application/json
post
POST /v1/events/custom HTTP/1.1
Host: api.taddy.pro
Content-Type: application/json
Accept: */*
Content-Length: 393

{
  "pubId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "user": {
    "id": 1234567890,
    "firstName": "John",
    "lastName": "Doe",
    "username": "john_doe",
    "premium": true,
    "language": "en",
    "country": "DE",
    "gender": "male",
    "ip": "65.82.123.21",
    "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
    "birthDate": "2001-01-01"
  },
  "origin": "server",
  "event": "custom1",
  "value": 4.99,
  "currency": "USD"
}

No content