Certificate/get and Deleteoperator: Difference between pages

From SafeStamper API documentation
(Difference between pages)
Jump to navigation Jump to search
api>Admin
 
api>Admin
(Created page with "This operation deletes the authorized operator. All the operator's certificates will be owned by the main user = URL = <nowiki>https://www.safestamper.com/api/deleteoperator<...")
 
Line 1: Line 1:
This operation downloads the certificate. No password is needed if the certificate is protected
This operation deletes the authorized operator. All the operator's certificates will be owned by the main user


= URL =
= URL =
<nowiki>https://web.safestamper.com/api/certificate/get</nowiki>
<nowiki>https://www.safestamper.com/api/deleteoperator</nowiki>


= Parameters =
= Parameters =
* '''sharedkey''': Your API client shared key
* '''sharedkey''': Your API client shared key
* '''authkey''': Authkey of certificate owner
* '''authkey''': Authkey of authorized operator to delete
* '''code''': Code of certificate to download
* '''signature''': Parameters signature, as explained in [[Signature parameter]]
* '''signature''': Parameters signature, as explained in [[Signature parameter]]


= Returns =
= Returns =


Returns the certificate file
HTTP 200 OK


= HTTP Errors =
= HTTP Errors =


* '''401''' Unauthorized: the authkey does not exist or is not authorized
 
* '''403''' Forbidden: the sharedkey or signature are not valid
* '''401''' Unauthorized: the authkey is not valid
* '''404''' Not found: the certificate does not exist or does not belong to the user
* '''403''' Forbidden: the sharedkey is not valid


= Example =
= Example =
Line 24: Line 23:
REQUEST:
REQUEST:
<pre>
<pre>
https://web.safestamper.com/api/certificate/get
https://www.safestamper.com/api/deleteoperator
?authkey=0021d81c-e4a5-4869-8384-2fd70cdb58ec
?authkey=22644c3d-668c-492f-bef9-6ecf0fa8e495
&code=150121-6MY3TJ
&sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh
&sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh
&signature=b1b22b34967fdf2eb67c3569a1e8b90f9fb63e77
&signature=f9e0222c2fcacbea7923552128a9d395d122e963
</pre>
</pre>


RESPONSE:
RESPONSE:


Certificate file
HTTP 200 OK

Revision as of 19:15, 11 December 2018

This operation deletes the authorized operator. All the operator's certificates will be owned by the main user

URL

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

Parameters

  • sharedkey: Your API client shared key
  • authkey: Authkey of authorized operator to delete
  • signature: Parameters signature, as explained in Signature parameter

Returns

HTTP 200 OK

HTTP Errors

  • 401 Unauthorized: the authkey is not valid
  • 403 Forbidden: the sharedkey is not valid

Example

REQUEST:

https://www.safestamper.com/api/deleteoperator
?authkey=22644c3d-668c-492f-bef9-6ecf0fa8e495
&sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh
&signature=f9e0222c2fcacbea7923552128a9d395d122e963

RESPONSE:

HTTP 200 OK