SlideShare a Scribd company logo
1 of 6
Download to read offline
Agree’nSign API
                                                          Version 1.1 - 12/5/2010

Overview
The Agree’nSign API is REST-ish, where requests are made via HTTPS POST & GET against
API resources, standard HTTP status codes are returned, and “Plain Old XML” (POX) is the
message format.

SSL & Authentication
All API requests must be made via SSL and HTTPS. Access control for the API is handled via
an API key that is sent with each request. Your API key can be found under Manage Account.
Keep this API key secret as it allows you to authenticate and access your data without logging
into Agree’nSign with your email and password. You can generate a new API key at any time.

Resource List
Verb           Url                                                                                                   Input                   Output
POST           https://www.agreensign.com/api/v1/{key}/contracts                                                     XML                     XML
GET            https://www.agreensign.com/api/v1/{key}/contracts/{id}                                                Contract id             XML
GET            https://www.agreensign.com/api/v1/{key}/contracts/{id}.pdf                                            Contract id             PDF
GET            https://www.agreensign.com/api/v1/{key}/contracts                                                     n/a                     XML
GET            https://www.agreensign.com/api/v1/{key}/audits/{id}.pdf                                               n/a                     PDF


XML Schema
Use contracts.xsd found at https://www.agreensign.com/api/v1/contracts.xsd to validate contract
xml in testing. Once you’ve got valid xml, test an http POST to the contracts API resource.


Contents
Create & Send a New Contract ..................................................................................................................... 2
Get a List of Contracts .................................................................................................................................. 3
Get a Contract - XML ................................................................................................................................... 4
Get a Contract - PDF..................................................................................................................................... 5
Get a Contract Audit - PDF .......................................................................................................................... 6



Need help?              help@agreensign.com
Give us a ring… 877-445-4307
Create & Send a New Contract
    Perform an HTTP POST to https://www.agreensign.com/api/v1/{key}/contracts
    {key} is the account API key
    XML Schema can be found at https://www.agreensign.com/api/v1/contracts.xsd
Required POST XML payload
<contracts>
 <contract>
  <name>Sample Contract Document</name>
  <ownerUsername>bob@acme.com</ownerUsername>
  <filename>sample.pdf</filename>
  <base64Contents>Base64 encoded contents of file</base64Contents>
  <mimeType>application/pdf</mimeType>
  <parties> <!-- parties sign in order, cc’d parties have no placeholders -->
    <party>
      <name>Tori Marrama</name>
      <email>tori@agreensign.com</email>
    </party>
    <party>
      <name>Bob Johnson</name>
      <email>test-bob@agreensign.com</email>
      <title>CFO</title>
      <placeholders> <!-- Default h/w is 10, 25. Default page is 1-->
        <placeholder type="signature" x="0" y="0" h="10" w="10" page="1" />
        <placeholder type="field" x="0" y="0" h="10" w="10" page="1"/>
        <placeholder type="checkbox" x="0" y="0" page="2"/>
      </placeholders>
    </party>
  </parties>
 </contract>
</contracts>

If successful, a status code of 201 (Created) is returned with this XML

<contracts>
 <contract id="123" >
  <name>Sample Contract Document</name>
  <status code="S">Sending Signature request to bob@acme.com</status>
  <createDateTime>2002-05-30T09:30:10Z</createDateTime>
 </contract>
</contracts>

A 403 (Forbidden) status code is returned under the following circumstances:

      Invalid API Key or Not Authorized to use API
      Some account limit is reached, i.e. max documents reached for the month.

A 422 (Unprocessable Entity) is returned if the contract has a validation error.

A 500 (Internal Server Error) is returned if the API server encounters an error, contact
help@agreensign.com in this case.
Get a List of Contracts
    Perform an HTTP GET from https://www.agreensign.com/api/v1/{key}/contracts
    {key} is the account API key

If successful, a status code of 200 (OK) is returned with this XML

<contracts>
 <contract id="123" >
  <name>Sample Contract Document</name>
  <status code="E">Executed</status>
  <createDateTime>2002-05-30T09:30:10Z</createDateTime>
 </contract>
 <contract id="456" >
  <name>Sample Sales Agreement</name>
  <status code="P">Pending Signature from bob@acme.com</status>
  <createDateTime>2002-05-30T10:30:10Z</createDateTime>
 </contract>
</contracts>



A 403 (Forbidden) status code is returned under the following circumstances:

      Invalid API Key or Not Authorized to use API

A 500 (Internal Server Error) is returned if the API server encounters an error, contact
help@agreensign.com in this case.
Get a Contract - XML
    HTTP GET https://www.agreensign.com/api/v1/{key}/contracts/{id} or {id}.xml
    {key} is the account API key
    {id} is the contract id

If successful, a status code of 200 (OK) is returned with this XML

<contracts>
 <contract id="123">
  <name>Sample Contract Document</name>
  <status code="E">Executed</status>
  <createDateTime>2002-05-30T09:30:10Z</createDateTime>
  <executedDateTime>2002-06-30T09:30:10Z</executedDateTime>
  <ownerUsername>bob@acme.com</ownerUsername>
  <filename>sample.pdf</filename>
  <parties> <!-- parties sign in the order positioned -->
    <party>
      <status code="S">Signed</status>
      <name>Bob Johnson</name>
      <email>bob@agreensign.com</email>
      <title>CFO</title>
      <placeholders> <!-- Default h/w is 10, 25. Default page is 1-->
        <placeholder id="849" type="signature" x="0" y="0"
                                     page="1">Signed</placeholder>
        <placeholder id="123" type="field" x="0" y="0"
                                     page="1">111 Main St.</placeholder>
        <placeholder id="995" type="checkbox" x="0" y="0"
                                     page="2">Yes</placeholder>
      </placeholders>
    </party>
  </parties>
</contract>
</contracts>

A 404 (Not Found) status code is returned when the contract with the ID cannot be found.

A 403 (Forbidden) status code is returned under the following circumstances:

      Invalid API Key or Not Authorized to use API

A 500 (Internal Server Error) is returned if the API server encounters an error, contact
help@agreensign.com in this case.
Get a Contract - PDF
    HTTP GET https://www.agreensign.com/api/v1/{key}/contracts/{id}.pdf
    {key} is the account API key
    {id} is the contract id

If successful, a status code of 200 (OK) is returned with the PDF document

A 404 (Not Found) status code is returned when the contract with the ID cannot be found.

A 403 (Forbidden) status code is returned under the following circumstances:

      Invalid API Key or Not Authorized to use API

A 500 (Internal Server Error) is returned if the API server encounters an error, contact
help@agreensign.com in this case.
Get a Contract Audit - PDF
    HTTP GET https://www.agreensign.com/api/v1/{key}/audits/{id}.pdf
    {key} is the account API key
    {id} is the contract id

If successful, a status code of 200 (OK) is returned with the PDF document

A 404 (Not Found) status code is returned when the audit with the ID cannot be found.

A 403 (Forbidden) status code is returned under the following circumstances:

      Invalid API Key or Not Authorized to use API

A 500 (Internal Server Error) is returned if the API server encounters an error, contact
help@agreensign.com in this case.

More Related Content

Viewers also liked (9)

Sc2 u3 flashcards
Sc2 u3 flashcardsSc2 u3 flashcards
Sc2 u3 flashcards
 
Facebook Advertising: More than Likes
Facebook Advertising: More than LikesFacebook Advertising: More than Likes
Facebook Advertising: More than Likes
 
rookie with zero bugs
rookie with zero bugsrookie with zero bugs
rookie with zero bugs
 
OutSystems next step 2012 - when it's slow it sucks
OutSystems next step 2012 - when it's slow it sucksOutSystems next step 2012 - when it's slow it sucks
OutSystems next step 2012 - when it's slow it sucks
 
Social Media and Personal/Corporate Branding
Social Media and Personal/Corporate BrandingSocial Media and Personal/Corporate Branding
Social Media and Personal/Corporate Branding
 
Georeferencing
GeoreferencingGeoreferencing
Georeferencing
 
Water cycle
Water cycleWater cycle
Water cycle
 
Sc2 u12 flashcards
Sc2 u12 flashcardsSc2 u12 flashcards
Sc2 u12 flashcards
 
Chiffre viadéo
Chiffre viadéoChiffre viadéo
Chiffre viadéo
 

Recently uploaded

Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Sheetaleventcompany
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
amitlee9823
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
daisycvs
 

Recently uploaded (20)

Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLWhitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation Final
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 

Esignature API agreeNsign.com

  • 1. Agree’nSign API Version 1.1 - 12/5/2010 Overview The Agree’nSign API is REST-ish, where requests are made via HTTPS POST & GET against API resources, standard HTTP status codes are returned, and “Plain Old XML” (POX) is the message format. SSL & Authentication All API requests must be made via SSL and HTTPS. Access control for the API is handled via an API key that is sent with each request. Your API key can be found under Manage Account. Keep this API key secret as it allows you to authenticate and access your data without logging into Agree’nSign with your email and password. You can generate a new API key at any time. Resource List Verb Url Input Output POST https://www.agreensign.com/api/v1/{key}/contracts XML XML GET https://www.agreensign.com/api/v1/{key}/contracts/{id} Contract id XML GET https://www.agreensign.com/api/v1/{key}/contracts/{id}.pdf Contract id PDF GET https://www.agreensign.com/api/v1/{key}/contracts n/a XML GET https://www.agreensign.com/api/v1/{key}/audits/{id}.pdf n/a PDF XML Schema Use contracts.xsd found at https://www.agreensign.com/api/v1/contracts.xsd to validate contract xml in testing. Once you’ve got valid xml, test an http POST to the contracts API resource. Contents Create & Send a New Contract ..................................................................................................................... 2 Get a List of Contracts .................................................................................................................................. 3 Get a Contract - XML ................................................................................................................................... 4 Get a Contract - PDF..................................................................................................................................... 5 Get a Contract Audit - PDF .......................................................................................................................... 6 Need help? help@agreensign.com Give us a ring… 877-445-4307
  • 2. Create & Send a New Contract  Perform an HTTP POST to https://www.agreensign.com/api/v1/{key}/contracts  {key} is the account API key  XML Schema can be found at https://www.agreensign.com/api/v1/contracts.xsd Required POST XML payload <contracts> <contract> <name>Sample Contract Document</name> <ownerUsername>bob@acme.com</ownerUsername> <filename>sample.pdf</filename> <base64Contents>Base64 encoded contents of file</base64Contents> <mimeType>application/pdf</mimeType> <parties> <!-- parties sign in order, cc’d parties have no placeholders --> <party> <name>Tori Marrama</name> <email>tori@agreensign.com</email> </party> <party> <name>Bob Johnson</name> <email>test-bob@agreensign.com</email> <title>CFO</title> <placeholders> <!-- Default h/w is 10, 25. Default page is 1--> <placeholder type="signature" x="0" y="0" h="10" w="10" page="1" /> <placeholder type="field" x="0" y="0" h="10" w="10" page="1"/> <placeholder type="checkbox" x="0" y="0" page="2"/> </placeholders> </party> </parties> </contract> </contracts> If successful, a status code of 201 (Created) is returned with this XML <contracts> <contract id="123" > <name>Sample Contract Document</name> <status code="S">Sending Signature request to bob@acme.com</status> <createDateTime>2002-05-30T09:30:10Z</createDateTime> </contract> </contracts> A 403 (Forbidden) status code is returned under the following circumstances:  Invalid API Key or Not Authorized to use API  Some account limit is reached, i.e. max documents reached for the month. A 422 (Unprocessable Entity) is returned if the contract has a validation error. A 500 (Internal Server Error) is returned if the API server encounters an error, contact help@agreensign.com in this case.
  • 3. Get a List of Contracts  Perform an HTTP GET from https://www.agreensign.com/api/v1/{key}/contracts  {key} is the account API key If successful, a status code of 200 (OK) is returned with this XML <contracts> <contract id="123" > <name>Sample Contract Document</name> <status code="E">Executed</status> <createDateTime>2002-05-30T09:30:10Z</createDateTime> </contract> <contract id="456" > <name>Sample Sales Agreement</name> <status code="P">Pending Signature from bob@acme.com</status> <createDateTime>2002-05-30T10:30:10Z</createDateTime> </contract> </contracts> A 403 (Forbidden) status code is returned under the following circumstances:  Invalid API Key or Not Authorized to use API A 500 (Internal Server Error) is returned if the API server encounters an error, contact help@agreensign.com in this case.
  • 4. Get a Contract - XML  HTTP GET https://www.agreensign.com/api/v1/{key}/contracts/{id} or {id}.xml  {key} is the account API key  {id} is the contract id If successful, a status code of 200 (OK) is returned with this XML <contracts> <contract id="123"> <name>Sample Contract Document</name> <status code="E">Executed</status> <createDateTime>2002-05-30T09:30:10Z</createDateTime> <executedDateTime>2002-06-30T09:30:10Z</executedDateTime> <ownerUsername>bob@acme.com</ownerUsername> <filename>sample.pdf</filename> <parties> <!-- parties sign in the order positioned --> <party> <status code="S">Signed</status> <name>Bob Johnson</name> <email>bob@agreensign.com</email> <title>CFO</title> <placeholders> <!-- Default h/w is 10, 25. Default page is 1--> <placeholder id="849" type="signature" x="0" y="0" page="1">Signed</placeholder> <placeholder id="123" type="field" x="0" y="0" page="1">111 Main St.</placeholder> <placeholder id="995" type="checkbox" x="0" y="0" page="2">Yes</placeholder> </placeholders> </party> </parties> </contract> </contracts> A 404 (Not Found) status code is returned when the contract with the ID cannot be found. A 403 (Forbidden) status code is returned under the following circumstances:  Invalid API Key or Not Authorized to use API A 500 (Internal Server Error) is returned if the API server encounters an error, contact help@agreensign.com in this case.
  • 5. Get a Contract - PDF  HTTP GET https://www.agreensign.com/api/v1/{key}/contracts/{id}.pdf  {key} is the account API key  {id} is the contract id If successful, a status code of 200 (OK) is returned with the PDF document A 404 (Not Found) status code is returned when the contract with the ID cannot be found. A 403 (Forbidden) status code is returned under the following circumstances:  Invalid API Key or Not Authorized to use API A 500 (Internal Server Error) is returned if the API server encounters an error, contact help@agreensign.com in this case.
  • 6. Get a Contract Audit - PDF  HTTP GET https://www.agreensign.com/api/v1/{key}/audits/{id}.pdf  {key} is the account API key  {id} is the contract id If successful, a status code of 200 (OK) is returned with the PDF document A 404 (Not Found) status code is returned when the audit with the ID cannot be found. A 403 (Forbidden) status code is returned under the following circumstances:  Invalid API Key or Not Authorized to use API A 500 (Internal Server Error) is returned if the API server encounters an error, contact help@agreensign.com in this case.