Getting started
If you have an account with a channel, there's nothing to set up, just start sending data to your channel on a topic in single entry JSON format.
You don't need to pre-define your topics, you can just start sending data to any topic name as long as that name is a valid URL.
[channel].v1.readiness.io/[topic]/?[filters|transforms]
Saving data
POSThttps://{{ channel }}.v1.readiness.io/my-topic
POST requests should contain a JSON encoded body with the Content-Type: application/json header
, or a URL encoded body with the Content-Type: application/x-www-form-urlencoded
header. Successful posts will return with a 201 response
code.
{ reading: 123, name: "My cool device" }
If you are using WebSockets from a browser, connect to the WebSocket URL and publish your message.
PUBLISHws://{{ channel }}.v1.readiness.io/my-topic
Returning or receiving data
To read that data again, GET or subscribe to that same address. Please note, be design, Readiness.IO only returns one row for a request. If you want a larger sample set of your data please see the filtering section.
GEThttps://{{ channel }}.v1.readiness.io/my-topic
If you are using WebSockets from a browser, connect to the WebSocket URL and subscribe to messages.
SUBSCRIBEws://{{ channel }}.v1.readiness.io/my-topic
Deleting data
You can permanently remove single or multiple data entries from a topic in the datastore using the DELETE method. This method is only available via REST verbs and requires supplying an API key by default.
Delete a single entry using the inserted_at time (you'll need to know the inserted_at time from a GET request first)
DELETE{{ channel }}.v1.readiness.io/my-topic?inserted_at=1539679588942&apikey=...
Delete multiple entries using filters
DELETEchannel.v1.readiness.io/topic?since=1 day ago&limit=10&apikey=...
Delete an entire topic
DELETEchannel.v1.readiness.io/topic?apikey=...