> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voyantcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Payment Accounts

> Retrieve configured payment accounts for the current workspace (optionally filtered by provider).

## Method

`GET` `/v1/payments/accounts`

## Query Parameters

<ParamField query="provider" type="string">Filter by provider slug (e.g. `netopia`).</ParamField>
<ParamField query="product" type="uuid">If the workspace context is missing, derive it from a product ID.</ParamField>

## Headers

<ParamField header="Authorization" type="string">Bearer token (requires `payments:read`).</ParamField>

## Request Example

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.voyantcloud.com/v1/payments/accounts?provider=netopia" \
    -H "Authorization: Bearer $VOYANT_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const res = await fetch("https://api.voyantcloud.com/v1/payments/accounts", {
    headers: { Authorization: `Bearer ${process.env.VOYANT_API_KEY}` },
  })
  const { data } = await res.json()
  ```

  ```python Python theme={null}
  import os, requests

  resp = requests.get(
    "https://api.voyantcloud.com/v1/payments/accounts",
    params={"provider": "netopia"},
    headers={"Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}"},
  )
  data = resp.json()["data"]
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": [
      {
        "id": "payacct_123",
        "workspaceId": "ws_abc",
        "provider": "netopia",
        "displayName": "Voyant Netopia Live",
        "liveMode": true,
        "status": "active",
        "configEncrypted": { "enc": "gcpkms:AAAA..." },
        "createdAt": "2025-01-10T09:12:45.000Z",
        "updatedAt": "2025-01-12T18:03:02.000Z"
      }
    ]
  }
  ```
</ResponseExample>

<Tip>If no workspace is associated with the API key, provide a `product` query parameter so the API can derive the workspace from the product’s owner.</Tip>
