Skip to main content

KeyList

Returns all API keys associated with a specified user.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

ArrayOfKeyIDInfo KeyList(string SessionID, int UserID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
UserIDintYesID of the user whose API keys to list

Response Object — ArrayOfKeyIDInfo

Returns an array of KeyIDInfo objects.

FieldTypeDescription
KeyIDintUnique identifier for this API key record
UserIDintID of the user that owns this key
KeystringThe API key string value
VisibilityKeyVisibilityVisibility scope of this key
CreateddatetimeDate and time the key was created
<!-- Example response XML -->
<ArrayOfKeyIDInfo>
<KeyIDInfo>
<KeyID>1042</KeyID>
<UserID>5001</UserID>
<Key>abc123def456ghi789jkl012mno345pq</Key>
<Visibility>Private</Visibility>
<Created>2025-01-15T08:30:00</Created>
</KeyIDInfo>
<KeyIDInfo>
<KeyID>1043</KeyID>
<UserID>5001</UserID>
<Key>xyz987uvw654rst321opq098nml765kj</Key>
<Visibility>Shared</Visibility>
<Created>2026-05-07T10:00:00</Created>
</KeyIDInfo>
</ArrayOfKeyIDInfo>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// List all API keys for a user
var keys = await client.KeyListAsync(sessionID, userId);

foreach (var key in keys)
{
Console.WriteLine($"Key ID: {key.KeyID} | Visibility: {key.Visibility} | Created: {key.Created:yyyy-MM-dd}");
Console.WriteLine($" Key: {key.Key}");
}

REST Equivalent

See List KeysPOST /v2/keys/list.