To start using Privicore’s services, you’ll need to create an application profile within the Privicore system. This profile “owns” the data associated with your application and is required to initiate any interaction with Privicore’s APIs.
Example using cURL
To register a new profile, execute the following command:
curl -X POST http://78.47.99.117:8009/profile/register-profile \
-F 'username=newuser@example.com' \
-F 'password=YourSecurePassword'
Note: Ensure that your password is strong; weak passwords will result in a 422 error with this response:
{
"errors": ["password.strength.too_weak"]
}
Upon successful registration, Privicore will return an action ID in this format:
[
"01927ba1-3e7-91da-e614-25f7be07889a"
]
You can use this action ID to check the registration status by querying the endpoint below:
curl --location 'http://78.47.99.117:8009/request-status/01927ba1-3e7-91da-e614-25f7be07889a'
If the registration is successful, the response will be:
[
"profile.profile_registered"
]