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 token refresh token

test-envirement
test-envirement
POST
/system/smart/oauthToken
OAuth Manager
Get access token by code or refresh access token by refresh token

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 client id of partners that send by Sifely
code
string 
optional
Calling the login method to fill in redirect_uri will get a code when the page is redirected
grant_type
string 
required
The type of refresh_token or authorization_code
refresh_token
string 
optional
If you request by refresh_token that it be need

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/oauthToken?client_id&grant_type'

Responses

🟢200OK
*/*
OK
Body
access_token
string 
optional
access_token
expires_in
integer <int32>
optional
expires_in
Example:
7200
refresh_token
string 
optional
refresh_token
token_type
string 
optional
token_type
Example:
bearer
Example
{
  "access_token": "string",
  "expires_in": 7200,
  "refresh_token": "string",
  "token_type": "bearer"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Modified at 2025-01-23 03:56:39
Previous
Get authorization_code
Next
Get Ekeys by account
Built with