List account credentials
const url = 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/account-credentials?offset=0&limit=500';const options = { method: 'GET', headers: {'X-Request-Id': 'onboarding-client-1042', Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/account-credentials?offset=0&limit=500' \ --header 'Authorization: <Authorization>' \ --header 'X-Request-Id: onboarding-client-1042'Returns the stored trading and investor password of every account on a
server, oldest account first. Requires accounts:read. This is the
only Management API operation that returns account passwords, so treat
the response as a secret: do not log it, keep it out of client-side
code, and prefer resetting a password over re-reading it. Page with
offset until nextOffset is null.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID of a trading server owned by your organization.
Example
6be9a699-2f28-402e-b64e-93ba6bdafe1bHeader Parameters
Section titled “Header Parameters”Optional correlation ID used for API request billing and logs.
Example
onboarding-client-1042Query Parameters
Section titled “Query Parameters”Number of accounts to skip.
Maximum number of accounts to return.
Responses
Section titled “Responses”Account credentials returned.
object
object
Account status in Koneth Main, such as active, pending, or failed.
Decrypted trading password, or null when none is stored.
Decrypted investor password, or null when none is stored.
Offset to request next, or null when this is the last page.
Example
{ "accounts": [ { "status": "active" } ]}Invalid request.
object
Validation issue details when the request fails schema validation.
object
Examplegenerated
{ "error": "example", "issues": [ {} ]}Management API authentication is missing or invalid.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Management API authentication required"}The organization cannot cover the active API request price.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Insufficient API credits"}The key lacks the required scope or server access.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Missing API scope: accounts:read"}Unexpected server error.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Internal server error"}