# .NET SDK

The official Apideck SDK for .NET. Integrate with 200+ services across CRM, Accounting, HRIS, ATS, File Storage, E-commerce, Issue Tracking, and more — using one unified API.

## Install

```bash
dotnet add package ApideckUnifySdk
```

- NuGet: https://www.nuget.org/packages/ApideckUnifySdk
- GitHub: https://github.com/apideck-libraries/sdk-csharp

## Getting started

Initialize the client with your API key, application ID, and a consumer ID (an identifier in your system for the end user whose connections you are acting on). Then call any Unified API method — for example, listing CRM contacts from Salesforce:

```csharp
using ApideckUnifySdk;
using ApideckUnifySdk.Models.Requests;

var sdk = new Apideck(
    apiKey: "<YOUR_API_KEY_HERE>",
    consumerId: "<insert-consumer-id-here>",
    appId: "<insert-application-id-here>"
);

var req = new CrmContactsAllRequest { ServiceId = "salesforce" };
var res = await sdk.Crm.Contacts.ListAsync(req);
```

## AI coding agent skill

If you are using an AI coding agent, install the `apideck-dotnet` skill to teach it how to use this SDK — including methods, authentication patterns, and error handling:

```bash
npx skills add apideck/api-skills --skill apideck-dotnet
```

See [https://developers.apideck.com/building-with-llms](https://developers.apideck.com/building-with-llms.md) for more on using Apideck with LLMs and AI agents.

## Resources

- [Unified API reference](https://developers.apideck.com/apis/crm/reference.md)
- [Get an API key](https://developers.apideck.com/get-started.md)
- [Other SDKs](https://developers.apideck.com/sdks): Node.js, Python, .NET, PHP, Java, Go
