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

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

export const customApiCall = createCustomApiCallAction({
  auth: fragmentAuth,
  name: 'custom_api_call',
  displayName: 'Custom API Call',
  description: 'Make a custom API call to any Fragment endpoint',
  baseUrl: () => 'https://api.onfragment.com/api/v1',
  authMapping: async (auth) => ({
    'Authorization': `Bearer ${auth}`,
    'Content-Type': 'application/json',
  }),
});