Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

548 B
Raw Blame
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { assembledAuth } from '../common/auth';

export const customApiCall = createCustomApiCallAction({
  auth: assembledAuth,
  name: 'custom_api_call',
  displayName: 'Custom API Call',
  description: 'Make custom API calls to Assembled endpoints',
  baseUrl: () => 'https://api.assembledhq.com/v0',
  authMapping: async (auth) => ({
    'Authorization': `Basic ${Buffer.from(auth.secret_text + ':').toString('base64')}`,
    'Content-Type': 'application/json',
  }),
});