What is a REST API, anyway?
API is short for 'Application Programming Interface' . An API is a set of rules that lets programs talk to each other, exposing data and functionality across the Internet in a consistent format.
REST stands for 'Representational State Transfer'. This is an architectural pattern that describes how distributed systems can expose a consistent interface. When people use the term 'REST API', they are generally referring to an API accessed using the HTTP protocol at a predefined set of URLs.
These URLs represent various resources — any information or content accessed at that location, which can be returned as JSON, HTML, audio files, or images. Often resources have one or more methods that can be performed on them over HTTP, like GET, POST, PUT, and DELETE. The action represented by the first and last of these is clear, but POST and PUT have specific meanings. How they are defined is confusing, but the general rule is: use POST to create resources, and PUT to update resources.
Working with Virifi's APIs
What you'll need
All the APIs uses Authorization header key. You can generate an API Key under Settings > Developer Central > Create API Key.
This API key is linked to the account you used to generate it. This means that all credit transactions completed via API will be reflected in the credit history under the credits section.
Note: Document signing is an asynchronous process. To receive real-time signing status updates, configure a webhook.
Learn more in the Webhooks for Signing guide.
Let's get started
Base URL - https://virifi.io/api/developer
1. Ping
Method | GET |
Endpoint | /ping |
Description | This API is used to see if your integration is working properly. |
Request headers | "Authorization": "Bearer API-KEY" |
Request Body | No params |
Successful Response | 200 OK No Content |
Possible Error Responses |
|
2. Add Member
Method | POST |
Endpoint | /add-member |
Description | This API is used to add a member. Member will be registered as Third Party User with limited access to the platform. Member need to follow the invite link sent over the mail and proceed with next step to complete KYB verification and generate API keys. |
Request headers | "ContentType": "application/json" "Authorization": "Bearer API-KEY" |
Request Body | "firstName": string, "lastName": string, "email": string |
Successful Responses | 200 OK Invitation email sent on the requested email. |
Possible Error Responses |
|
3. Certify Document
Method |
|
Endpoint | /certify-document |
Description | This API is used to certify document/s. At any given time, the maximum number of documents allowed is five. |
Request headers | "ContentType": "multipart/form-data" |
Request Body | "folderName": string, "digitalTwin": Boolean, "totalDoc": string, |
Successful Response | 200 OK, Certified PDF document to type Array Buffer. |
Possible Error Responses |
|
4. Sign Document
Method |
|
Endpoint | /sign-document |
Description | This API is used to sign documents. The account owner's email address should be listed as the first entry in |
Request headers | "ContentType": "multipart/form-data" "Authorization": "Bearer API-KEY" |
Request Body |
Advance Electronic Signature (AES) "fileName": string, "digitalTwin": Boolean, "doc": Blob,
Professional Electronic Signature (PES) "fileName": string, "digitalTwin": Boolean, "doc": Blob, |
Successful Responses | 200 OK
|
Possible Error Responses |
|
5. Verify Document
Method | POST |
Endpoint | /verify-document |
Description | This API is used to verify the a certified or signed document. |
Request headers | "ContentType": "application/json" "Authorization": "API-KEY" |
Request Body | Blob (PDF) |
Successful Response | Certified Document
|
Possible Error Responses |
|
6. Revoke Certified Document
Method | POST |
Endpoint | /revoke-document |
Description | This API is used to revoke a certified document. |
Request headers | "ContentType": "application/json" "Authorization": "API-KEY" |
Request Body | { docId: string } |
Successful Response | 200 OK,
|
Possible Error Responses |
|
Download Postman Collection
