Overview
The Devices REST API services allows you to get device information and manage devices for your company.
Base URL
https://fieldconnect.field2base.com/v2/api
Header (Required)
Authorization: Basic {CompanyID}:{Username}:{Password}:{API Sync Key}
Content-Type: application/json
Note: Authorization Header above is the same as all other Mobile Forms REST API calls.
Note: API Developers can use OAuth 2.0 Authentication instead of the Basic Authentication. The OAuth 2.0 Authentication uses the Client Credentials Grant Type and requires the Company have a Client ID and a Client Secret generated in the Mobile Forms Portal to make web service calls to the REST API Endpoints. You can contact the Professional Services team at f2bps@field2base.com to implement OAuth 2.0 Authentication.
Supported Operations
Append to the Base URL: https://fieldconnect.field2base.com/v2/api
- GET devices/
- Lists of all Devices
- GET devices/{activation id}
- Get Details of a single Device
- GET devices/lookup/{username}
- Get all Activated Devices assigned to a User (by Username)
- Optional parameter for Activation Status: devices/lookup/{username}/{ActivationStatus}
- AllDevices
- Activated
- ActiveDevices
- Deadened
- InProvisioning
- Ready
- POST devices/create
- Create a new Device using the Body of a post request as JSON
- PUT devices/update/{activation id}
- Update a Device using the Activation ID and the Body of a post request as JSON
- PUT devices/changeuser/{activation id}/{username}
- Change the Device's Assigned User (by Username)
- PUT devices/reset/{activation id}
- Reset the history for a Device to allow re-activation
- DEL devices/delete/{activation id}
- Deletes an existing Device
Note: Be sure to add "/" at the end of the call if there is a period in the Username.
API Samples
Get All Devices (devices)
Request: GET
- [
- {
- "TabletUUID": "473a005d-145f-423c-8b43-6e66779f9ced",
- "Serial": "F2BPS-3186-332",
- "FriendlyName": "F2BPS332",
- "CompanyID": 3186,
- "PrimaryUser": "38f1b9ab-2036-4e3c-8bb9-435ef1c3e91e",
- "InsertDT": "2023-09-27T08:24:49.223",
- "LastUpdate": "2023-09-27T08:24:59.853",
- "RowStatus": "A",
- "DevicePlatform": "Android",
- "DeviceType": "samsung SM-X200",
- "HardwareSerial": null,
- "AssetTag": null,
- "DeviceMake": "samsung",
- "DeviceModel": "SM-X200",
- "PlatformType": "TIRAMISU 13",
- "ActivationStatus": 2,
- "BillingReference": null,
- "LastSync": "2023-09-27T10:16:25.213",
- "LastContact": "2023-09-27T10:16:25.213",
- "Version": "7.2.16"
- },
- {
- "TabletUUID": "3fee3c50-a556-4a0c-8c72-dd0a8742b427",
- "Serial": "F2BPS-3186-331",
- "FriendlyName": "F2BPS331",
- "CompanyID": 3186,
- "PrimaryUser": "38f1b9ab-2036-4e3c-8bb9-435ef1c3e91e",
- "InsertDT": "2023-09-25T09:52:55.417",
- "LastUpdate": "2023-09-25T10:01:37.737",
- "RowStatus": "A",
- "DevicePlatform": "Apple",
- "DeviceType": "Apple 9.7-inch iPad (Wi-Fi)",
- "HardwareSerial": "iPad",
- "AssetTag": null,
- "DeviceMake": "Apple",
- "DeviceModel": "9.7-inch iPad (Wi-Fi)",
- "PlatformType": "Apple iOS 16.6.1",
- "ActivationStatus": 2,
- "BillingReference": null,
- "LastSync": "2023-09-25T10:17:21.6",
- "LastContact": "2023-09-25T10:17:21.6",
- "Version": "7.2.8"
- }
- ]
Get Details of a Single Device
Request: GET
- https://fieldconnect.field2base.com/v2/api/devices/F2BPS-3186-332
Response: 200 OK
- {
- "TabletUUID": "423a005d-145f-423c-8b43-6e66779f9ced",
- "Serial": "F2BPS-3186-332",
- "FriendlyName": "F2BPS332",
- "CompanyID": 3186,
- "PrimaryUser": "34f1b9ab-2036-4e3c-8bb9-435ef1c3e91e",
- "InsertDT": "2023-09-27T08:24:49.223",
- "LastUpdate": "2023-09-27T08:24:59.853",
- "RowStatus": "A",
- "DevicePlatform": "Android",
- "DeviceType": "samsung SM-X200",
- "HardwareSerial": null,
- "AssetTag": null,
- "DeviceMake": "samsung",
- "DeviceModel": "SM-X200",
- "PlatformType": "TIRAMISU 13",
- "ActivationStatus": 2,
- "BillingReference": null,
- "LastSync": "2023-09-27T10:16:25.213",
- "LastContact": "2023-09-27T10:16:25.213",
- "Version": "7.2.16"
- }
Look Up Device(s) by User
Request: GET
- https://fieldconnect.field2base.com/v2/api/devices/lookup/first.last@email.com/
Response: 200 OK
- [
- {
- "TabletUUID": "6066baf9-438f-42ac-9342-323ffa9ebec5",
- "Serial": "F2BPS-3136-327",
- "FriendlyName": "F2BPS327",
- "CompanyID": 3136,
- "PrimaryUser": "2f4a70a1-03fb-4928-8249-55381808ad0e",
- "InsertDT": "2023-08-30T11:04:27.617",
- "LastUpdate": "2023-08-30T12:56:58.86",
- "RowStatus": "A",
- "DevicePlatform": "Apple",
- "DeviceType": "Apple iPad 10.2-Inch 7th Gen (Wi-Fi Only)",
- "HardwareSerial": "iPad",
- "AssetTag": null,
- "DeviceMake": "Apple",
- "DeviceModel": "iPad 10.2-Inch 7th Gen (Wi-Fi Only)",
- "PlatformType": "Apple iOS 16.6",
- "ActivationStatus": 2,
- "BillingReference": null,
- "LastSync": "2023-09-25T17:38:03.163",
- "LastContact": "2023-09-25T17:38:03.16",
- "Version": "7304"
- },
- {
- "TabletUUID": "1156ddbf-4097-4b6a-820e-985f87901b52",
- "Serial": "F2BPS-3136-324",
- "FriendlyName": "F2BPS324",
- "CompanyID": 3136,
- "PrimaryUser": "2f4a70a1-03fb-4928-8249-55381808ad0e",
- "InsertDT": "2023-08-23T13:26:23.293",
- "LastUpdate": "2023-08-23T13:26:47.367",
- "RowStatus": "A",
- "DevicePlatform": "Android",
- "DeviceType": "samsung SM-T500",
- "HardwareSerial": null,
- "AssetTag": null,
- "DeviceMake": "samsung",
- "DeviceModel": "SM-T500",
- "PlatformType": "S 12",
- "ActivationStatus": 2,
- "BillingReference": null,
- "LastSync": "2023-09-26T10:48:41.937",
- "LastContact": "2023-09-26T10:48:41.937",
- "Version": "7.2.16"
- }
- ]
Create a Device with No Activation ID
NOTE: Requires Provisioning by the F2B Support Team and is the recommended method. Request: POST
- https://fieldconnect.field2base.com/v2/api/devices/create
Body
- {
- "DevicePlatform": "iPad",
- "DeviceMake": "Apple",
- "DeviceModel": "iPad Pro 9.7",
- "DeviceType": "Apple iPad Pro 9.7",
- "HardwareSerial": "123",
- "AssetTag": "F2B",
- "PrimaryUser": "00000000-0000-0000-0000-000000000000", //Must use User Key guid, not Username
- "PlatformType": "Apple iOS",
- "BillingReference": "Small Business",
- "Serial": null
- }
Create a Device with an Activation ID
NOTE: Requires a system-wide unique Activation ID to be used in the Serial value in the JSON Body otherwise the request will fail. For this reason, the previous method is recommended. Request: POST
Body
- {
- "DevicePlatform": "Android Tablet",
- "DeviceMake": "Samsung",
- "DeviceModel": "Galaxy Tab S4",
- "DeviceType": "Samsung Galaxy Tab S4",
- "HardwareSerial": "456",
- "AssetTag": "Field2Base",
- "PrimaryUser": "00000000-0000-0000-0000-000000000000", //Must use User Key guid, not Username
- "PlatformType": "Android Oreo",
- "BillingReference": "Enterprise",
- "Serial": "123456789"
- }
Change the User Assigned to Device
Request: PUT
Update a Device
Request: PUT
- https://fieldconnect.field2base.com/v2/api/devices/update/{activation id}
Body
- {
- "DevicePlatform": "iPad",
- "DeviceMake": "Apple",
- "DeviceModel": "iPad Air 2",
- "DeviceType": "Apple iPad Air 2",
- "HardwareSerial": "N/A",
- "AssetTag": "Test",
- "PrimaryUser": "00000000-0000-0000-0000-000000000000",
- "PlatformType": "Apple iOS 13",
- "BillingReference": "TEST"
- }
Reset a Device's Activation History
Warning: This action is to be used with the Mobile Forms Enterprise App Build only.
Request: PUT
Delete a Device
Request: DEL