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

985 B
Raw Blame
import { createAction, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { flipandoAuth } from '../common/auth';
import { makeRequest } from '../common/client';

export const getAllApps = createAction({
  auth: flipandoAuth,
  name: 'getAllApps',
  displayName: 'Get All Apps',
  description:
    'Retrieves all the applications created by the authenticated user.',
  audience: 'both',
  aiMetadata: {
    description:
      'Lists the Flipando AI applications owned by the authenticated account (capped at 20 results). Use it to discover available app IDs before running an app or to enumerate what the account can execute. Read-only and idempotent.',
    idempotent: true,
  },
  props: {},
  async run(context) {
    const apiKey = context.auth.secret_text;
    return await makeRequest(
      apiKey,
      HttpMethod.GET,
      '/integrations/applications',
      {
        max_results: 20,
      }
    );
  },
});