API Document

Development Integration Steps:

  • Step 1: Sign up on sky2f.com
  • Step 2: Login to the backend, and get your integration API Key
  • Step 3: Add your users' devices after login, and send out activation emails to these users. The mobile APP installtion instruction is also in the emails.
  • Step 4: Add an extra page after your successful login page, and then ask a user to enter a Sky2F secure password from Sky2F mobile APP.
  • Step 5: After a user submits this password, then call the Sky2F API to verify. If status=1 in the response, then continue your regular successful login process.

Simple and Clean API (No SDKs, No Libs. One verification API, three ways to call):

1. Simple GET:
Request:
https://api.sky2f.com/twof/api/verify?code=12345&authid=firstname.lastname@mycompany.com&ip=123.123.123.123&apikey=getMyApiKeyAfterLogin

Response in JSON:
{"status":1}
2. Simple POST:
Request:
curl -d "code=12345&authid=firstname.lastname@mycompany.com&ip=123.123.123.123&apikey=getMyApiKeyAfterLogin" -X POST https://api.sky2f.com/twof/api/verify

Response in JSON:
{"status":1}
3. JSONRPC:
End Point: "https://api.sky2f.com/json-rpc-server"
Request:
{
	"jsonrpc": "2.0", 
	"method": "twof/api/verify", 
	"params": {
		"code": "12345", 
		"authid": "firstname.lastname@mycompany.com",
		"ip": "123.123.123.123",		
		"apikey": "getMyApiKeyAfterLogin",
	}, 
	"id": 123
}

Response in JSON:
{
	"jsonrpc": "2.0", 
	"result": {
		"status":1
	}, 
	"id": 123
}