Draftable

Document Comparison Software

Go to site
Explore
/
Apps
/
Draftable

Draftable API Integrations

Build and run workflows using the Draftable API. Use 1000s of open source triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Draftable API enables developers to convert documents and images into highly-compressed, draft versions that can be easily shared and reviewed. This can be useful for a number of different applications, such as:

  • Collaborative document editing, where users can quickly add comments and suggestions without slowing down the download or editing process
  • Document sharing, where users can quickly share large documents without overloading email servers or bandwidth limits
  • Image compression, where users can quickly reduce the size of images without losing quality or resolution
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    draftable: {
      type: "app",
      app: "draftable",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.draftable.com/v1/comparisons/[ACCOUNT_ID]/[IDENTIFIER]`,
      headers: {
        "Authorization": `Token ${this.draftable.$auth.token}`,
      },
    })
  },
})

Authentication

Draftable uses API keys for authentication. When you connect your Draftable account, Pipedream securely stores the keys so you can easily authenticate to Draftable APIs in both code and no-code steps.

Authenticate with your testing auth token in development, and your live auth token in production.