Sifely Open API
  1. OAuth Manager
Sifely Open API
  • Overview
  • Quick start
  • OAuth Manager
    • Login
      POST
    • Get authorization_code
      POST
    • Get token refresh token
      POST
  • Key Manager
    • Get Ekeys by account
      POST
    • Send ekey
      POST
    • Delete ekey
      POST
  • Passcode Manager
    • Create passcode
      POST
    • Change passcode
      POST
    • Delete passcode
      POST
    • Get passcode
      POST
  • Lock Manager
    • Unlock a lock via gateway
      POST
    • Lock the lock via gateway
      POST
    • Get lock details
      GET
    • Get keys of a lock
      GET
    • Passcode list
      GET
    • Get Lock open state
      GET
  • Group Manager
    • Group list
      GET
  • Card Manager
    • Ic card list
      GET
  • FingerPrint Manager
    • FingerPrint list
      GET
  • Records Manager
    • Get unlock records by lockId
      GET
  1. OAuth Manager

Get authorization_code

test-envirement
test-envirement
POST
/system/smart/authorize
OAuth Manager
Redirect a website with a authorization_code

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Query Params
client_id
string 
required
The state accessed
password
string 
required
The md5 encode string of password
redirect_uri
string 
optional
If you need to oauth to a website the redirect of this site with a code
scope
string 
optional
It is used to verify that the scope is from you
state
string 
optional
The client id of partners that send by Sifely
username
string 
required
Email or phone number(dont need country code)

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev-alexa.sifely.com/system/smart/authorize?client_id&password&username'

Responses

🟢200OK
*/*
OK
Body
code
integer <int32>
optional
data
object 
optional
Additional properties
string 
optional
message
string 
optional
Example
{
  "code": 0,
  "data": {
    "property1": "string",
    "property2": "string"
  },
  "message": "string"
}
🟢204No Content
🟠401Unauthorized
🟠403Forbidden
Modified at 2025-01-23 03:56:41
Previous
Login
Next
Get token refresh token
Built with