Skip to main content
This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
Requires Admin API key

Usage

// Initialize the client
var client = new AgentStudioClient(
  new AgentStudioConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);

// Call the API
var response = await client.UpdateSecretKeyAsync(
  "a1b2c3d4-5678-90ab-cdef-123456789abc",
  new SecretKeyPatch
  {
    Name = "renamed-key",
    AgentIds = new List<string> { "76710f1b-8231-42e5-b0d1-f43aac618e15" },
  }
);

// print the response
Console.WriteLine(response);

See the full API reference

For more details about input parameters and response fields.
Last modified on June 12, 2026