Make first API call in few minutes

Introduction

Easy to integrate Grabsign API into your system in few calls.


Authentication

$access_token = $auth_obj->verify_credentials(); 
$access_token = $auth_obj->verify_credentials();
Endpoint: https://api.grabsign.com/authentication

{
	"api_key":"api key",
	"email":"your email","password":"your password"
}
Format: JSON
Header=> Key:Content-Type  Value: application/json
                                        

Create First Document

$signers_list = new Signers_list(); 
$signer = new Signer("role", "Signer name" , "Signer email");
$signers_list->add_signer($signer);
$signer = new Signer("role", "Signer 2 name" , "Signer 2 email");
$signers_list->add_signer($signer);
$template_obj = new Template();
$template_obj->template_id = "template id here";
$template_obj->signers_list = $signers_list;
$response = $template_obj->create_document();
Endpoint: https://api.grabsign.com/createDocument

{
   "api_key":" API Key",
   "access_token":"Access Token",
   "signers":[
      {
         "role":"Admin",
         "name":" Signer Name",
         "email":"Signer Email"
      },
      {
         "role":"Customer",
         "name":" Signer Name",
         "email":"Signer Email"
      }
   ],
   "template_id":"Template Id"
}
Format: JSON
Header=> Key:Content-Type  Value: application/json
                                        

Get Templates

$templates_obj = new Template(); 
$result = $templates_obj->get_templates_list();
Endpoint: https://api.grabsign.com/getTemplatesList

{
   "api_key":" API Key",
   "access_token":"Access Token",
}
Format: JSON
Header=> Key:Content-Type  Value: application/json
                                        

Get Template Detail

$templates_obj = new Template(); 
$result = $templates_obj->get_template_detail("template id");
Endpoint: https://api.grabsign.com/getTemplateDetail

{
   "api_key":" API Key",
   "access_token":"Access Token",
   "template_id":"Template Id"
}
Format: JSON
Header=> Key:Content-Type  Value: application/json
                                        

Get Document Status

$document_obj = new Document(); 
$document_obj->document_id = "document id";
$document_obj->get_document_status();
Endpoint: https://api.grabsign.com/getDocumentStatus

{
   "api_key":"API Key",
   "access_token":"Access Token",
   "document_id":"Document Id"
}
Format: JSON
Header=> Key:Content-Type  Value: application/json
                                        

Download Document

$document_obj = new Document(); 
$document_obj->document_id = "document id";
$document_obj->download_document();
Endpoint: https://api.grabsign.com/downloadDocument

{
   "api_key":"API Key",
   "access_token":"Access Token",
   "document_id":"Document Id"
}
Format: JSON
Header=> Key:Content-Type  Value: application/json