Support writeKey in event body #4659
kevburnsjr
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Segment's documentation recommends setting an Authorization header
rudder-server/gateway/gateway.go
Line 147 in b834143
However, there is at least one other way to supply a write key that is supported by Segment's API.
Supplying a write key in the
writeKey
property of the event body will register as a valid event of the specified type. The writeKey in the event body will override the write key in the Authorization header if present.Also... Each item in a Batch may contain a different write key from its parent. iirc, Segment will use the batch write key by default and overrides with event specific write key for each event if present.
This API has been designed for maximum interoperability; best to make all possible accommodations.
We never know who might have rolled their own client relying on some quirk like this (they exist).
Beta Was this translation helpful? Give feedback.
All reactions