Sending Signals via HTTP Post
This article will first show the minimal structure needed for a signal to send, and then talk about some of the optional extensions.
Please send your signals as POST request to our ingestion server at
https://nom.telemetrydeck.com/v1/, with the headers
Content-Type: application/json and
Here’s an example in cURL:
curl -X POST "https://nom.telemetrydeck.com/v1/" \
-H "Content-Type: application/json; charset=utf-8" \
The post body should be an array of JSON objects, because you can send multiple signals at once. Each signal object should have at least these properties:
appID(String): Your app’s ID in TelemetryDeck (check the app settings to find that out)
clientUser(String): The hash of some sort of non-changing identifier of your user. This can be their email address, user ID, an identifier you gathered from their phone, etc. You need to pseudonymize this with at least SHA256, otherwise you’ll be in breach of the GDPR. We’ll use this value to count users, so anything that distinguishes one of your users from the next is fine.
sessionID(String): Any string that identifies the user’s current session. We usually use a UUID that we regenerate when a new session starts (e.g. the user launches the app). If you don’t want to count or track sessions, it’s okay to add an empty string here.
type(String): The signal type, usually the name of the event that caused the signal to send like
payload(Array of String): Optional metadata to send along with your signal. Note that this is not a dictionary, but instead strings that delimit key and value with a colon
:character. See below for more info. If you don’t want to send a payload, put an empty array here.
isTestMode(Optional String, either
"false"): Optionally mark the signal as a Test Signal. Test signals are only counted when the app is in test mode. See below for details. When this property is not present or anything other than
"true"(as string, not as Boolean), it will be set to
"false"at ingestion time. We recommend setting this to
"true"when your app running in development or debug mode.
"payload": ["platform:curl", "systemVersion:curl 7.77.0"]
// more signals here...
For reasons of mostly performance and database compatibility, the payload must not be a dictionary but instead an array of strings with a colon, like so:
This means you cannot use a colon in the key part of the payload. Using it in the value part is fine, we only match the first colon in the string as the delimiter.
(Note: This is a daft implementation and we will change this in the next version of the API to just accept a dict, but for now it is what it is.)
Extension: Default Payloads
Our own implementations of the SDK will try and send these keys along with each signal. This might be a good way to start:
iPhone 13 Pro Max Plus Ultra
arm64, or similar
Extension: Custom signal timestamp for Caching
If you implement a caching solution where signals are not sent immediately in order to save battery or work around a network availability issue, you can store them locally and send them later.
In that case it might be helpful to store the time at which the signal was triggered locally and pass it along to the server.
To do this, you can optionally supply a
receivedAt property for each signal. The value must be an ISO8601 string with time zone like so:
// other properties here
// more signals here...
Note that when the
receivedAt property will be rounded down to hourly granularity on receiving.
Dates that lie more than 24 hours in the past will be replaced by a date that lies exactly 24 hours in the past.