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';
import { wedofAuth } from '../../auth';
import { createAction, Property } from '@activepieces/pieces-framework';
import { wedofCommon } from '../../common/wedof';
export const getPartnership = createAction({
auth: wedofAuth,
name: 'getPartnership',
classification: 'READ',
displayName: "Récupération d'un partenariat",
description:
"Récupération d'un partenariat par le certifInfo de la certification et du siret du partenaire",
audience: 'both',
aiMetadata: {
description:
'Look up a single certification partnership by the certification certifInfo and the partner SIRET number. Read-only and safe to retry; pick this when you already know both identifiers and need the current partnership record. To remove a partnership use the delete action instead.',
idempotent: true,
},
props: {
certifInfo: Property.ShortText({
displayName: 'N° certifInfo',
description:
'Sélectionner le {certifInfo} de la certification considérée',
required: true,
}),
siret: Property.ShortText({
displayName: 'N° Siret',
description:
'Sélectionner le {siret} du partenaire',
required: true,
}),
},
async run(context) {
return (
await httpClient.sendRequest({
method: HttpMethod.GET,
url:
wedofCommon.baseUrl +
'/certifications/' +
context.propsValue.certifInfo +
'/partners/' +
context.propsValue.siret,
headers: {
'Content-Type': 'application/json',
'X-Api-Key': context.auth.secret_text,
},
})
).body;
},
});