- libvf documentation
- The official Verified API documentation
- Find this package on NPM
- CDN for this package
// Or specify which modules to import
creates a global object
Using your Verified credentials
Namespace is optional, but you will not be able to act on behalf of a company without it.
const jwt = await libvfauth
Using an existing JWT
Getting the JWT and namespace from the URL parameters
Looks for the url parameters
access_token for the jwt, and
namespace for the namespace. If not found, an error will be thrown.
Creating an envelope
Requires a descriptor id as argument, in most cases this will be
let envelope = await libvfenvelopes
Fetching the envelope data
With the steps above completed, we now have an envelope object which references the envelope stored in the API. In order to get the data stored in the API into our local object, we need to reflect any recent changes.
This makes a request to the API, reads all of the envelope data, parses it and creates local instances of any documents, recipients, templates etc in our local object.
Uploading the main pdf to a document
Uploading an attachment to a document
Publishing the envelope