Skip to main content
GET
/
managed-accounts
List Retailer Credentials
curl --request GET \
  --url https://api.zinc.com/managed-accounts \
  --header 'Authorization: <api-key>'
import requests

url = "https://api.zinc.com/managed-accounts"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://api.zinc.com/managed-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zinc.com/managed-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.zinc.com/managed-accounts"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.zinc.com/managed-accounts")
.header("Authorization", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.zinc.com/managed-accounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "credentials": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "short_id": "<string>",
      "email": "<string>",
      "retailer": "<string>",
      "forwarding_email": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "has_totp": false,
      "has_forwarding": false,
      "is_paused": false,
      "locked_by_job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "cooldown_minutes": 123,
      "last_used_at": "2023-11-07T05:31:56Z",
      "retailer_config": {}
    }
  ],
  "total": 123
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
Retrieve a list of all retailer credentials associated with your account.

Response

Returns an object containing:
  • credentials - Array of retailer credential objects
  • total - Total number of credentials
Each credential includes:
  • id - Unique identifier (UUID)
  • short_id - Short identifier used in URLs (e.g., zn_acct_a1b2c3d4)
  • email - Retailer account email
  • retailer - Retailer name, or null if default credentials
  • has_totp - Whether TOTP 2FA is configured
  • has_forwarding - Whether email forwarding has been verified
  • created_at - When the credentials were created
  • updated_at - When the credentials were last updated

Authorizations

Authorization
string
header
required

Zinc API key (Bearer zn_...)

Headers

authorization
string | null

Response

Successful Response

Response model for list of retailer credentials.

credentials
RetailerCredentialsResponse · object[]
required
total
integer
required