Skip to main content
Glama

mcp-google-sheets

get-owner-by-id.ts675 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { hubspotAuth } from '../..'; import { Client } from '@hubspot/api-client'; export const getOwnerByIdAction = createAction({ auth: hubspotAuth, name: 'get-owner-by-id', displayName: 'Get Owner by ID', description: 'Gets an existing owner by ID.', props: { ownerId: Property.ShortText({ displayName: 'Owner ID', required: true, }), }, async run(context) { const { ownerId } = context.propsValue; const client = new Client({ accessToken: context.auth.access_token }); const response = await client.crm.owners.ownersApi.getById(Number(ownerId)); return response; }, });

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