1. Register and log in

REGISTER AND LOG IN

The base URLs, depending on HARICA’s environment, are the following:

You can find every JSON that is required in each POST request as well as their acceptable key-value pairs in the HARICA - API Documentation Swagger website.

Register

If you want to create an account in CertManager you have to use /api/User/CreateUser as the API endpoint. The data you must include in the request body has to be in a JSON as follows:

 
{
    "fullName":"Your Name",
    "email":"user@harica.gr",
    "password":"...."
}    

If you wish to add additional details to your account, below is all the information that can be included in the JSON:

 
{
    "fullName":"Your Name",
    "fullNameLocalized":"...",
    "email":"user@harica.gr.com",
    "password":"....",
    "dateOfBirth":"2023-1-31T12:26:09.049Z",
    "phoneNumber":"...."
}    

To confirm your new account, please follow the instructions that will be sent to the email address you provided.

Log In

If you wish to log in to your account in CertManager, you have to make a POST request to the API endpoint /api/User/Login. You must submit the email and password corresponding to your account as a JSON object.

 
{
    "email":"enteryouremail",
    "password":"enteryourpassword"
}    

The web token returned from this request will be required for any subsequent API call.
Here is an example of a web token.

 
 eyJhbGciOiJIUzI1NiIs……