# A fresh private link to a sent quote, to paste into a message

`POST /quotes/{id}/link` · Rivier · shop

A fresh private link to a sent quote, to paste into a message; the address is shown once. With replace true the older links stop working.

- Scope: shop:write
- Mcp: rivier_quotes_link
- Graphql: Mutation.shopQuoteLink
- Sdk: shop.quote.link
- Cli: quotes link

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "default": 30
    },
    "replace": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/quotes/{id}/link' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "days": 30,
  "replace": false
}'
```
