Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

901 B
Raw Blame
// A workspace API key (Linedesk: Integrations › API keys), sent as a Bearer token. The test reads the key's
// workspace, whose name labels the connection in Zapier.
const { CLOUD_URL, get } = require('./lib/request.js')

module.exports = {
  type: 'custom',
  fields: [
    {
      key: 'linedesk_url',
      label: 'Linedesk address',
      type: 'string',
      required: false,
      default: CLOUD_URL,
      helpText: `Leave it as ${CLOUD_URL} for Linedesk Cloud. On your own server, its address, e.g. https://linedesk.example.com.`,
    },
    {
      key: 'api_key',
      label: 'API key',
      type: 'password',
      required: true,
      helpText:
        'In Linedesk: Integrations › API keys › Create key. **Member** is enough for every trigger and action here.',
    },
  ],
  test: async (z, bundle) => get(z, bundle, '/v1/api-key'),
  connectionLabel: '{{workspace.name}}',
}