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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { HttpMethod, httpClient } from '@activepieces/pieces-common';
const BASE_URL = 'https://api.pubrio.com';
export async function pubrioRequest(
apiKey: string,
method: HttpMethod,
endpoint: string,
body?: any
): Promise<unknown> {
const key = String(apiKey);
const response = await httpClient.sendRequest({
method,
url: `${BASE_URL}${endpoint}`,
headers: {
'pubrio-api-key': key,
'Content-Type': 'application/json',
},
body: body && Object.keys(body).length > 0 ? body : undefined,
});
return response.body;
}