Levity

Train your own AI on documents, images, or text data to perform daily, repetitive tasks so your team can reach the next level of productivity

Go to site
Explore
/
Apps
/
Levity

Levity API Integrations

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    levity: {
      type: "app",
      app: "levity",
    }
  },
  async run({steps, $}) {
    const data = {
      "url": `{replace_with_image_url}`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.levity.ai/v1/classifiers/{your_classifier_id}/classify/`,
      headers: {
        "Authorization": `Token ${this.levity.$auth.api_key}`,
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Authentication

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

To retrieve your API keys,

  • Navigate to your Levity account and sign in
  • Go to “AI Blocks”
  • Click on one of your Blocks, then click on “Connect”
  • Go to “API”