Evia Sign
  • Welcome to Evia Sign
    • What can Evia Sign do?
  • How to send signature request?
    • How to enable multiple signatories to access and sign documents at the same time?
    • How to add approvers and CC recipients to a signature request?
    • How do you add authentication to your request?
    • How do you send a private message?
  • How to sign documents?
    • Opening a document through Evia Sign inbox
    • Explore the different ways to add your signature
  • How to draft documents?
    • Components of DRAFTS in Evia Sign
  • Explore Evia Sign Inbox
  • How to create and use templates
    • Components of TEMPLATES
  • How to save your signature and initial?
  • How to add date stamp to your signature?
  • How to set up automatic reminders & expiration for signature requests
  • Users
    • How to import O365 users?
    • How to add new users?
    • How to delete users?
    • How to activate and deactivate users?
  • How do I change the current subscription plan of my account?
    • How to cancel and renew plan?
    • How do I purchase additional user licenses?
  • How to work with Enadoc Integration?
  • Terms to be familiar
  • FAQs
    • How to login into Evia Sign?
    • How do I make an account recovery?
    • How do you configure stamps?
    • How do you manually send reminders to signatories?
    • How do you view document history?
    • How do you decline a document?
    • How do you download a document?
    • What is a digitally certified document?
    • How are additional user licenses purchased?
    • How do you send reminders to signatories?
    • How to modify your session duration?
    • How do I monitor the request usage of my Evia Sign account?
  • Release Notes
  • Evia Sign API
    • V1
      • Overview
      • Authorization of the API Access
      • Requests
        • Document Upload
        • Send Requests
      • Request Types
        • Template
        • Fixed Positioning
        • Auto Stamping
    • V2
      • Welcome to Evia Sign API Version2
      • How to Migrate from API v1 to v2
        • Basic Guide with minimal changes
        • Access Token Request (v1 ➞ v2)
      • Authorization & Authentication
        • How to Register Your Application
        • Requesting the Authorization Code
        • Exchange Authorization Code for Access Token
      • Upload Document for Signing
      • Creating a Signature Request
      • Add Signatory to a Signature Request
      • Add Stamps to a Signatory
      • Send Signature Request
      • Webhook Management
      • Glossary & Common Fields
  • Welcome to the New and Improved Evia Sign
  • How to Use the PDF Commenting Feature in Evia Sign
  • How to Upload Documents from SharePoint in Evia Sign
Powered by GitBook
On this page
  • ✨ Why Migrate?
  • ↺ What Changed?
  • 📁 Migration Steps
  • 🔄 Response Comparison
  • 🔀 What Remains the Same

Was this helpful?

  1. Evia Sign API
  2. V2
  3. How to Migrate from API v1 to v2

Access Token Request (v1 ➞ v2)

✨ Why Migrate?

  • Improved Security: V2 uses Basic Authentication with base64 encoding.

  • Standards Compliance: V2 uses application/x-www-form-urlencoded, aligning with OAuth 2.0.

  • Detailed Response: Includes token_type, expires_in, and other standard fields.


↺ What Changed?

Feature
API v1
API v2

Endpoint

/api/v1/Token

/api/v2/token

HTTP Method

POST

POST

Authorization Header

Bearer <access_token>

Basic base64(client_id:client_secret)

Content-Type

application/json

application/x-www-form-urlencoded

Body Format

JSON

Form-Encoded

Response Format

{ authToken, refreshToken }

{ access_token, refresh_token, token_type, expires_in }


📁 Migration Steps

✅ Before (API v1)

POST https://evia.enadocapp.com/_apis/falcon/auth/api/v1/Token
Authorization: Bearer <access_token>
Content-Type: application/json

{
  "client_id": "<client_id>",
  "client_secret": "<client_secret>",
  "code": "<authorization_code>",
  "grant_type": "authorization_code"
}

✅ After (API v2)

POST https://evia.enadocapp.com/_apis/falcon/auth/api/v2/token
Authorization: Basic <base64(client_id:client_secret)>
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code&
client_id=your-client-id&
client_secret=your-client-secret&
code=received-auth-code

🔄 Response Comparison

❌ v1 Response

{
  "authToken": "Auth Token",
  "refreshToken": "Refresh Token"
}

✅ v2 Response

{
  "access_token": "abc123...",
  "refresh_token": "abc1asas23...",
  "token_type": "bearer",
  "expires_in": 3600
}

🔀 What Remains the Same

  • You still use authorization_code as the grant_type.

  • You still provide client_id, client_secret, and code.


PreviousBasic Guide with minimal changesNextAuthorization & Authentication

Last updated 6 days ago

Was this helpful?