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

429 B
Raw Blame
import { HttpMethod } from '@activepieces/pieces-common';
import { mattermostClient } from './client';
import type { MattermostAuthValue, MattermostUser } from './types';

async function getMe({ auth }: { auth: MattermostAuthValue }): Promise<MattermostUser> {
  return await mattermostClient.request<MattermostUser>({
    auth,
    method: HttpMethod.GET,
    path: '/users/me',
  });
}

export const mattermostApi = { getMe };