Createauth

From SafeStamper API documentation
Revision as of 15:27, 17 October 2023 by Adminwiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This operation creates an authkey pending authorization.

After creating the authkey, the application must redirect the user to the authorization web page: https://www.safestamper.com/authorize/<AUTHKEY>

URL

https://www.safestamper.com/api/createauth

Parameters

  • sharedkey: Your API client shared key
  • signature: Parameters signature, as explained in Signature parameter

Returns

A JSON object with the following fields:

  • authkey: Authkey value
  • authorized: State of authkey. It's false at this moment.

HTTP Errors

  • 403 Forbidden: sharedkey or signature are not valid

Example

REQUEST:

https://www.safestamper.com/api/createauth
?sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh
&signature=9c47b45a87e02624bb7b98b96f5f147e22ecc592

RESPONSE (actual response has no line breaks or indentation):

{
   "authkey":"c498d3e0-aedb-48fe-82d5-5dec4270318b",
   "authorized":"false"
}