Skip to main content
Glama
client.ts801 B
import { httpClient, HttpMethod } from '@activepieces/pieces-common'; export const featheryCommon = { baseUrl: 'https://api.feathery.io/api', async apiCall<T>({ method, url, body, apiKey, headers, }: { method: HttpMethod; url: string; body?: any; apiKey: string; headers?: Record<string, string>; }): Promise<T> { const response = await httpClient.sendRequest<T>({ method, url: `${this.baseUrl}${url}`, headers: { 'Authorization': `Token ${apiKey}`, 'Content-Type': 'application/json', ...headers, }, body, }); if (response.status >= 400) { throw new Error(`Feathery API error: ${response.status} - ${JSON.stringify(response.body)}`); } return response.body; }, };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server