Certificate/accesslevel and Certificate/get: Difference between pages
(Difference between pages)
api>Admin No edit summary |
m (1 revision imported) |
||
Line 1: | Line 1: | ||
This operation | This operation downloads the certificate. No password is needed if the certificate is protected | ||
= URL = | = URL = | ||
<nowiki>https:// | <nowiki>https://web.safestamper.com/api/certificate/get</nowiki> | ||
= Parameters = | = Parameters = | ||
* '''sharedkey''': Your API client shared key | * '''sharedkey''': Your API client shared key | ||
* '''authkey''': Authkey of certificate owner | * '''authkey''': Authkey of certificate owner | ||
* '''code''': Code of certificate to | * '''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 Errors = | = HTTP Errors = | ||
* '''401''' Unauthorized: the authkey is not | * '''401''' Unauthorized: the authkey does not exist or is not authorized | ||
* '''403''' Forbidden: the sharedkey or signature are not valid | * '''403''' Forbidden: the sharedkey or signature are not valid | ||
* '''404''' Not found: the certificate does not exist | * '''404''' Not found: the certificate does not exist or does not belong to the user | ||
= Example = | = Example = | ||
Line 36: | Line 24: | ||
REQUEST: | REQUEST: | ||
<pre> | <pre> | ||
https:// | https://web.safestamper.com/api/certificate/get | ||
?authkey=0021d81c-e4a5-4869-8384-2fd70cdb58ec | ?authkey=0021d81c-e4a5-4869-8384-2fd70cdb58ec | ||
&code= | &code=150121-6MY3TJ | ||
&sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh | &sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh | ||
&signature=b1b22b34967fdf2eb67c3569a1e8b90f9fb63e77 | &signature=b1b22b34967fdf2eb67c3569a1e8b90f9fb63e77 | ||
Line 47: | Line 33: | ||
RESPONSE: | RESPONSE: | ||
Certificate file |
Latest revision as of 15:27, 17 October 2023
This operation downloads the certificate. No password is needed if the certificate is protected
URL
https://web.safestamper.com/api/certificate/get
Parameters
- sharedkey: Your API client shared key
- authkey: Authkey of certificate owner
- code: Code of certificate to download
- signature: Parameters signature, as explained in Signature parameter
Returns
Returns the certificate file
HTTP Errors
- 401 Unauthorized: the authkey does not exist or is not authorized
- 403 Forbidden: the sharedkey or signature are not valid
- 404 Not found: the certificate does not exist or does not belong to the user
Example
REQUEST:
https://web.safestamper.com/api/certificate/get ?authkey=0021d81c-e4a5-4869-8384-2fd70cdb58ec &code=150121-6MY3TJ &sharedkey=axvmfqn8aex21mxhq5zsj7l482saxfu7j4hh &signature=b1b22b34967fdf2eb67c3569a1e8b90f9fb63e77
RESPONSE:
Certificate file