The Akeyless Dev Hub

If you're looking for help with the only zero-trust, SaaS, unified platform for secrets management - you've come to the right place.

This is our documentation and updates center.


C# .NET Framework SDK


The Akeyless SDK for C# .NET Framework makes it easy for you to integrate your C# .NET Framework applications, libraries, or scripts with the Akeyless Vault secret management services.
The below C# code examples shows a typical sequence of how to integrate secrets into your application.


Build the project and use the following namespaces:

using Akeyless.ApiGateway.Api;
using Akeyless.ApiGateway.Client;
using Akeyless.ApiGateway.Model;

API Server Configuration

Configuration.Default.BasePath = "";
var apiInstance = new DefaultApi(Configuration.Default);


string accessId = Environment.GetEnvironmentVariable("AKEYLESS_ACCESS_ID");
string accessKey = Environment.GetEnvironmentVariable("AKEYLESS_ACCESS_KEY");
var response = apiInstance.Auth(accessId, "access_key", accessKey);
var token = response.Token;


Authentication methods

In addition to authentication with Access-ID and Access-Key, you can authenticate to Akeyless Vault with username and password.

Create a New Static Secret

string name = "name_example";
string value = "value_example";
var response = apiInstance.CreateSecret(name, value, token);

Get Static Secret Value

string name = "name_example";
var getValReplyObj = apiInstance.GetSecretValue(name, token);


Documentation for API calls

Updated 4 months ago

C# .NET Framework SDK

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.