Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
    • Account and authorization
      • Set up a sub-account
      • OAuth for user devices
      • Configure flow resource pools
    • Device access
    • Audio and video
    • Device capability integration
    • Receive device messages
    • Manage cloud storage
    • Release and operations
  • Device capabilities & events
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Tasks in this section
Server vs client
Prerequisites
Related

Account and authorization

Account and authorization

This section covers who calls the OpenAPI (administrator, sub-account, OAuth user) and how app users get device permissions. Device hosting / warrant flows are not published for overseas integrations.

Background: Sub-accounts and policies, OAuth 2.0 authorization, Tokens. Request fields live on Account and authorization APIs.

Tasks in this section

TaskWhen to use it
Set up a sub-accountYour SaaS user must operate devices under your developer account; Policy, permissions, subAccountToken
OAuth for user devicesEnd users sign in with Imou and grant devices to your app; complements the sub-account model
Configure flow resource poolsCap playback traffic per sub-account or device channel

Server vs client

  • Sub-accounts: Create accounts, assign permissions, and exchange tokens only on a trusted server; never ship AppSecret or long-lived tokens to browsers or untrusted clients.
  • OAuth: Authorization code and refresh on the server; mobile/light apps receive short-lived tokens or kitToken (see Build a mobile app, Integrate the light application).
  • Device list and bind stay on Device management APIs; sub-account visibility follows permissions.

Prerequisites

Create an application with AppId / AppSecret; first HTTP call: First API call.

Related

  • Guide index · Device access · Release checklist