API callbacks

For the Data Streamer integration, an API callback object should be included in the request body.

The properties of the API callback are as follows:

NameTypeDescription
idInteger (required)Numerical ID of the callback, an existing API callback may be reused based on this id and other properties are then optional
urlString (required)Callback URL
organisation_idStringNumerical ID of the organization that created the API callback
purposeStringA description of the use of the api_callback object

Example

The following example request body creates a REST API type data stream.

POST https://cdn.emnify.net/api/v1/data_stream

1{
2 "stream_historic_data": 0,
3 "data_stream_type": {
4 "description": "Events",
5 "id": 2
6 },
7 "api_type": {
8 "description": "RestAPI",
9 "id": 1,
10 },
11 "api_callback": {
12 "organisation_id": "1337",
13 "url": "https://my-application-server.com/callback",
14 "purpose": "Adding Alerts for failed auth attempts.",
15 "id": 196,
16 }
17}