Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
  • API reference
    • Public conventions
    • Development specification
    • accessToken: Get administrator token
    • API request example
    • Return codes
    • Interface call limits
    • Account docking
      • OAuth authorization
        • oauthTokenV2: Exchange or refresh OAuth tokens
        • getStreamUrl: Get RTSP stream URL
      • createSubAccount: Create Sub Account
      • getOpenIdByAccount: Get openid based on sub-account
      • deleteSubAccount: Delete subaccount
      • listSubAccount: Get the list of sub-accounts
      • subAccountToken: Get subaccount token
      • addPolicy: Add sub-account permissions
      • clearPolicy: Clear sub-account authorization policy
      • queryDevicePermission: Sub-account device dimension permission
      • deleteDevicePermission: Delete sub-account device permission
      • listSubAccountDevice: Query the list of devices with permissions for the sub-account
    • Device APIs
    • Device live broadcast
    • Push configuration
    • Cloud storage service
    • Resource pool quota
    • Legacy APIs (deprecated)
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Module overview
OAuth 2.0 end-user authorization
Sub-account interface list:
Related

Account Docking and Development Documentation - Imou Open Platform

Account docking

Module overview

This module provides developer account docking related agreements: sub-accounts (below) and OAuth 2.0 end-user authorization (separate token model).

Device message callbacks are configured in Push configuration. Sub-account Alarm policy and device.message.* query permissions are in Permission codes.

OAuth 2.0 end-user authorization

For third-party apps that access end users' own Imou Life devices after H5 consent. Uses OAuth project Access Key / Secret Key and the end user's Ot_ token — not administrator or sub-account tokens.

No.APIDescription
1OAuth authorization overviewModule index
2oauthTokenV2Exchange or refresh tokens
3getStreamUrlRTSP URL for authorized devices

Product and billing: OAuth 2.0 authorization.

Sub-account interface list:

Serial numberInterface functionDescription
1Sub-account function descriptionSub-account function description
2createSubAccount: Create a sub-accountDeveloper creates a sub-account
3deleteSubAccount: delete sub-accountDeveloper delete sub-account
4listSubAccount: Get a list of sub-accountsPagination to query sub-accounts created by developers
5subAccountToken: Get sub-account tokenDeveloper get sub-account token
6addPolicy: Add sub-account permissionsDevelopers add sub-account permissions
7clearPolicy: Clear sub-account authorization policyDeveloper clear sub-account authorization policy
8queryPolicy: Get sub-account authorization policyQuery the policy configured for a sub-account
9queryDevicePermission: query device dimension permissions of sub-accountsDeveloper query device dimension permissions of sub-accounts
10deleteDevicePermission: delete sub-account device permissionDeveloper delete sub-account device permission
11listSubAccountDevice: Query the list of devices with permissions for sub-accountsDevelopers create devices with permissions for sub-accounts
12getOpenIdByAccount: Get openId based on sub-accountGet openId based on sub-account

Related

Development specification · Return codes