Flexa registry offers https API endpoints for device assignment to partner's portal and for device to pull it's desired portal data.

Server
flexa-base.azurewebsites.net
Server Variables

AssignDevice

Assigns a device to be used with partner's portal

NOTE: If you don't specify 'url' parameter nor 'completeUrl' the device will be unassigned!

Auth
Query String
keystring

Partner's API key (example - 1RMq3ixf4uM6pTZi)

regIdstring

Device's registration ID (example - rd7JmLGdg5Rr)

urlstring

Root URL pointing to desired service, root URL must contain "GetURL" script and must accept POST requests

completeUrlstring

Exact URL pointing to desired partner side script/file accepting GET requests

GET /AssignDevice
Copy
Responses text/plain
200

Success

No response body
400

Request param missing

403

Auth failed

404

Device not found

405

Unassign failed: auth failed

406

Device already assigned

500

Internal database error

Response
Copy

AssignDevice

Assigns a device to be used with partner's portal

NOTE: If you don't specify 'url' parameter nor 'completeUrl' the device will be unassigned!

Auth
Request Body application/json
objectobject
keystring

Partner's API key

regIdstring

Device's registration ID

urlstring

Root URL pointing to desired service, root URL must contain "GetURL" script and must accept POST requests

completeUrlstring

Exact URL pointing to desired partner side script/file accepting GET requests

extraobject

Any extra one-time setup parameters

POST /AssignDevice
Copy
Responses text/plain
200

Success

No response body
400

Request param missing

403

Auth failed

404

Device not found

405

Unassign failed: auth failed

406

Device already assigned

500

Internal database error

Response
Copy

AssignDeviceBatch

Assigns list of devices to be used with partner's portal

NOTE: If you don't specify 'url' parameter nor 'completeUrl' the devices will be unassigned!

Auth
Request Body application/json
objectobject
keystring

Partner's API key

regIdarray[string]

Devices registration IDs

urlstring

Root URL pointing to desired service, root URL must contain "GetURL" script and must accept POST requests

completeUrlstring

Exact URL pointing to desired partner side script/file accepting GET requests

extraobject

Any extra one-time setup parameters

POST /AssignDeviceBatch
Copy
Responses application/json
200

Registration IDs of successfully assigned/unassigned

arrayarray[string]
400

Malformed request body / Request param missing

403

Auth failed

500

Internal database error

Response
Copy

DeviceGet

Device facing endpoint for getting desired service's urls and extra parameters (if defined)

NOTE: If you don't specify 'url' parameter nor 'completeUrl' the devices will be unassigned!

Auth
Query String
regIdstring

Device's registration ID (example - rd7JmLGdg5Rr)

GET /DeviceGet
Copy
Responses application/json
200

Device data

objectobject
urlstring

Root URL pointing to desired service, root URL must contain "GetURL" script and must accept POST requests

completeUrlstring

Exact URL pointing to desired partner side script/file accepting GET requests

extraobject

Any extra one-time setup parameters

400

Device not assigned

404

Device not found

Response
Copy

DeviceGet

Device facing endpoint for getting desired service's urls and extra parameters (if defined)

NOTE: If you don't specify 'url' parameter nor 'completeUrl' the devices will be unassigned!

Auth
Request Body application/json
objectobject
regIdstring

Device's registration ID

DeviceInfoobject

Device info in form [name]:[value]

POST /DeviceGet
Copy
Responses application/json
200

Device data

objectobject
urlstring

Root URL pointing to desired service, root URL must contain "GetURL" script and must accept POST requests

completeUrlstring

Exact URL pointing to desired partner side script/file accepting GET requests

extraobject

Any extra one-time setup parameters

400

Device not assigned

404

Device not found

500

Internal server error

Response
Copy