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

RATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODF
RATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODFRATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODF
RATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODF
CaitlinCummins3
 
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerJual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Pusat Herbal Resmi BPOM
 
What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...
srcw2322l101
 
(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...
(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...
(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...
Spesiialis Kandungan BPOM
 

Recently uploaded (20)

NFS- Operations Presentation - Recurrent
NFS- Operations Presentation - RecurrentNFS- Operations Presentation - Recurrent
NFS- Operations Presentation - Recurrent
 
PitchBook’s Guide to VC Funding for Startups
PitchBook’s Guide to VC Funding for StartupsPitchBook’s Guide to VC Funding for Startups
PitchBook’s Guide to VC Funding for Startups
 
wagamamaLab presentation @MIT 20240509 IRODORI
wagamamaLab presentation @MIT 20240509 IRODORIwagamamaLab presentation @MIT 20240509 IRODORI
wagamamaLab presentation @MIT 20240509 IRODORI
 
1Q24_EN hyundai capital 1q performance
1Q24_EN   hyundai capital 1q performance1Q24_EN   hyundai capital 1q performance
1Q24_EN hyundai capital 1q performance
 
Your Work Matters to God RestorationChurch.pptx
Your Work Matters to God RestorationChurch.pptxYour Work Matters to God RestorationChurch.pptx
Your Work Matters to God RestorationChurch.pptx
 
hyundai capital 2023 consolidated financial statements
hyundai capital 2023 consolidated financial statementshyundai capital 2023 consolidated financial statements
hyundai capital 2023 consolidated financial statements
 
stock price prediction using machine learning
stock price prediction using machine learningstock price prediction using machine learning
stock price prediction using machine learning
 
The Truth About Dinesh Bafna's Situation.pdf
The Truth About Dinesh Bafna's Situation.pdfThe Truth About Dinesh Bafna's Situation.pdf
The Truth About Dinesh Bafna's Situation.pdf
 
RATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODF
RATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODFRATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODF
RATINGS OF EACH VIDEO FOR UNI PROJECT IWDSFODF
 
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdfProgress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
 
How Do Venture Capitalists Make Decisions?
How Do Venture Capitalists Make Decisions?How Do Venture Capitalists Make Decisions?
How Do Venture Capitalists Make Decisions?
 
Hyundai capital 2024 1q Earnings release
Hyundai capital 2024 1q Earnings releaseHyundai capital 2024 1q Earnings release
Hyundai capital 2024 1q Earnings release
 
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerJual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
 
Creative Ideas for Interactive Team Presentations
Creative Ideas for Interactive Team PresentationsCreative Ideas for Interactive Team Presentations
Creative Ideas for Interactive Team Presentations
 
What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...
 
Series A Fundraising Guide (Investing Individuals Improving Our World) by Accion
Series A Fundraising Guide (Investing Individuals Improving Our World) by AccionSeries A Fundraising Guide (Investing Individuals Improving Our World) by Accion
Series A Fundraising Guide (Investing Individuals Improving Our World) by Accion
 
Inside the Black Box of Venture Capital (VC)
Inside the Black Box of Venture Capital (VC)Inside the Black Box of Venture Capital (VC)
Inside the Black Box of Venture Capital (VC)
 
(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...
(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...
(( wa 0851/7541/5434 )) Jual Obat Aborsi Di Surabaya - Cytotec Misoprostol 20...
 
WAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdfWAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdf
 
بروفايل شركة ميار الخليج للاستشارات الهندسية.pdf
بروفايل شركة ميار الخليج للاستشارات الهندسية.pdfبروفايل شركة ميار الخليج للاستشارات الهندسية.pdf
بروفايل شركة ميار الخليج للاستشارات الهندسية.pdf
 

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.