What do you want to automate

with Livespace and Z-API?

Prompt, edit and deploy AI agents that connect to Livespace, Z-API and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Get Contacts with the Z-API API

Get a list of all your WhatsApp contacts. See the documentation

 
Try it
Modify Chat with the Z-API API

Modify the specified chat. See the documentation

 
Try it
Send Text with the Z-API API

Send a text to the specified phone. See the documentation

 
Try it
Integrate the Livespace API with the Z-API API
Setup the Livespace API trigger to run a workflow which integrates with the Z-API API. Pipedream's integration platform allows you to integrate Livespace and Z-API remarkably fast. Free for developers.

Connect Livespace

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { axios } from "@pipedream/platform";
import crypto from "crypto";

export default defineComponent({
  props: {
    livespace: {
      type: "app",
      app: "livespace",
    }
  },
  async run({steps, $}) {

    const concatenatedString = this.livespace.$auth.api_key 
      + this.livespace.$auth.token
      + this.livespace.$auth.api_secret;

		const sha1Hash = crypto.createHash('sha1')
			.update(concatenatedString)
			.digest('hex');

    const data = {
      "_api_auth": `key`,
      "_api_key": `${this.livespace.$auth.api_key}`,
      "_api_sha": `${sha1Hash}`,
      "_api_session": `${this.livespace.$auth.session_id}`,
    }
    return await axios($, {
      method: "post",
      url: `https://${this.livespace.$auth.subdomain}.livespace.io/api/public/json/Default/User_getInfo`,
      data,
    })
  },
})

Overview of Z-API

The Z-API API facilitates WhatsApp messaging automation, allowing users to send and receive messages, manage contacts, and orchestrate chatbots within the popular messaging platform. On Pipedream, you can leverage this API to create powerful serverless workflows that trigger actions in response to WhatsApp events, automate message flows, and integrate with myriad other services without managing infrastructure.

Connect Z-API

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: {
    z_api: {
      type: "app",
      app: "z_api",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.z-api.io/instances/${this.z_api.$auth.instance_id}/token/${this.z_api.$auth.token_id}/contacts`,
      headers: {
        "Client-Token": `${this.z_api.$auth.account_security_token}`,
      },
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo