Affinity

Affinity is a collective intelligence CRM

Go to site
Explore
/
Apps
/
Affinity

Affinity API Integrations

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

Overview

With the Affinity API, you can build a variety of applications that work with Affinity data, including:

  • A script to automatically generate PDFs of your design portfolio
  • A tool to help you manage your Affinity account
  • An app to find and connect with other Affinity users
  • A service to help you keep track of your Affinity projects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    affinity: {
      type: "app",
      app: "affinity",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.affinity.co/persons`,
      auth: {
        username: ``,
        password: `${this.affinity.$auth.api_key}`,
      },
      params: {
        term: `doe`,
      },
    })
  },
})

Authentication

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

To use the Affinity API, an API secret key needs to be generated. This can be done easily through the Settings Panel that is accessible through the left sidebar on the Affinity web app.