메인 콘텐츠로 건너뛰기
POST
/
track-event
track-event
curl --request POST \
  --url https://api.notifly.tech/track-event \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "projectId": "example_project_1234567890abcdef",
  "eventName": "product_view",
  "userId": "user_abc123"
}'
{
  "message": "Successfully tracked events 3 events"
}
다중 이벤트 트래킹한번에 여러 이벤트를 트래킹할 수도 있습니다. 같은 형식의 Object들을 Array 형태로 호출해주시면 됩니다.
  • 최대 트래킹 수: 1회 호출당 최대 500개의 이벤트까지만 로깅 가능합니다.

Authorizations

Authorization
string
header
required

POST /authenticate로 발급받은 인증 토큰

Body

application/json
projectId
string
required

노티플라이 팀에서 제공하는 프로젝트 ID입니다. 설정 > 프로젝트 정보에서 확인하실 수 있습니다.

eventName
string
required

이벤트 이름

userId
string
required

유저 식별자

eventParams
object

이벤트와 관련된 추가 파라미터

segmentationEventParamKeys
string[]

세그먼트 분류 시 특별 처리되는 파라미터 키 목록 (최대 1개만 허용)

Response

성공적인 이벤트 전송입니다

message
string

성공 메시지