The Adobe Acrobat Sign Document API is designed to seamlessly integrate into your existing application without requiring you to go through a separate Acrobat Sign-managed registration process. Therefore, the enclosing application is responsible for ensuring that the sender is a registered Acrobat Sign user. It registers them programmatically through the API if they are not. Recipients are never required to register, and Acrobat Sign always manages whatever interactions are necessary on the recipient side.
There are several ways to specify a sender when starting a new transaction with the sendDocument method. The behavior depends on what values are passed in through the optional SenderInfo parameter.
As outlined above, in most cases you want to provide the email and password of the user on whose behalf you're sending the document. The following section outlines the different ways that information can be obtained.
Prompt the user for their Acrobat Sign email and password as part of the sending process. You can use the verifyUser method to check that the user is registered with Acrobat Sign and the password is valid. If the user is unregistered, you can either ask them to create their own Acrobat Sign account or create one for them (see below).
If a call to verifyUser shows that no user exists with that email address, you can programmatically create an Acrobat Sign user by calling createUser. Assuming the user creation is successful, the email and password that you provided can now be used as the SenderInfo for your document.
Subsequent to either of the scenarios above, you can then remember the user's email and password and use them as the SenderInfo for sending subsequent documents on behalf of that user. It's possible that the user will actually log in to their Acrobat Sign account and change their password at any time, so your application must be able to handle the case of a previously saved password being invalid.
There are a number of different ways to determine sender identity when using the Acrobat Sign Document API. Read the information above carefully to decide which method is appropriate for your application. If you have any questions, don't hesitate to contact us.