Base URL
All URLs referenced in the documentation have the following base: https://api-eval.signnow.com
For full documentation and an evaluation Application ID and access, please contact api@signnow.com.
Security and Access Control
The SignNow REST API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.
With the exception of creating a user or requesting an access token, all requests must include the access token in the Authorization Header. The user creation and access token requests must include the client credentials in the Authorization Header as a base64 encoded string of CLIENT_ID:CLIENT_SECRET.
Please contact your account manager for CLIENT_ID:CLIENT_SECRET strings.
Responses
Response Format
All responses will return a JSON response.
Error Responses
Authentication errors have the form:
{ "error":ERROR_DESCRIPTION }
Error description can be any one of:
- invalid_client
- invalid_request
- invalid_token
- access_denied
API errors have the form:
{ "errors": [{ "code": INTEGER, "message": ERROR_DESCRIPTION }] }
/user
POST /user
Description | Create a user. Recently changed to not generate a token. See POST /oauth2/token for instructions on generating a token for the new user. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example request | curl -H 'Authorization: Basic ENCODED_CLIENT_CREDENTIALS' --data '{"first_name":"Test", "last_name":"User","email":"user@test.com", "password":"test"}' https://api-eval.signnow.com/user | ||||||||||||
Authorization | Basic | ||||||||||||
Accept | application/json | ||||||||||||
Content-Type | application/json | ||||||||||||
HTTP Method | POST | ||||||||||||
Payload parameters |
Example: { "first_name":"Test", "last_name":"User", "email":"testUserEmail@test.com", "password":"password.com" } | ||||||||||||
Example response | { "id": "23f2f9dc10e0f12883f78e91296207640dede6d1", "verified":0, "email":"jdoe@baracuda.com" } |
GET /user
Description | Retrieve a user resource |
---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/user |
Authorization | Bearer |
Accept | application/json |
HTTP Method | GET |
Example response | { "id": "23f2f9dc10e0f12883f78e91296207640dede6d1", "first_name": "Test", "last_name": "User", "active": "1", "type": 1, "pro": 0, "created": "1358945328", "emails": ["user@test.com"], "identity": { "Identified": "No", "Status": "First attempt", "OKToRetry": true }, "subscriptions": [], "credits": 0, "has_atticus_access": false, "is_logged_in": true, "teams": [] } |
GET /user/documentsv2
Description | Retrieve a list of the user's documents |
---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/user/documentsv2 |
Authorization | Bearer |
Accept | application/json |
HTTP Method | GET |
Example response | [{ "id": "9e30bb3094e00abc291016a7a597ba1840a6d6ec", "user_id": "adb16da39e5ecc448e2aa4aec8a34a8158fa137a", "document_name": "sample.pdf", "page_count": "1", "created": "1358300444", "updated": "1358300444", "original_filename": "sample.pdf", "thumbnail": { "small": "https:\/\/api.signnow.com\/document\/9e30bb3094e00abc291016a7a597ba1840a6d6ec\/thumbnail?size=small", "medium": "https:\/\/api.signnow.com\/document\/9e30bb3094e00abc291016a7a597ba1840a6d6ec\/thumbnail?size=medium", "large": "https:\/\/api.signnow.com\/document\/9e30bb3094e00abc291016a7a597ba1840a6d6ec\/thumbnail?size=large" }, "signatures": [], "seals": [], "texts": [], "inserts": [], "tags": [], "fields": [], "requests": [], "notary_invites": [], "version_time": "1358300444" }, { "id": "321e1c74ada708f442bf3f9529ed0d44b3628796", "user_id": "adb16da39e5ecc448e2aa4aec8a34a8158fa137a", "document_name": "sample.pdf", "page_count": "1", "created": "1341248871", "updated": "1341248871", "original_filename": "sample.pdf", "thumbnail": { "small": "https:\/\/api.signnow.com\/document\/321e1c74ada708f442bf3f9529ed0d44b3628796\/thumbnail?size=small", "medium": "https:\/\/api.signnow.com\/document\/321e1c74ada708f442bf3f9529ed0d44b3628796\/thumbnail?size=medium", "large": "https:\/\/api.signnow.com\/document\/321e1c74ada708f442bf3f9529ed0d44b3628796\/thumbnail?size=large" }, "signatures": [], "seals": [], "texts": [], "inserts": [], "tags": [], "fields": [], "requests": [{ "unique_id": "1cb9d8e6b26d6ececc4f4c9d08aaaa28e10fa80f", "id": "1cb9d8e6b26d6ececc4f4c9d08aaaa28e10fa80f", "user_id": "adb16da39e5ecc448e2aa4aec8a34a8158fa137a", "created": "1349903957", "originator_email": "user@test.com", "signer_email": "signer@test.com" }], "notary_invites": [], "version_time": "1341248871" }, { "id": "1db4c6ba33332f655cb2eda468743c1d040ae079", "user_id": "adb16da39e5ecc448e2aa4aec8a34a8158fa137a", "document_name": "sample.pdf", "page_count": "1", "created": "1335819071", "updated": "1335819071", "original_filename": "sample.pdf", "thumbnail": { "small": "https:\/\/api.signnow.com\/document\/1db4c6ba33332f655cb2eda468743c1d040ae079\/thumbnail?size=small", "medium": "https:\/\/api.signnow.com\/document\/1db4c6ba33332f655cb2eda468743c1d040ae079\/thumbnail?size=medium", "large": "https:\/\/api.signnow.com\/document\/1db4c6ba33332f655cb2eda468743c1d040ae079\/thumbnail?size=large" }, "signatures": [], "seals": [], "texts": [], "inserts": [], "tags": [], "fields": [], "requests": [{ "unique_id": "5d8ce45d8e27c7ed717d7d23117200c72442ee3e", "id": "5d8ce45d8e27c7ed717d7d23117200c72442ee3e", "user_id": "adb16da39e5ecc448e2aa4aec8a34a8158fa137a", "created": "1335819085", "originator_email": "jane@test.com", "signer_email": "signer@test.com" }], "notary_invites": [], "version_time": "1335819071" }] |
/user/documentgroups
GET /user/documentgroups
Description | The call returns back all document groups the user owns. If the group does not have an attached group invite, the invite fields will be null. Each group includes an array of documents and their thumbnails within the group. Thumbnail calls will need the query parameter &access_token=ACCESS_TOKEN to be used. The call is paginated by last_updated, so offset and limit query parameters are required:
|
---|---|
Example request | curl -X GET -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/user/documentgroups?limit=2&offset=0 |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | GET |
Example Response | { "document_groups": [{ "group_id": "7f7e59c1cc7aa515ba93f49699bb11be7f1ed8a5", "group_name": "Document Group 2", "last_updated": "1449601185", "invite_id": "7dffb33ee08f2ff693e70d513f1d208f50379dfc", "invite_status": "pending", "documents": [{ "id": "524c11994326e3059693de14083bcbdf9f084357", "name": "Document 1", "thumbnail": { "small": "https:\/\/eval.signnow.com/\api\/document\/524c11994326e3059693de14083bcbdf9f084357\/thumbnail?size=small", "medium": "https:\/\/eval.signnow.com/\api\/document\/524c11994326e3059693de14083bcbdf9f084357\/thumbnail?size=medium", "large": "https:\/\/eval.signnow.com/\api\/document\/524c11994326e3059693de14083bcbdf9f084357\/thumbnail?size=large" }, "roles": ["buyer"] }, { "id": "5cfd39eb576ab6d2a729b3fa77fca383e0004c3c", "name": "Document 2", "thumbnail": { "small": "https:\/\/eval.signnow.com/\api\/document\/5cfd39eb576ab6d2a729b3fa77fca383e0004c3c\/thumbnail?size=small", "medium": "https:\/\/eval.signnow.com/\api\/document\/5cfd39eb576ab6d2a729b3fa77fca383e0004c3c\/thumbnail?size=medium", "large": "https:\/\/eval.signnow.com/\api\/document\/5cfd39eb576ab6d2a729b3fa77fca383e0004c3c\/thumbnail?size=large }, "roles": ["seller"] }] }, { "group_id": "12f22d89913f75d032303327c79dd47d427b7d6b", "group_name": "Document Group 1", "last_updated": "1441318497", "invite_id": null, "invite_status": null, "documents": [{ "id": "cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b", "name": "Document 3", "thumbnail": { "small": "https:\/\/eval.signnow.com/\api\/document\/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b\/thumbnail?size=small", "medium": "https:\/\/eval.signnow.com/\api\/document\/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b\/thumbnail?size=medium", "large": "https:\/\/eval.signnow.com/\api\/document\/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b\/thumbnail?size=large" }, "roles": ["role1", "role2", "role3"] }, { "id": "dd63da6fbe213863626a61d36b0c13ce61e4a2be", "name": "Document 4", "thumbnail": { "small": "https:\/\/eval.signnow.com/\api\/document\/dd63da6fbe213863626a61d36b0c13ce61e4a2be\/thumbnail?size=small", "medium": "https:\/\/eval.signnow.com/\api\/document\/dd63da6fbe213863626a61d36b0c13ce61e4a2be\/thumbnail?size=medium", "large": "https:\/\/eval.signnow.com/\api\/document\/dd63da6fbe213863626a61d36b0c13ce61e4a2be\/thumbnail?size=large" }, "roles": ["roleA", "roleB", "roleC"] }] }], "document_group_total_count": 2 } |
POST /documentgroup
Description | Create a document group from a list of document ids. | ||||||
---|---|---|---|---|---|---|---|
Example request | curl -X POST -H 'Authorization: Bearer ACCESS_TOKEN' --data '{"document_ids": [ "cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b","dd63da6fbe213863626a61d36b0c13ce61e4a2be"], "group_name":"Document Group 1"}' https://api-eval.signnow.com/documentgroup | ||||||
Authorization | Bearer | ||||||
Accept | application/json | ||||||
Content-Type | application/json | ||||||
HTTP Method | POST | ||||||
Post parameters |
| ||||||
Example response | {"id":"68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0"} |
/documentgroup/
GET /documentgroup/
Description | Returns back document and role information for documents in a document group. Only the owner of the document group can make this call. The invite_id property will be null if there is no group invite for the group yet. |
---|---|
Example request | curl -X GET -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/documentgroup/68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0 |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | GET |
Example Response | { "id": "12f22d89913f75d032303327c79dd47d427b7d6b", "group_name": "Document Group 1", "invite_id": "7dffb33ee08f2ff693e70d513f1d208f50379dfc", "documents": [{ "roles": ["Role1", "Role2", "Role3"], "document_name": "Document 1", "id": "cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b", "thumbnail": { "small": "https:\/\/eval.signnow.com/\api/document\/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b\/thumbnail?size=small", "medium": "https:\/\/eval.signnow.com/\api/document\/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b\/thumbnail?size=medium", "large": "https:\/\/eval.signnow.com/\api/document\/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b\/thumbnail?size=large" } }, { "roles": ["Role4", "Role5", "Role6"], "document_name": "Document 2", "id": "dd63da6fbe213863626a61d36b0c13ce61e4a2be", "thumbnail": { "small": "https:\/\/eval.signnow.com/\api/document\/dd63da6fbe213863626a61d36b0c13ce61e4a2be\/thumbnail?size=small", "medium": "https:\/\/eval.signnow.com/\api/document\/dd63da6fbe213863626a61d36b0c13ce61e4a2be\/thumbnail?size=medium", "large": "https:\/\/eval.signnow.com/\api/document\/dd63da6fbe213863626a61d36b0c13ce61e4a2be\/thumbnail?size=large" } }] } |
DELETE /documentgroup/
Description | Deletes the document group. Documents within the group are not deleted. Document groups cannot be deleted while they have an group invite. |
---|---|
Example request | curl -X DELETE -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/documentgroup/68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0 |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | DELETE |
Example Response | {"status":"success"} |
/documentgroup//groupinvite
POST /documentgroup//groupinvite
Description | This call creates a multi-step invite for a document group. Each invite step consists of invite_email objects that set the email message sent in the user invites or can disable emails all together for that user. Invite steps also are made of the invite_action objects that need to be completed before the step is considered complete. Invite actions tell SignNow which users should sign which document roles. Once all the invite_actions are completed, the next step's invite emails are sent out. When all steps have been completed, completion emails are sent out, which are defined by the completion_email objects. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' -X POST --data '{"invite_steps":[{"order":1,"invite_emails":[{"email":"janedoe@barracuda.com","disabled":0,"subject":"The subject step1","message":"The message for step1"},{"email":"test@mailinator.com","subject":"subject step 1","message":"message step 1"},{"email":" bob@SignNow.com ","subject":"@signnow subject step 1","message":"@signnow message step 1"}],"invite_actions":[{"email":" janedoe@barracuda.com ","role_name":"role6","action":"sign","document_id":"dd63da6fbe213863626a61d36b0c13ce61e4a2be","allow_reassign":0,"authentication":{"type":"password","value":"abc123"}},{"email":" test@mailinator.com ","role_name":"role2","action":"sign","document_id":"cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b","allow_reassign":0}]},{"order":2,"invite_emails":[{"email":" janedoe@barracuda.com ","disabled":0,"subject":"The subject for step2","message":"The message for step2"},{"email":" test@mailinator.com ","subject":"subject step 2","message":" message step 2"}],"invite_actions":[{"email":" janedoe@barracuda.com ","role_name":"role4","action":"view","document_id":"dd63da6fbe213863626a61d36b0c13ce61e4a2be","allow_reassign":0},{"email":" test@mailinator.com ","role_name":"role5","action":"view","document_id":"dd63da6fbe213863626a61d36b0c13ce61e4a2be","allow_reassign":0}]},{"order":3,"invite_emails":[{"email":" janedoe@barracuda.com ","disabled":0,"subject":"The subject for step3","message":"The message for step3"},{"email":" test@mailinator.com ","subject":"subject step 3","message":"message step 3"}],"invite_actions":[{"email":" janedoe@barracuda.com ","role_name":"role1","action":"sign","document_id":"cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b","allow_reassign":0},{"email":" test@mailinator.com ","role_name":"role3","action":"sign","document_id":"cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b","allow_reassign":0}]}],"completion_emails":[{"email":" janedoe@barracuda.com ","disabled":0,"subject":"The subject COMPLETE ","message":"The COMPLETE message"},{"email":" test@mailinator.com ","subject":"COMPLETE subject ","message":"COMPLETE message"},{"email":"bob@SignNow.com","subject":"COMPLETED subject ","message":" message COMPLETED", "disabled":0}]}' https://api-eval.signnow.com/documentgroup/68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0/groupinvite | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authorization | Bearer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Accept | application/json | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Content-Type | application/json | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Post parameters | Invite objects:
Invite step objects:
Invite email objects:
Invite action objects:
Completion email objects:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Json Body Example | { "invite_steps":[ { "order":1, "invite_emails":[ { "email":"<email1>", "disabled":"<optional_1or0>", "subject":"<optional_subject_here>", "message":"<optional_email_messages_here>" }, { "email":"<email2id>", "disabled":<optional_1or0>, "subject":"<optional_subject_here>", "message":"<optional_email_messages_here>" }, "... more email invites per user" ], "invite_actions":[ { "email":"<email1>", "role_name":"<rolename1>", "action":"<signORview>", "document_id":"<docid1>", "allow_reassign": <optional_1or0> }, { "email":"<email2>", "role_name":"<rolename2>", "action":"<signORview>", "document_id":"<docid2>", "allow_reassign":<optional_integer> }, "... more invite action objects" ] }, { "order":2, "invite_emails":"...Another invite emails array here", "invite_actions":"...Another invite actions array here" }, "... More invite_steps here" ], "completion_emails":[ { "email":"<email1>", "disabled":<optional_1or0>, "subject":"<subject_here>", "message":"<email_messages_here>" }, "... More completion email object (one for each user mentioned in invite_actions)" ] } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Validation Rules |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response | {"id":"8755746dea8df75c6856d1fb8c346afe71f2329e"} |
GET /documentgroup//groupinvite/
Description | Returns back invite action information for a group invite, including the status of each step and action. This can only can be called by the owner of the document group. Status can be:
|
---|---|
Example request | curl -X GET -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/api/documentgroup/68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0/groupinvite /8755746dea8df75c6856d1fb8c346afe71f2329e |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | GET |
Example Response | { "invite": { "id": "b1c07f1391f042333cf0ca96af5ac9f5b44ca54b", "status": "pending", "steps": [ { "id": "abc07f1391f042333cf0ca96af5ac9f5b44ca54b", "status": "pending", "order": 1, "actions": [ { "action": "sign", "email": "janedoe@barracuda.com", "document_id": "dd63da6fbe213863626a61d36b0c13ce61e4a2be", "status": "pending", "role_name": "role6" }, { "action": "sign", "email": "test@test.com", "document_id": "cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b", "status": "pending", "role_name": "role2" } ] }, { "id": "def07f1391f042333cf0ca96af5ac9f5b44ca54b", "status": "created", "order": 2, "actions": [ { "action": "sign", "email": "janedoe@barracuda.com", "document_id": "dd63da6fbe213863626a61d36b0c13ce61e4a2be", "status": "created", "role_name": "role4" }, { "action": "sign", "email": "test@test.com", "document_id": "dd63da6fbe213863626a61d36b0c13ce61e4a2be", "status": "created", "role_name": "role5" } ] }, { "id": "c1207f1391f042333cf0ca96af5ac9f5b44ca54b", "status": "created", "order": 3, "actions": [ { "action": "sign", "email": "janedoe@barracuda.com", "document_id": "cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b", "status": "created", "role_name": "role1" }, { "action": "sign", "email": "test@test.com", "document_id": "cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b", "status": "created", "role_name": "role3" } ] } ] } } |
POST /documentgroup//groupinvite//cancelinvite
Description | Cancels a group invite. All documents will be unshared with invitees. Any signatures that occurred before canceling will remain on the documents. |
---|---|
Example request | curl -X POST -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/documentgroup/6e1e4988429913e086f71b20c810c02bafc930cb/groupinvite/03ee5b2c4da8366d1e321f61f857b14d937dfd01/cancelinvite |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | POST |
Post Body Parameters | There are no parameters. |
Example Response | {"status":"success"} |
GET /documentgroup//groupinvite//pendinginvites
Description | Returns back all pending invite information as well as invites already signed for a group invite for the user that makes the call. If the user making the call is the document owner, it will return pending invites for that user and ALL actions that have already been fulfilled. |
---|---|
Example request | curl -X GET -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/api/documentgroup/68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0/pendinginvites |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | GET |
Example Response | { "invites":[ { "link": "https://eval.signnow.com/app/session/cddc2f79a3873af02ebc1d1ab0d45b2a1a3a2e7b?access_token=5ee3f8924ec5f413cf3d7ca5b949946e6e7f3410fcbcaa1a4be631487caac463&mobileweb=mobileweb_only", "document_name": "Receipt 1", "inviter_email": "janedoe@SignNow.com", "action": "sign", "status": "fulfilled" }, { "link": "https://eval.signnow.com/app/session/dd63da6fbe213863626a61d36b0c13ce61e4a2be?access_token=9f8282785b859cd35358680d6c1b9c05524a8717e812c279e4e2105a77d93bc0&mobileweb=mobileweb_only", "document_name": "Contract 2", "inviter_email": "janedoe@SignNow.com", "action": "sign", "status": "pending" }] "document_group_name": "Contracts" } |
POST /documentgroup//groupinvite//resendinvites
Description | Resends invite emails to those with pending invites for the group invite. Resend can also be used to resend invites to a single user if the user's email is specified in the POST Json body. | |||
---|---|---|---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' -X POST https://api-eval.signnow.com/api/documentgroup/12f22d89913f75d032303327c79dd47d427b7d6b/groupinvite/04ef78c38097d2f9b3c99ec1df1e6aef0c9f18f3/resendinvites | |||
Authorization | Bearer | |||
Accept | application/json | |||
Content-Type | application/json | |||
HTTP Method | POST | |||
Post Body Parameters |
| |||
Example Response | {"status":"success"} |
POST /documentgroup//groupinvite//invitestep//update
Description | Used to either replace inviters for a particular step or update the invite attributes for a user at a particular step. | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example request | Replace example. Replace all of atest@example.com's invites with invites to ctest@example.com in invite step 4319a1bc69028fc5c44d69f2612f9aa015044918. The invites will have the same roles and document ids and action types. For the signing action for document id d8b9fa9ed065edb4e8dccd89cad7d7aca9e526c5 and c129fa9ed065edb4e8dccd89cad7d7aca9e526c5, the passwords and allow_reassigns are set to new values. New invite emails will be sent to ctest@example.com when the call is complete. curl -X POST -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/documentgroup/1ce24c559a6191db3c6740fbc8140bfd0ad24199/groupinvite/b48f243f4a11877cdd18d0338264e56bf9f43556/invitestep/4319a1bc69028fc5c44d69f2612f9aa015044918/update --data '{"user_to_update":"atest@example.com","replace_with_this_user":"ctest@example.com","update_invite_action_attributes":[{"document_id":"d8b9fa9ed065edb4e8dccd89cad7d7aca9e526c5","allow_reassign":1,"authentication":{"type":"password","value":"pass1"}},{"document_id":"c129fa9ed065edb4e8dccd89cad7d7aca9e526c5","allow_reassign":0,"authentication":{"type":"password","value":"pass2"}}],"invite_email":{"email":"ctest@example.com'","reminder":5,"expiration_days":11,"message":"CTest Please sign these documents","subject":"CTest invite"}}' Update example. Update dtest@example.com's invite with new attributes. A new invite email will be sent to dtest@example.com when the call is complete. curl -X POST -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/documentgroup/1ce24c559a6191db3c6740fbc8140bfd0ad24199/groupinvite/b48f243f4a11877cdd18d0338264e56bf9f43556/invitestep/786c1e9d9f342c0274f89de901fcec64b5ddba65/update --data '{"user_to_update":"dtest@example.com","invite_email":{"email":"dtest@example.com","reminder":5,"expiration_days":11,"message":"DDDTEST REPLACE MESSGE","subject":"DDDDTEST SUBJECT"},"update_invite_action_attributes":[{"document_id":"d6d875bc9d9fbf5102ae9fb220c6f80222aca47f","allow_reassign":1}]}' | |||||||||||||||||||||||||||||||||||||||
Authorization | Bearer | |||||||||||||||||||||||||||||||||||||||
Accept | application/json | |||||||||||||||||||||||||||||||||||||||
Content-Type | application/json | |||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | |||||||||||||||||||||||||||||||||||||||
Post Body Parameters |
Invite_email object:
Update_invite_action_attribute object:
| |||||||||||||||||||||||||||||||||||||||
Example Response | {"status":"success"} |
/oauth2
POST /oauth2/token
Description | Request an access token for a user | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example request | curl -H 'Authorization: Basic ENCODED_CLIENT_CREDENTIALS' --data 'username=user@test.com&password=test&grant_type=password&scope=user%20documents%20user%2Fdocumentsv2' https://api-eval.signnow.com/oauth2/token | ||||||||||||
Authorization | Basic | ||||||||||||
Accept | application/json | ||||||||||||
Content-Type | application/x-www-form-urlencoded | ||||||||||||
HTTP Method | POST | ||||||||||||
Post parameters |
| ||||||||||||
Example response | { "access_token": "68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0", "token_type": "bearer", "expires_in": "2592000", "refresh_token": "8ee3c7371cd2b163cbe0e5c76080d059c5cc71ca4f3224abc0c4fb11ebef2feb", "id": "23f2f9dc10e0f12883f78e91296207640dede6d1", "scope":"user documents" } |
GET /oauth2/token
Description | Verify an access token for a user |
---|---|
Example request | curl -H 'Authorization: Bearer 68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0' https://api-eval.signnow.com/oauth2/token |
Authorization | Bearer |
Accept | application/json |
HTTP Method | GET |
Example Response | { "access_token": "68a31715f60b8a2e0df3ef1b4bc1a22cece3876c4a9a029dc845e4fa098517a0", "token_type": "bearer", "expires_in": "2592000", "refresh_token": "8ee3c7371cd2b163cbe0e5c76080d059c5cc71ca4f3224abc0c4fb11ebef2feb", "scope": "user documents" } |
/document
POST /document
Description | Uploads a file and creates a document. This endpoint accepts .doc, .docx, .pdf, and .png file types. |
---|---|
Example request | curl -H 'Authorization: Bearer TOKEN' https://api-eval.signnow.com/document |
Authorization | Bearer |
Accept | application/json |
Content-Type | multipart/form-data |
HTTP Method | POST |
Optional Data | {"integration_id":"a27587a3df225014586175534dfee647140dd9a4","mydata1":"value1", "mydata2":"value2"} Note that any number of mydata key/value pairs are supported. |
Example response | { "id":"2586a3f5fe9a79106015602a5191938bfaf698e9" } |
POST /document/fieldextract
Description | Uploads a file that contains SignNow Document Field Tags. This endpoint only accepts .pdf, .doc or .docx files. There are two tag-types, one for simple field tags, and one for more complex field tags. See the Example Request samples below. For complex field tags, the form data accepts the "Tags" Key which must have a tag_name and SignNow Field creation information as described in the call PUT /document/ | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simple Field Tag | |||||||||||||||||||||||||||||||||||||||||
Example Request | curl -X POST -H "Authorization: Bearer | ||||||||||||||||||||||||||||||||||||||||
Authorization | Bearer | ||||||||||||||||||||||||||||||||||||||||
Content-Type | multipart/form-data | ||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||
Field Tag Information | SignNow Document Field Tags are specially formatted text that can be placed anywhere within the content of your document specifying the location, size, type of fields such as signature, text, initial fields. | ||||||||||||||||||||||||||||||||||||||||
Adding Field Tags | The order in adding the test tags is:
The full set looks like the following: | ||||||||||||||||||||||||||||||||||||||||
Examples |
| ||||||||||||||||||||||||||||||||||||||||
Example response | { "id":"519f97b02da37a411d624e758c631cb64c9d9eb6" } | ||||||||||||||||||||||||||||||||||||||||
Complex Field Tag For complex field tags, the form data accepts the "Tags" Key which must have a tag_name and SignNow Field creation information as described in the call PUT /document/ | |||||||||||||||||||||||||||||||||||||||||
Example Request | Example 1: | ||||||||||||||||||||||||||||||||||||||||
Authorization | Bearer | ||||||||||||||||||||||||||||||||||||||||
Content-Type | multipart/form-data | ||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||
Field Tag Information | SignNow Document Field Tags are specially formatted text that can be placed anywhere within the content of your document specifying the size, type of fields, and file attachments such as signature, text, initial fields.
| ||||||||||||||||||||||||||||||||||||||||
Examples | { "Tags":[ { tag_name:'TextTagExample', role:'Role1', label:'Label1', required:true, type:'text', prefilled_text:’family-name', width:100, height:20 }, { "tag_name":"DateValidatorTagExample", "role":"Role1", "label":"Date of Birth", "required":true, " type":"text", "height":15, "width":100, "validator_id":"13435fa6c2a17f83177fcbb5c4a9376ce85befeb" }, { "tag_name":"InitialsTagExample", "role":"CLIENT", "required":true, "type":"initials", "height":15, "width":40 }, { "tag_name":"SignatureTagExample", "role":"CLIENT", "required":true, "type":"signature", "height":15, "width":200 }, { "tag_name":"DropDownTagExample", "role":"Role1", "label":"Options", "required":true, "type":"enumeration", "height":15, "width":100, "custom_defined_option":false, "enumeration_options":["All","None"] }, { tag_name:'AttachmentTagExample', role:'Role2', label:'Label2', required:true, type:'attachment', width:100, height:20 } ] }
| ||||||||||||||||||||||||||||||||||||||||
Complex Field Tag for Checkbox Example | {<br/>"tag_name":"CheckboxTagExample",<br/>"role":"CLIENT",<br/>"required":true,<br/>"type":"checkbox",<br/>"height":12,<br/>"width":12,<br/> }, | ||||||||||||||||||||||||||||||||||||||||
Example response | { "id":"519f97b02da37a411d624e758c631cb64c9d9eb6" } |
PUT /document/
Description | Update an existing document. Add fields [signature | text | initials | checkbox ], elements [signature | text | check] |
---|---|
Example request | curl -X PUT -H 'Authorization: Bearer ACCESS_TOKEN' --data '{"texts": [{ "size": 8, "x": 61, "y": 72, "page_number": 0, "font": "Arial", "data": "sample text", "line_height": 9.075 }]}' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9 |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | PUT |
Example bodies | Adding a signature field for an invitee with a role you define: {<br/> "fields": [<br/> {<br/> "x": 305,<br/> "y": 18,<br/> "width": 122,<br/> "height": 34,<br/> "page_number": 0,<br/> "role": "buyer",<br/> "required": true,<br/> "type": "signature"<br/> }<br/> ]<br/>} A full sample body: { "texts":[ { "size":8, "x":61, "y":72, "page_number":0, "font":"Arial", "data":"a sample text field", "line_height":9.075 } ], "checks":[ { "width":12, "height":12, "x":234, "y":53, "page_number":0 } ], "fields":[ { "x":305, "y":18, "width":122, "height":34, "page_number":0, "role":"tatonka", "required":true, "type":"signature" }, { "x":307, "y":67, "width":60, "height":12, "page_number":0, "label":"a sample label", "role":"tatonka", "required":true, "type":"text" }, { "x":409, "y":67, "width":41, "height":26, "page_number":0, "role":"tatonka", "required":true, "type":"initials" }, { "x":481, "y":69, "width":12, "height":12, "page_number":0, "role":"tatonka", "required":true, "type":"checkbox" }, { "x":38, "y":77, "width":87, "height":16, "page_number":0, "label":"Select Year", "role":"Client", "required":true, "custom_defined_option":false, "enumeration_options":[ "2014", "2015", "2016" ], "type":"enumeration" } { "x": 395, "y": 372, "width": 177, "height": 50, "page_number": 0, "role": "signer", "required": true, "type": "radiobutton",<br/> "name": "GROUP_NAME" "radio": [ { "page_number": "0", "x": "10", "y": "20", "width": "25", "height": "25", "checked": "0", "value": "apple", "created": "123456789" }, { "page_number": "0", "x": "40", "y": "20", "width": "25", "height": "25", "checked": "0", "value": "cherry", "created": "123456789" } ] } ] } |
Example response | {<br/> "id": "2586a3f5fe9a79106015602a5191938bfaf698e9" }<span style="color: rgb(0,0,0);"> </span> |
GET /document/
Description | Retrieve a document resource |
---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9 |
Authorization | Bearer |
Accept | application/json |
HTTP Method | GET |
Example response | { "id": "54b280800a65fb5df0ac3453dba42d1c9e21d2f9", "user_id": "0c639417de0d79baec2dd8c5be77567b4a10b4a4", "document_name": "standard_eoi.pdf", "page_count": "2", "created": "1391639766", "updated": "1391640076", "original_filename": "standard_eoi.pdf", "origin_document_id": null, "owner": "lochnguyen@gmail.com", "thumbnail": { "small": "http://signnow.com/proxy/index.php/document/54b280800a65fb5df0ac3453dba42d1c9e21d2f9/thumbnail?size=small", "medium": "http://signnow.com/proxy/index.php/document/54b280800a65fb5df0ac3453dba42d1c9e21d2f9/thumbnail?size=medium", "large": "http://signnow.com/proxy/index.php/document/54b280800a65fb5df0ac3453dba42d1c9e21d2f9/thumbnail?size=large" }, "signatures": [ { "id": "577b01bcb81ec3cb91e631985875992e1844be58", "user_id": "0c639417de0d79baec2dd8c5be77567b4a10b4a4", "email": "tester1@gmail.com", "page_number": "0", "width": 170, "height": 38, "x": 145, "y": 29, "created": "1391639779", "data": "iVBORw0KGgoAAAANSUhEUgAAAiwAAAB9CAQAAAArM/AZAAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAiwAAAB9AGiybtYAABVASURBVHja7Z09zCvLWYCfNUYORg44yLmAJbQRkoUQzkXgVFhURggJt0YojSUKhEVrWtykwg3FLZwed0hIRqJJY4EUCSg2UIEEeygipFzQ3uTmJqcIMYW93pndmfXu2t4ff+/j5pzPXnt2Z+ad92/eAUF4y0wIODKouhmvhlN1A2rKhD9nCnzCN+kx5df4dtVNEu6kyxfp0QE+B/T5Fb7Kh9d3f4IfV91A4bXpEnBKvMZVN0u4gzG+oU/Vl1d1E4XXZmYdesOqmyYUYmxcKJKvadUNFV6VAV7q0BOaQmjiZxUq0r/CU+iz1JTlDWsOeHgcOVz/uq66mUIG2hw54Sv9Znr57JgzZKv8za266cKr0GbMLjbkdgl/yljWtMYwvaGV+KwY0lKu6ItgER5HL6ajnPBZ0rN8NvyMRNHqzT5FpByY0jZeFWot4kUT7mDAJvOQO9O+fk6oLz2rSPGYajpKHIcTJ45V34DQVNosY0Nuz/imFtK+OgA7Vd+AYMVmAm0tWqhOi50kyTWDcBK2GLJgy87guyiTQUxNPmQQKaCug/0KW/9WGeFzzPDkN0ahshTT9bU4OzsDjolg37KS9kw0b8rxhmKsX3m63ItoK+UTCvXNjc8dDUJlUXXjhcfS1QJ4J/asrh3vZ57Qj6LFUhFuHvNUX0qc3fUehHLps1UWg7Qwf8uQqbIWTeV1aLHDj3XyXOngVq4p/QgGSiDZZ5FT55jI2lcRvYQGMrJ+tpMQKke6Vd+A8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egiAUYGYVKlWeyygIQsOZGIRK1ScdCYLQeNqs8Anw8dgxkazut8z/AyR6RdlekYeNAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEzLTEyLTE2VDE1OjQ1OjI0LTA4OjAw9bJvoAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMy0xMi0xNlQxNTo0NToyNC0wODowMITv1xwAAAAASUVORK5CYII=" } ], "seals": [], "texts": [], "checks": [], "inserts": [], "tags": [ { "type": "system", "name": "fields" } ], "fields": [ { "originator": "email07.18.30.18@mailinator.com", "json_attributes": { "required': true, "height": 15, "width": 200, "page_number": 0, "y": 500, "x": 150, "label": "Some Stuff" }, "fulfiller": None, "template_field_id": "3518920db1bfee66d4b0d5d226a0a1854ac19aa5", "field_request_id": None, "field_id": None, "role_id": "09ed0547efbbc6d555f0af855a549041a814b66f", "field_request_canceled": None, "role": "Joe", "element_id": None, "type": "enumeration", "id": "6f79fda2ad8b1e76e75a27dd3860df5a6ec21901" }, { "originator": "email07.18.30.18@mailinator.com", "json_attributes": { "required": true, "height": 34, "width": 122, "page_number": 0, "y": 18, "x": 305 }, "fulfiller": None, "template_field_id": "d8207da98049444fa5992a176c0a2e373707a659", "field_request_id": None, "field_id": None, "role_id": "20620ede78841cd4eaea22c617e45fa2b9bc8515", "field_request_canceled": None, "role": "buyer", "element_id": None, " "type": "signature", "id": "c5ff90a4ab077737c5a207cd582c6043781cc9c7" } ], "requests": [], "notary_invites": [], "roles": [ { "unique_id": "86d9c7ffc505bf010eaa35d67fc02719f766b2e2", "signing_order": "1", "name": "Client Sigz" } ], "field_invites": [], "version_time": "1391640076", "enumeration_options": [], "exported_to": [ { "export_domain": "copy.com", "is_exported": false } ], "parent_id": "fe58ced6393d7cbc59c36eaf84692a96543804eb", "pages": [ { "src": "http://signnow.com/proxy/index.php/document/54b280800a65fb5df0ac3453dba42d1c9e21d2f9/thumbnail?size=large&page=0", "size": { "width": 890, "height": 1152 } }, { "src": "http://signnow.com/proxy/index.php/document/54b280800a65fb5df0ac3453dba42d1c9e21d2f9/thumbnail?size=large&page=1", "size": { "width": 890, "height": 1152 } } ] } |
DELETE /document/
Description | Deletes a previously uploaded document. |
---|---|
Example request | curl -X DELETE -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9 |
Authorization | Bearer |
Accept | application/json |
HTTP Method | DELETE |
Example response | { "status":"success" } |
GET /document//download
Description | Download a collapsed document | |||
---|---|---|---|---|
HTTP Method | GET | |||
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9/download?type=collapsed | |||
Query Parameters |
| |||
Example response | Document requested |
GET /document//download/collapsed?with_history=1
Description | Download a collapsed document with a table containing the document's history. |
---|---|
HTTP Method | GET |
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9/download/collapsed?with_history=1 |
Example response | The requested document along with a table containing the document's history. |
POST /document//move
Description | Move a document to the Archive folder or one of it's subfolders. |
---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' --data '{"folder_id":"d3d5e79a4a4bcabd18bcd136547be6851d19ce12"}' https://api-eval.signnow.com/document/dc07a45f23bd1bf1a248e72315417a90d29e32f7/move |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | POST |
Example body | {<br/> "folder_id": "d3d5e79a4a4bcabd18bcd136547be6851d19ce12"<br/>} |
Example response | {<br/> "result": "success" }<span style="color: rgb(0,0,0);"> </span> |
POST /document//invite
Description | Create an invite to sign a document. You can create a simple free form invite or a role-based invite. | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example request | Free-form invite (Document doesn't have any fields and signer will be able to sign anywhere on the document: curl -H 'Authorization: Bearer ACCESS_TOKEN' --data '{"from":"user@test.com","to":"invitee@test.com"}' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9/invite? Role-based invite (Document has fields): curl -H 'Authorization: Bearer ACCESS_TOKEN' --data '{"to":[{"email":"tm1@mailinator.com","role_id":"2e55f53dd32e77753b35d537ed6e65c6d9b5df1e","role":"Client","order":1},{"email":"tm2@mailinator.com","role_id":"54e0c633b9dedcd5af37bd6bf69a3984e58c383c","role":"Sales","order":1}],"from":"ln@SignNow.com","cc":[],"subject":"ln@SignNow.com Needs Your Signature","message":"ln@SignNow.com invited you to sign \"document.pdf\"."}' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9/invite?email=disable Pre-populate the name field: curl -H 'Authorization: bearer 0bd68f39528ae413b4725fedbd25d592e0ad78f12d88f5fd0a87f7132fb977f3' --data '{"document_id":"","to":[{"email":"email1@mailinator.com","role_id":"","role":"buyer","order":1,"prefill_signature_name":"Jane Doe", "force_new_signature":1}, {"email":"email2@mailinator.com","role_id":"","role":"seller","order":2, "prefill_signature_name":"John Jacob", "force_new_signature":1}],"from":"bstrader@signnow.com","cc":[],"subject":"Need your Sig For Test","message":"Sign here"}' ' https://api-eval.signnow.com/document/57fdea14d7cce4dc11751bb74363dcde4daec406/invite' Note that the prefill_signature_name and force_new_signature properties are mobile web only. | |||||||||||||||||||||||||||||||||||||||||||||
Authorization | Bearer | |||||||||||||||||||||||||||||||||||||||||||||
Accept | application/json | |||||||||||||||||||||||||||||||||||||||||||||
Content-Type | application/json | |||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | |||||||||||||||||||||||||||||||||||||||||||||
Payload parameters | Free form invite example:
Example: { "from":"first_user_email@email.com", "to":"to_user_email@email.com" }
Role-based invite example:
Each SIGNER object should contain the following:
{ "to":[ { "email":"tm1@mailinator.com", "role_id":"2e55f53dd32e77753b35d537ed6e65c6d9b5df1e", "role":"Client", "order":1 }, { "email":"tm2@mailinator.com", "role_id":"", "role":"Sales", "order":1, "authentication_type": "password", "password": "testing123", "expiration_days": 15, "reminder": 5 } ], "from":"ln@SignNow.com", "cc":[], "subject":"ln@SignNow.com Needs Your Signature", "message":"ln@SignNow.com invited you to sign \"document.pdf\"." } | |||||||||||||||||||||||||||||||||||||||||||||
Query parameters |
| |||||||||||||||||||||||||||||||||||||||||||||
Example response | { "result":"success" } |
PUT /document//fieldinvitecancel
Description | Cancel an invite to a document. |
---|---|
Example request | curl -X PUT -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/5b5bc1722f20295f678afb78ca3390f0609b6a7b/fieldinvitecancel |
Authorization | Bearer |
Accept | application/json |
Content-Type | application/json |
HTTP Method | PUT |
Example response | { "status":"success" } |
POST /document//download/link
Description | Creates a one-time use URL for anyone to download the document as a PDF. |
---|---|
Example Request | curl -X POST -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/6abad1ec2cea2dc144cc6cd108094f53ce92f434/download/link |
Authorization | Bearer |
Accept | application/json |
HTTP Method | POST |
Route parameters | document id |
Example response | { "link":"https://signnow.com/dispatch?route=onetimedownload&document_download_id=67de624701a70cdfe208b5c537f61fefa48b410a" } |
POST /document//custom_history_event
Description | Allows third party developers to add custom events to the audit log. For example, if you are using a single SignNow account to make API calls but authenticating multiple people, use this call to add a record to the audit log for that specific document that references the authentication method. |
---|---|
HTTP Method | POST |
Example request | curl -X POST -H 'Authorization: bearer TOKEN’ |
POST /document/merge
Description | Merges existing documents into one. | ||||||
---|---|---|---|---|---|---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' -X POST https://api-eval.signnow.com/document/merge | ||||||
Authorization | Bearer | ||||||
Accept | application/json | ||||||
Content-Type | application/pdf | ||||||
HTTP Method | POST | ||||||
Payload parameters |
{ "name": "the merged doc" "document_ids": ["84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa", "a71d963c49f33176e90c5827069c422616b1500c"] } | ||||||
Example response | <span>download.pdf</span> |
GET /document//historyfull
Description | Get the history of a document |
---|---|
HTTP Method | GET |
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/document/2586a3f5fe9a79106015602a5191938bfaf698e9/historyfull |
Example response | [ { "email":"janedoe@barracuda.com", "ip_address":"192.168.15.59", "created":"1395171751", "event":"created_document", "client_app_name":"signnow web application", "user_agent":"Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/33.0.1750.149 Safari\\\/537.36", "origin":"original", "version":"0", "client_timestamp":"1395171749" }, { "unique_id":"e4ec02a194c3a9f3936cf4032431e4363f614765", "created":"1395171794", "client_timestamp":"1395171792", "event":"document_viewed", "client_app_name":"signnow web application", "ip_address":"192.168.15.59", "user_id":"d64a8170a19f1489c495f0de659ff42efe4c1f7b", "email":"janedoe@barracuda.com", "document_id":"b306621c176c32ab739f7713b9016a5a418e5a16", "field_id":null, "element_id":null }, { "unique_id":"b8b96fc736cdc1d78bf78224db27d163733f8941", "created":"1395171798", "client_timestamp":"1395171797", "event":"document_signing_session_completed", "client_app_name":"signnow web application", "ip_address":"192.168.15.59", "user_id":"d64a8170a19f1489c495f0de659ff42efe4c1f7b", "email":"janedoe@barracuda.com", "document_id":"b306621c176c32ab739f7713b9016a5a418e5a16", "field_id":null, "element_id":null } ] |
/template
POST /template
Description | Create a template by flattening an existing document. | ||||||
---|---|---|---|---|---|---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' --data '{"document_id": "8a8fb421a75a605625d273045a687e588628e43c"}' https://api-eval.signnow.com/template | ||||||
Authorization | Bearer | ||||||
Accept | application/json | ||||||
Content-Type | application/json | ||||||
HTTP Method | POST | ||||||
Payload parameters |
Example: { "document_name":"my template", "document_id":"8a8fb421a75a605625d273045a687e588628e43c" } | ||||||
Example response | { "id":"ce97706ea19b42c19aced4a6ac353153e86c09f1" } |
POST /template//copy
Description | Create a new document by copying a flattened document. If a name is not supplied than it will default to the original document's name. | |||
---|---|---|---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' -X POST https://api-eval.signnow.com/template/ce97706ea19b42c19aced4a6ac353153e86c09f1/copy | |||
Authorization | Bearer | |||
Accept | application/json | |||
Content-Type | application/json | |||
HTTP Method | POST | |||
Payload parameters |
{<br/> "document_name": "New Template Name" } | |||
Example response | {<br/> "id":"ce97706ea19b42c19aced4a6ac353153e86c09f1", "document_name": "a document" } |
/folder
GET /folder/?
Description | Gets all folder information including an array of all documents inside that folder. You can provide optional filter parameters for the documents returned. | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example request | Without Filter: curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/folder/1893180697eb9bc2965f5e1b5a502a0942718d04 With Filters: curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/folder/1893180697eb9bc2965f5e1b5a502a0942718d04?filters=signing-status&filter-values=signed&sortby=updated&order=desc With Pagination: curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/folder/1893180697eb9bc2965f5e1b5a502a0942718d04?offset=0&limit20 | ||||||||||||||||||||
Authorization | Bearer | ||||||||||||||||||||
Accept | application/json | ||||||||||||||||||||
HTTP Method | GET | ||||||||||||||||||||
Filter Options | Optional query parameters are expected in pairs: filter= signing-status &filter-value= signed //filter data sortby= document-name &order= asc //sorting data
If the folder contains a lot of documents we recommend paging the documents with the following query parameters:
| ||||||||||||||||||||
Example response | {<br/> "id": "1893180697eb9bc2965f5e1b5a502a0942718d04",<br/> "created": "1409253077",<br/> "name": "Documents",<br/> "user_id": "38b7eb73d859cd9f6a8695817635fa14d58d0fe3",<br/> "parent_id": "07813645c2052dd0f18ce23a798411fd16e64720",<br/> "system_folder": true,<br/> "shared": false,<br/> "folders": [],<br/> "total_documents": 1,<br/> "documents": [<br/> {<br/> "id": "85fecd9634b6d653f73ee96e7312947c5836834d",<br/> "user_id": "38b7eb73d859cd9f6a8695817635fa14d58d0fe3",<br/> "document_name": "forfun",<br/> "page_count": "1",<br/> "created": "1413307342",<br/> "updated": "1413485018",<br/> "original_filename": "forfun.pdf",<br/> "origin_document_id": "4a97327d3c8a45d0d257d24dc6f020ef9208d854",<br/> "owner": "sophiahelp@mailinator.com",<br/> "origin_user_id": "38b7eb73d859cd9f6a8695817635fa14d58d0fe3",<br/> "thumbnail": {<br/> "small": "http:\/\/api.vm.signnow.com\/document\/85fecd9634b6d653f73ee96e7312947c5836834d\/thumbnail?size=small",<br/> "medium": "http:\/\/api.vm.signnow.com\/document\/85fecd9634b6d653f73ee96e7312947c5836834d\/thumbnail?size=medium",<br/> "large": "http:\/\/api.vm.signnow.com\/document\/85fecd9634b6d653f73ee96e7312947c5836834d\/thumbnail?size=large"<br/> },<br/> "template": false,<br/> "signatures": [<br/> {<br/> "id": "5cff77fd67f7620e5efa07a335f28f05480e91f5",<br/> "user_id": "ab33e0689cd3419f8f6e1200156d4c0105b0b961",<br/> "email": "cpelletier@barracuda.com",<br/> "page_number": "0",<br/> "width": "122",<br/> "height": "25",<br/> "x": "91",<br/> "y": "195",<br/> "created": "1413485018"<br/> }<br/> ],<br/> "seals": [],<br/> "texts": [<br/> {<br/> "id": "d2c2aaf73875e537db25ad30191dd6fdfa8766c4",<br/> "user_id": "ab33e0689cd3419f8f6e1200156d4c0105b0b961",<br/> "page_number": "0",<br/> "email": "cpelletier@barracuda.com",<br/> "font": "Arial",<br/> "size": "8",<br/> "data": "10\/16\/14",<br/> "x": "281",<br/> "y": "195",<br/> "line_height": "9.08",<br/> "created": "1413485018"<br/> }],<br/> "checks": [ ],<br/> "inserts": [],<br/> "tags": [{<br/> "type": "system",<br/> "name": "fields"<br/> }],<br/> "fields": [<br/> {<br/> "id": "ecbd4d8594c3c279ab77dc3d630f0a7865e13ec5",<br/> "type": "text",<br/> "role_id": "1025e1f678944126d55fa8244adb40dbfbe4eae5",<br/> "json_attributes": {<br/> "page_number": 0,<br/> "x": 281,<br/> "y": 195,<br/> "width": 102,<br/> "height": 21,<br/> "required": true,<br/> "label": "Date",<br/> "prefilled_text": ""<br/> },<br/> "role": "Client",<br/> "originator": "sophiahelp@mailinator.com",<br/> "fulfiller": "cpelletier@barracuda.com",<br/> "field_request_id": "40df08b6b97e5448795d666d945bac6feb7cfe47",<br/> "element_id": "d2c2aaf73875e537db25ad30191dd6fdfa8766c4",<br/> "field_request_canceled": null,<br/> "template_field_id": "726f1cd9b3777ffe19e087e509eb1777588bb36b",<br/> "field_id": "40df08b6b97e5448795d666d945bac6feb7cfe47"<br/> },<br/> {<br/> "id": "43a434da73c0127beb49954869c94347a3af496e",<br/> "type": "signature",<br/> "role_id": "1025e1f678944126d55fa8244adb40dbfbe4eae5",<br/> "json_attributes": {<br/> "page_number": 0,<br/> "x": 91,<br/> "y": 186,<br/> "width": 122,<br/> "height": 34,<br/> "required": true<br/> },<br/> "role": "Client",<br/> "originator": "sophiahelp@mailinator.com",<br/> "fulfiller": "cpelletier@barracuda.com",<br/> "field_request_id": "4d766371aca992ec963dae1704a015cf5e8eb14f",<br/> "element_id": "5cff77fd67f7620e5efa07a335f28f05480e91f5",<br/> "field_request_canceled": null,<br/> "template_field_id": "e9536f562ec1edc27070ae097b2a40339a172645",<br/> "field_id": "4d766371aca992ec963dae1704a015cf5e8eb14f"<br/> }],<br/> "requests": [],<br/> "notary_invites": [],<br/> "roles": [<br/> {<br/> "unique_id": "1025e1f678944126d55fa8244adb40dbfbe4eae5",<br/> "signing_order": "1",<br/> "name": "Client"<br/> }],<br/> "field_invites": [<br/> {<br/> "id": "73f0a1f97afb21309f0248dbf460f24eea0bd36a",<br/> "status": "fulfilled",<br/> "updated": "1413485018",<br/> "email": "cpelletier@barracuda.com",<br/> "role": "Client"<br/> }],<br/> "version_time": "1413485018",<br/> "enumeration_options": [],<br/> "attachments": [],<br/> "exported_to": [<br/> {<br/> "export_domain": "copy.com",<br/> "is_exported": false,<br/> "exported_user_ids": []<br/> } ],<br/> "parent_id": "1893180697eb9bc2965f5e1b5a502a0942718d04"<br/> } ]<br/>} |
/event_subscription
GET /event_subscription
Description | Get an event subscription. |
---|---|
Example request | curl -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/event_subscription |
Authorization | Bearer |
Accept | application/json |
HTTP Method | GET |
Example response | {<br/> "subscriptions":[<br/> {<br/> "id”:"event_id",<br/> "event":"document.update",<br/> "created":"1410301010"<br/> },<br/> {<br/> "id”:"event_id",<br/> "event":"document.create",<br/> "created":"1410301010"<br/> }<br/> ]<br/>} |
POST /event_subscription
Description | Used for creating webhooks that will be triggered when the specified event takes place. | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example requests | curl -H 'Authorization: Bearer ACCESS_TOKEN' -X POST --data '{"event":"document.update","callback_url":"YOUR_CALLBACK_URL"}' https://api-eval.signnow.com/event_subscription curl -X POST -H 'Authorization: bearer ACCESS_TOKEN' --data '{"callback_url":"MY_URL","event":"EVENT","use_tls_12":1}' https://api-eval.signnow.com/event_subscription | |||||||||||||||||||||
Authorization | Bearer | |||||||||||||||||||||
Content-Type | application/json | |||||||||||||||||||||
HTTP Method | POST | |||||||||||||||||||||
Payload parameters |
{ "event": "document.update", "callback_url": "<span class="nolink">https://www.myapp.com/path/to/callback.php</span>" } | |||||||||||||||||||||
Events Table |
| |||||||||||||||||||||
Example response | { "id":"5a8123c4059a03f6eli47d66ef84694b9109845e",<br/> "created":1414441545 "updated":1414442202 } |
DELETE /event_subscription/
Description | Delete an event subscription. |
---|---|
Example request | curl -X DELETE -H 'Authorization: Bearer ACCESS_TOKEN' https://api-eval.signnow.com/event_subscription/ |
Authorization | Bearer |
Accept | application/json |
HTTP Method | DELETE |
Example response | { "id":"b11512055b136d1615efbaec911bcb81b581a655",<br/> "status": "deleted" } |
/link
POST /link
Description | Creates a Signing Link | |||
---|---|---|---|---|
Example request | curl -H ‘Authorization: Bearer ACCESS_TOKEN’ —data ‘{“document_id”:”DOCUMENT_ID”}' http://api.signnow.com/link | |||
Authorization | Bearer | |||
Accept | application/json | |||
HTTP Method | POST | |||
Payload parameters |
| |||
Example response | { "url":"<span class="nolink">http://signnow.com/s/1IFqEIt","url_no_signup":"http://signnow.com/s/1IFqFvT</span>" } |
About REST (REpresentational State Transfer)
We designed the SignNow API in a very RESTful way, so that your consumption of it is simple and straightforward. From Wikipedia:
REST's proponents argue that the Web's scalability and growth are a direct result of a few key design principles:
- Application state and functionality are divided into resources
- Every resource is uniquely addressable using a universal syntax for use in hypermedia links
- All resources share a uniform interface for the transfer of state between client and resource, consisting of
- A constrained set of well-defined operations
- A constrained set of content types, optionally supporting code on demand
- A protocol which is:
- Client-server
- Stateless
- Cacheable
- Layered
REST's client/server separation of concerns simplifies component implementation, reduces the complexity of connector semantics, improves the effectiveness of performance tuning, and increases the scalability of pure server components. Layered system constraints allow intermediaries-proxies, gateways, and firewalls-to be introduced at various points in the communication without changing the interfaces between components, thus allowing them to assist in communication translation or improve performance via large-scale, shared caching.
REST enables intermediate processing by constraining messages to be self-descriptive: interaction is stateless between requests, standard methods and media types are used to indicate semantics and exchange information, and responses explicitly indicate cacheability.
If you are looking for more information about RESTful web services, the O'Reilly RESTful Web Services book is excellent.