---
title: "listPaymentResources"
description: "List priced resources"
canonical: "https://pgbeam.com/docs/ts-sdk/payments/listPaymentResources"
last-updated: "2026-10-22T11:48:14.000Z"
---

# listPaymentResources

> List priced resources

URL: https://pgbeam.com/docs/ts-sdk/payments/listPaymentResources

{/* Auto-generated from OpenAPI. Do not edit. Run `pnpm generate:sdk-docs` to regenerate. */}

Lists what an agent can buy over the Machine Payments Protocol, with the unit, the pack size, and the price of one pack. Discovery only: the `WWW-Authenticate: Payment` challenge returned by a priced operation is always authoritative.

This endpoint takes no authentication so an agent can read the price before it holds a credential.

## Usage

```typescript
const result = await api.payments.listPaymentResources();
```

## Parameters

None.

## Response

`Promise<ListPaymentResourcesResponse>`: the priced resource catalog.

## Example

```typescript
import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: null,
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.payments.listPaymentResources();
```

## Errors

| Status | Description                                                                                                                   |
| ------ | ----------------------------------------------------------------------------------------------------------------------------- |
| 429    | Rate limited. `code` is `RATE_LIMITED`.                                                                                       |
| 503    | The service is temporarily unable to answer. `code` is `SERVICE_UNAVAILABLE`. Safe to retry after the delay in `Retry-After`. |