POST
/
devices

Authorizations

Authorization
string
header
required

Authenticate with bearer_token you obtained from /login endpoint.

Body

application/json
reference_id
string

A reference that is meaningful to you, for example, an ID from your system.

Response

201 - application/json

This object represents a device or another asset of a compatible type.

account_id
string
required

FlatPeak account ID.

id
string
required

FlatPeak unique object id.

live_mode
boolean
required

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

object
string
required

Represents the object’s type.

reference_id
string
required

A reference that is meaningful to you, for example, an ID from your system.

time_created
string
required

Time when the object was created, in UTC.

last_seen
string

Timestamp of when the device has last queried the service.