# What a payment link sells, for the link page

> GET /v0/links/{id}


`GET /v0/links/{id}`



## Authentication

None. The payment link's ID is the capability, so this runs in a customer's browser with no key at all.

## Parameters

| Parameter | In | Required | Notes |
|---|---|---|---|
| `id` | path | yes |  |

## Responses

| Status | Means |
|---|---|
| `200` | The link |
| `404` | Unknown or off |


## Request



```bash title="curl"
curl https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo
```

```ts title="TypeScript"
const response = await fetch("https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo", {
  method: "GET",
});

if (!response.ok) {
  const { error } = await response.json();
  throw new Error(`${error.code}: ${error.message}`);
}
const data = await response.json();
```

```python title="Python"
import httpx

response = httpx.get(
    "https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo",
)
response.raise_for_status()
data = response.json()
```



## Errors

```json
{ "error": { "code": "INVOICE_EXPIRED", "message": "This invoice has expired" } }
```

Switch on `code`, not on the message: every code has a page under [Error codes](/docs/errors/). Base URL `https://api.intents.fi`; the whole reference is on [one page](/docs/api).

---

Source: https://intents.fi/docs/api/get-links-id · The whole corpus: https://intents.fi/docs/llms-full.txt
