> For the complete documentation index, see [llms.txt](https://developer.xyxyx.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.xyxyx.pro/api-endpoints/preview-token/a4.md).

# A4

#### Endpoint

<mark style="color:green;">`POST`</mark> `/api/v1/preview-token-A4`

> Download an SVG file to preview an A4 token output

***

**Headers**

| Name          | Value                                                                                                                       |
| ------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Content-Type  | `application/json`                                                                                                          |
| Authorization | [Xyxyx API Key](/getting-started/xyxyx-api-keys.md) or [XIN](https://docs.xyxyx.pro/protocol/xyxyx/xyxyx-issuer-nodes-xins) |

***

**Body**

<table><thead><tr><th width="239">Name</th><th width="258">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>tokenText</code></td><td>string</td><td>The text content that is stamped in the token output</td></tr><tr><td><code>walletPrivateKey</code></td><td>string</td><td>For authorizing wallet transaction</td></tr><tr><td><code>fontFamily</code></td><td>string (optional), defaults to <code>serif</code></td><td>Font-family that is used in the token output text</td></tr><tr><td><code>documentTitle</code></td><td>string (optional)</td><td>Document title, displayed on the top of the first page</td></tr><tr><td><code>documentSubtitle</code></td><td>string (optional)</td><td>Document subtitle, displayed below the document title</td></tr></tbody></table>

***

**Response**

{% tabs %}
{% tab title="200" %}
`Downloads SVG file.`
{% endtab %}

{% tab title="400" %}

```json
{
  "success": false,
  "status": "Failed to preview token: {error.message}"
}
```

{% endtab %}

{% tab title="401" %}

```json
{
  "success": false,
  "status": "The wallet does not own any valid Xyxyx API Key or XIN"
}
```

{% endtab %}

{% tab title="429" %}

```javascript
{
  "success": false,
  "status": "This wallet has already consumed its 24-hour request quota"
}
```

{% endtab %}
{% endtabs %}
