Skip to content

SDKs and packages

Pinlyx publishes three packages. They all authenticate with a normal API key and talk to https://api.pinlyx.com.

PackageRegistryFor
PinlyxNuGetCalling the REST API from .NET
pinlyx-mcpnpmConnecting MCP clients that only speak stdio
n8n-nodes-pinlyxnpmUsing Pinlyx inside n8n workflows

For any other language, call the REST API directly; the API reference has every endpoint.

A typed client for the public REST API: contacts, deals, tasks, finance, email, Telegram and X messages, sequences, analytics, pipelines, AI agents, the sending queue, webhooks and API keys. It also includes a helper to verify webhook signatures. It targets netstandard2.0, net8.0 and net9.0.

Terminal window
dotnet add package Pinlyx
using Pinlyx;
using Pinlyx.Models;
var client = new PinlyxClient("csk_live_...");
// Smoke test: who is this key, and what may it do?
var me = await client.Me.GetAsync();
Console.WriteLine($"{me.Email}: {string.Join(", ", me.ApiKey!.Scopes)}");
// First page of Telegram contacts
var page = await client.Contacts.ListAsync(limit: 50, platform: Platform.Telegram);
foreach (var c in page.Items)
Console.WriteLine($"#{c.Id} {c.Name}");
// Every contact, fetched page by page as you iterate
await foreach (var c in client.Contacts.StreamAllAsync(pageSize: 100))
Console.WriteLine(c.Name);

To check an incoming webhook, pass the raw body and the X-Webhook-Signature header to Pinlyx.Webhooks.WebhookSignature.Verify(secret, rawBody, header). See Webhooks.

Versions up to 0.3.0-alpha.1 were published as CrmSolid. That package is deprecated; switch to Pinlyx and rename CrmSolid to Pinlyx in your using lines and type names.

Most MCP clients connect straight to the hosted server at /mcp. For a client that can only start a local process, run the bridge. It proxies to the same server with the same key and scopes.

{
"mcpServers": {
"pinlyx": {
"command": "npx",
"args": ["-y", "pinlyx-mcp"],
"env": { "PINLYX_API_KEY": "csk_live_..." }
}
}
}

--tools (or PINLYX_TOOLS) limits the catalogue to some tool groups, for example --tools social,posts, and --read-only (or PINLYX_READ_ONLY) hides every tool that writes. Setup for each client is on the MCP server page.

Adds contacts, deals and conversations to n8n workflows. In n8n, open Settings › Community Nodes, choose Install and enter:

n8n-nodes-pinlyx

Operations, credentials and limits are on the n8n page.