FuseWorks
  • GETTING STARTED
    • An Overview
    • QuickStart Guide
  • Deep Dives
    • Scopes
    • Webhooks
    • Bundle Create
  • API References
    • Session
    • Bundle
    • Customer
    • Document
    • Tenant
  • Resources
    • OpenApi Spec
  • Swagger
  • Integrate With Us
  • Meet With Us
Powered by GitBook
On this page
Export as PDF
  1. API References

Document

A file (.pdf) that is used for signing.

PreviousCustomerNextTenant

Last updated 1 month ago

Get Document

get

Download a document based on its ID.

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

documentIdstring · guidRequired

FuseSign Document ID

Responses
200Success
application/json
400
Error message
application/json
404
Not Found
application/json
get
GET /api/Document/Get HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "Example 1": {
    "DocumentId": "630c23d4-7fd5-43b2-bb6f-391f55c6a8e7",
    "BundleId": "a0e07d3c-25ee-453f-8290-73567154d0b1",
    "Meta": "document_lookup_key",
    "DisplayName": "Document Name",
    "EstimatedSize": 1000,
    "SignedPDFDownloadUrl": "https://signed.document/download"
  }
}

Upload Document from URL

post

Provide a URL of a document for later use in a bundle. This will consume the tenants inbox space. Use the returned Document Id in a Bundle Create request

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

urlstring | nullableRequired

Document URL

Responses
200Success
application/json
400
Error message
application/json
post
POST /api/Document/UploadUsingURL HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "Example 1": {
    "DocumentId": "68c58c5d-5dc1-4c8c-8239-e87e4c1732b1",
    "BundleId": "b5b7f723-4ac3-4c18-bda1-a75f72dfbba3",
    "Meta": "document_lookup_key",
    "DisplayName": "Document Name",
    "EstimatedSize": 1000,
    "SignedPDFDownloadUrl": "https://signed.document/download"
  }
}

List Pending

get

List all documents which have been uploaded which are not yet connected to a bundle.

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

Responses
200Success
application/json
get
GET /api/Document/ListPending HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200Success
[
  {
    "DocumentId": "630c23d4-7fd5-43b2-bb6f-391f55c6a8e7",
    "BundleId": "a0e07d3c-25ee-453f-8290-73567154d0b1",
    "Meta": "document_lookup_key",
    "DisplayName": "Document Name",
    "EstimatedSize": 1000,
    "SignedPDFDownloadUrl": "https://signed.document/download"
  }
]

Download Signed Document

get

Download the pdf document in it's current state (signed or unsigned)

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

bundleIdstring · guidRequired

FuseSign Bundle ID

documentIdstring · guidRequired

FuseSign Document ID

Responses
404
File not found
application/json
Responsestring
get
GET /api/Document/Download HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
404

File not found

text

Delete Document

post

If the target document is not attached to a bundle, you can delete it.

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

documentIdstring · guidRequired

FuseSign Dcoument ID

Responses
200Success
application/json
400
Error message
application/json
post
POST /api/Document/Delete HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "Result": true,
  "Message": "text",
  "Error": "text",
  "Errors": [
    {
      "Property": "text",
      "ErrorMessage": "text",
      "ErrorCode": "text"
    }
  ]
}

Download Document Audit

get

Download document's audit trail. This will only work if the document has been signed (or is a view only document) and Bundle.Settings.AuditType is set to Separate

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

bundleIdstring · guidRequired

FuseSign Bundle ID

documentIdstring · guidRequired

FuseSign Document ID

Responses
404
File not found
application/json
Responsestring
get
GET /api/Document/DownloadAudit HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
404

File not found

text

Download Document without Audit

get

Download a signed document without an audit trail embedded. This will only work if the document is a document with signing actions and has been signed and Bundle.Settings.AuditType is set to Separate

Authorizations
Query parameters
tenantIdstring · guidRequired

FuseSign Tenant ID

bundleIdstring · guidRequired

FuseSign Bundle ID

documentIdstring · guidRequired

FuseSign Document ID

Responses
404
File not found
application/json
Responsestring
get
GET /api/Document/DownloadDocumentNoAudit HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
404

File not found

text
  • GETGet Document
  • POSTUpload Document from URL
  • POSTUpload Document
  • GETList Pending
  • GETDownload Signed Document
  • POSTDelete Document
  • GETDownload Document Audit
  • GETDownload Document without Audit

Upload Document

post

Upload a file for later use in a bundle. This will consume the tenants inbox space. Use the returned Document Id in a Bundle Create request

Authorizations
Body
tenantIdstringRequired

Tenant which the file belongs to

metastringOptional

The Metadata string to associate with this file

filestring · binaryRequired

The PDF file to be uploaded

Responses
200Success
application/json
400
Error message
application/json
post
POST /api/Document/Upload HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 49

{
  "tenantId": "text",
  "meta": "text",
  "file": "binary"
}
{
  "Example 1": {
    "DocumentId": "68675bb8-1350-44ef-ae90-39da53c6628c",
    "BundleId": "5e15532b-1e39-4ba4-8e03-ac105b29953e",
    "Meta": "document_lookup_key",
    "DisplayName": "Document Name",
    "EstimatedSize": 1000,
    "SignedPDFDownloadUrl": "https://signed.document/download"
  }
}