Skip to main content

Onboard Your Device

Prerequisites

Please check the Prerequisites & Basics section before starting the onboarding process. Before running any request, select the weda-core environment in Postman and confirm required variables are filled.

Workflow Overview

This onboarding tutorial involves operations on both WEDA Cloud and WEDA Edge. Before running the detailed API steps, review the flow below to understand where each action happens.

In this chapter, the flow is:

  1. Get access token (Cloud)
  2. Create organization (Cloud)
  3. Start WEDA Node to get hwModel and deviceId (Edge)
  4. Register device (Cloud)
  5. Verify connection status (Cloud and Edge)
  6. Get telemetry data (Cloud)

1. Get Access Token (Cloud)

Postman Collection: 0-WiseSso

The first collection is 0-WiseSso, which contains the workflow to get an access token. Please make sure to run the APIs in the correct order, which means running 5 requests in sequence, and you will get the access token at the end of the workflow.

  1. External Login 302
  • This request initializes the SSO redirect flow and establishes the initial login session context.
  • Expected result: WEDA Cloud returns 302. External Login
  1. Account Login
  • This step submits your account credentials to authenticate the user with the identity service.
  • Expected result: WEDA Cloud returns 200, accepts the login, and updates the authenticated session context. Account Login
  1. External Login 200
  • This call completes the tenant-aware login return flow and confirms the correct tenant context.
  • Expected result: WEDA Cloud returns 200 with the expected tenant context. External Login 200
  1. Signin Oidc
  • This step uses the authenticated session cookie to perform OIDC sign-in and obtain exchangeable identity tokens.
  • Expected result: WEDA Cloud returns 302 and redirects with the OIDC exchange context. Signin Oidc
  1. WEDA Token
  • This final request exchanges the OIDC result for the WEDA access token used by subsequent API requests.
  • Expected result: WEDA Cloud returns 201 with a valid WEDA access token for subsequent API calls. Access Token

2. Create a New Organization (Cloud)

Create a new organization using the following APIs.

Postman Collection: 1-Org & ClientCrend

  • Org Create: Create a new organization with a unique name.
    • This request creates a new organization under your current tenant.
    • Expected result: WEDA Cloud returns 201 and provides the created organization information.
note

If the organization name already exists, WEDA Cloud returns 409.

postman org create

Example Request: Curl
curl --location --request POST 'https://{domain}/{tenantPath}/{appPath}/api/v1/orgs' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access-token}' \
--data '{
"name": "new_org"
}'
Example Response
{
"name": "new_org",
"orgId": "26ba6f6e-8454-4778-a69a-100d852fdc71",
"parentOrgId": null,
"description": null,
"admins": [
{
"userId": "019ea502-04c5-7382-b4df-fb31a00fb002",
"orgRole": "admin",
"name": "Alvin Wang"
}
],
"dateCreated": "2026-06-09T09:46:19.3412009Z",
"dateModified": null
}

Key parameters:

  • orgId: The organization ID returned after creating the organization. You will use it again in the device creation step.
    • Example: In the response above, 26ba6f6e-8454-4778-a69a-100d852fdc71 is the orgId.

Other APIs in the 1-Org & ClientCrend collection:

  • Org List: Get the list of organizations.
  • Org Delete: Delete an organization by its ID.
  • Client-Cred Create: Create a new client credential.
  • Client-Cred List: Get the list of client credentials.
  • Client-Cred Delete: Delete a client credential by its ID.
  • Connect Token: Exchange client_id and client_secret for a client access token (grant_type=client_credentials), typically used for service-to-service API access.

Note: Client credential is required for third-party integrations. For example, Grafana data source.

3. Start WEDA Node (Edge)

Run WEDA Node Activator first to get the device information before registering it in WEDA Cloud.

activator_initial

  • deviceId: Find this value in the Device field.
  • hwModel: Find this value in the Model field.

4. Register a Device (Cloud)

Create a device using the following APIs, the variable orgId will automatically be populated if you have finished the previous step 2. Create a New Organization (Cloud).

Postman Collection: 2-Provisioning&Activation

  • Node Register: Create a new device under the organization.
    • This request registers the device in WEDA Cloud using deviceId, hwModel, and orgId.
    • Expected result: WEDA Cloud returns 201 and provides the registered device information.

postman create device

Example Request: Curl
curl --location --request POST 'https://{domain}/{tenantPath}/{appPath}/api/v1/orgs/devices' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access-token}' \
--data '{
"deviceId": "cc827f50f406",
"hwModel": "ADVANTECH-EDGE",
"orgId": "26ba6f6e-8454-4778-a69a-100d852fdc71"
}'
Example Response
{
"deviceId": "cc827f50f406",
"hwModel": "ADVANTECH-EDGE",
"orgId": "26ba6f6e-8454-4778-a69a-100d852fdc71",
"status": "Registered",
"deviceName": null
}

Key parameters:

  • deviceId: Must be a MAC address (lowercase letters and numbers only, no symbols).
  • hwModel: Hardware model of the device, for example MIC-710 or ADVANTECH-EDGE.
  • orgId: The organization ID returned from the previous step.
  • status: At this stage, the device is only registered in WEDA Cloud. If WEDA Node is not connected yet, the status remains Registered.
  • deviceName: Optional display name for the device. This value can be defined by the user.

Other APIs in the 2-Provisioning&Activation collection:

  • Node Activation: Get device auth info used for activation (encrypted auth payload/file) (see Appendix).
  • Node List: Get a paginated device list. You should see the newly created device in the list.
  • Node List Under Org: Get the list of devices under the organization.
  • Token Refresh: Get a new access token using the refresh token.
  • Node Deactivate: Deactivate a device by its ID. status: deactivate
  • Node Remove: Delete a device by its ID.

5. Start WEDA Node and Verify Connection (Edge and Cloud)

Setup WEDA Node (Edge)

In this chapter, the goal is to run WEDA Node on the Edge device and verify that the device connects successfully.

Step 1: Run WEDA Node Activator

step1

  1. Open WEDA Node Activator on the edge device.
  2. Select Setup WEDA Node

Step 2: License Agreement

step2

Please read the license agreement completely. After reviewing the content, press Space to accept it, then continue to the next step.


Step 3: Credential Source

step2


Option A: Register & Connect Device to WEDA Site (Default)

Best for standard Advantech devices connecting to the public WEDA Cloud.

  1. Select "Register & Connect Device to WEDA Site" and press Enter.
  2. The built-in key bundled with the installer is used automatically.
  3. No login or external file is required.

Expected result: The device is automatically provisioned on the public WEDA platform on first service start.


Option B: Use Local Credential File

Best for offline deployments, LAN environments, or pre-provisioned devices.

Optional Path

If you need to register by local credential file, follow Appendix: Register by Local Credential File.


Step 4: Setup Setting

step9

Use this page to confirm that all installation settings are correct before proceeding.


Step 5: Installing

step9


  • Fast Network: 2-3 minutes
  • Slow Network: 5-10 minutes
  • Do NOT close the terminal or press Ctrl+C

Expected result: Docker images downloaded, containers started, service running.

Step 6: WEDA Node Installation Complete

afterinstall

At this stage, you can also confirm on the Edge side that the WEDA Node connection is established.

Service Dashboard

Status icons:

  • green — running / connected / registered
  • grey — stopped / unknown
  • red — failed / disconnected

Connection box color:

  • Green border — device connected to WEDA server
  • Red border — REG_FAILED or container not found
  • Grey border — intermediate states

The dashboard auto-refreshes every 5 seconds.

Management Actions

ActionDescription
Update Authentication CredentialsReplace the master key or credential file without reinstalling
Restart ServiceStop and restart all WEDA Node Docker containers
Remove WEDA NodeUninstall containers, volumes, and configuration (type REMOVE to confirm)

Verify WEDA Node Connection from Cloud

Postman Collection: 2-Provisioning&Activation

  • Node List Under Org: Get the list of devices under the organization.
    • This request queries the devices under orgId and is used to verify whether the WEDA Node has connected successfully from the Cloud side.
    • Expected result: WEDA Cloud returns 200, and the response includes your deviceId, hwModel, and current status.
    • Connection check: when the node is online and activated, the device status should become Activated. img-nodelistunderorg

6. Get Device Telemetry Data

Get telemetry data from the device using the following APIs.

Postman Collection: 3-Telemetry

  • Data Points Latest Get by User Token: Get the latest telemetry snapshot of a device with a user access token.
    • This request returns the latest values of device data objects, including system and sensor measurements.
    • Expected result: WEDA Cloud returns 200 and provides the latest telemetry data for the specified deviceId.

postman get latest datapoint

Example Request: Curl
curl --location --request GET 'https://{domain}/{tenantPath}/{appPath}/api/v1/devices/{deviceId}/inputs/data-objects/latest' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access-token}'
Example Response
{
"deviceId": "cc827f50f406",
"time": "2026-06-13T19:27:21.9064265Z",
"dataObjects": {
"hwinfo_motherboard": "",
"gpio_isSupported": false,
"disk_root_total": 129826357248,
"disk_root_available": 61717356544,
"disk_root_used": 68109000704,
"disk_root_usage_percent": 52.46,
"cpu_load_5m": 1.53,
"cpu_load_15m": 0.95,
"memory_total": 33417658368,
"memory_available": 29506846720,
"memory_used": 3910811648,
"memory_cached": 13590900736
},
"dataTypes": [
"string",
"boolean",
"double",
"double",
"double",
"double",
"double",
"double",
"double",
"double",
"double",
"double"
]
}

Key parameters:

  • deviceId: The target device ID for telemetry query.
  • time: The timestamp of the latest telemetry snapshot.
  • dataObjects: The latest measurement values returned by the device.

Other APIs in the 3-Telemetry collection:

Note (Data Points Historical Get):

To change the query time range, open the Scripts tab and set startTime and endTime. Both values use URL-encoded ISO 8601 datetime strings (for example, 2026-03-24T06%3A41%3A04.231Z), not milliseconds.

Default script behavior:

  • startTime: current time minus 1 hour
  • endTime: current time plus 1 minute

Appendix: Register by Local Credential File

Use this method when you need offline deployments or pre-provisioned devices.

  1. Get Local Credential File: Download the credential file (.bin) for the device.
  2. Place the downloaded credential file on the Edge device, or confirm the exact file path before setup.
  3. In WEDA Node Activator, select "Use Local Credential File" and press Enter.
  4. At previous Step 3 (Credential Source), select the authentication method and choose Local Credentials Setup for this scenario:
MethodFileUse When
Auto ProvisionN/AMass deployment - auto provisions many devices
Local Credentials SetupDevice Credential (.bin)Single device with a downloaded credential file
  1. In WEDA Node Activator file picker, select the credential file (.bin) and press Enter.
  2. Verify registration is successful on Edge and Cloud sides (for example, service is connected on Edge and device status becomes Activated on Cloud).

Expected result: WEDA Node is successfully registered and connected using the local credential file.


Next Step

Congratulations! You have successfully onboarded your edge device to the WEDA platform and retrieved telemetry data. Continue to the next chapter to deploy AI Containers.


Last updated on Apr-8, 2026 | Version 1.0.0