To register a user with DOA using the API you first need to make sure you have the values for your request headers set up by following the Unauthenticated Requests setup guide.
Once you have your values for X-Scope-Id, X-Encrypted-User and X-Encrypted-Key setup, You can now initiate a delegated user registration.
Post that, you would need your own unique private key which you would use for signing. Follow the below guide ot generate it.
Generating DOA Keys
The delegateRegister method registers a specific user within a specific scope. It generates user blockchain account on the backend and returns account_id and identifier_hash back.
Request Spec
HTTP Method: POST
X-Scope-Id: A UUID string representing the application scope.
X-Encrypted-Key: A string containing the encrypted key for secure communication.
Body:
encrypted_credential: A JSON object carrying the attestation with its signature
encrypted_user: User details json encrypted using aes key