Skip to content

API Reference / Proxy providers

Reveal a proxy provider's key

Returns the stored API key of one connected proxy provider in your workspace. Requires the same manage permission as connecting or updating the provider. The key is never part of a provider read, a list or an event, and each reveal is recorded in the audit log. This does not contact the provider.

POST/proxies.v1.Proxies/RevealProviderCredentials

Request body

application/jsonRequired

Request for the stored API credential of one connected proxy provider in the caller's workspace.

providerId?string

Opaque 16-byte identifier of the provider connection, base64-encoded in JSON.

Format"byte" base64

Response body

application/json

Success

credentials?string

The provider account's API credential as UTF-8 bytes, base64-encoded in JSON, exactly as it was last sent to ConnectProvider or UpdateProvider: the Webshare API token or the Proxyline API key.

Format"byte" base64

curl -X POST "https://api.goldmine.to/proxies.v1.Proxies/RevealProviderCredentials" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "providerId": "AY+MIBEReqqLuywsLCwsLA=="
  }'
{
  "credentials": "d2Vic2hhcmUtdG9rZW4tQWJDZEVmMTIzNDU2"
}