ShareAI Platform Docs

Authenticate the Device API

Create a device-specific Remote Control token and understand the provider, device and enabled-state checks for ShareAI Device API requests.

View as Markdown
On this page

Device API acts on a specific provider–device relationship. It is the second access layer beneath Provider Remote Access. Use it for that device’s sessions and sharing commands.

Enable both layers#

  1. In Provider Settings, enable Remote Access.
  2. Open the target device and its Remote Control tab. Enable Remote Control for that device.
  3. Create a named device access token and store its secret. Copy the provider UUID and device UUID shown for the same relationship.
  4. Authenticate with HTTP Basic: provider UUID as username, device access token as password.
Remote Control creates credentials for one provider–device relationship.Remote Control creates credentials for one provider–device relationship.
Remote Control creates credentials for one provider–device relationship.

Access boundary#

CheckRequirement
Provider identityThe Basic username and path provider UUID must match the token’s provider.
Device identityThe path device UUID must match the token’s device relationship.
Provider accessProvider Remote Access must be enabled.
Device accessRemote Control must be enabled for this device.
ConnectionThe relationship must be connected or sharing.
Token stateThe token must be active.

Verify with a read#

GET https://api.shareai.now/api/v1/console/provider/{provider_uuid}/device-management/{device_uuid}/remote/sessions

Read sessions for the authorized device.

Base URL
https://api.shareai.now
Authentication
HTTP Basic: provider UUID and device access token

cURL

curl --fail-with-body \
  "https://api.shareai.now/api/v1/console/provider/$PROVIDER_UUID/device-management/$DEVICE_UUID/remote/sessions?page=1&limit=20" \
  -u "$PROVIDER_UUID:$DEVICE_ACCESS_TOKEN"

When a request is denied#

Check the two enabled switches, the current connection, token status and both UUIDs. Do not use the device name, MAC address, owner email or a provider-level access token as a substitute. After reconnecting a device, recheck the relationship shown in Console.

Last updated September 15, 2026

ShareAI Platform Docs
All documentation

Search by title or content.

Ask about this page

Choose an assistant to explore this page. You can also copy the page and paste it into your conversation.

Ask ChatGPTAsk ClaudeAsk GrokAsk ShareAI