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

# Initiate Card Display with OTP

> Send a secure card viewing link with OTP verification to a cardholder.

> [card] [Card Display with OTP Guide](https://developers.pcibooking.net/use-tokens/card-display-otp.md)
>
> How the OTP verification flow works end-to-end

Sends an email containing a secure link to the specified viewer. When the viewer clicks the link and verifies their phone number via OTP, PCI Booking displays the card details on a hosted page.

## Error Responses

| Code | HTTP Status | Condition |
| - | - | - |
| none | 400 | The request body failed validation: `Email` or `Phone` is missing, `Email` is not a valid email address, `Phone` is not a valid phone number, `PersonName` is longer than 100 characters, `TtlMinutes` is outside 1 to 30, or `Language` is not a supported code. The body is a standard validation problem object with an `errors` object that names each field. |
| none | 401 | The `Authorization` header is missing, badly formatted, or the API key is not valid. The response body is empty. See [Authentication and Permission Failures](https://developers.pcibooking.net/reference/error-handling.md#authentication-and-permission-failures). |
| -1003 | 403 | Your user does not have the **Retrieve cards** or the **Perform Card display operations** permission, or your IP address is not in your account's allowed IP list. `message` names the reason. |
| -1003 | 403 | Your account has exceeded its usage quota. `message` is empty. |
| -1003 | 401 | `Card_token` is missing, the token does not exist, was deleted, is malformed, or you are not the owner and not associated with it. See [Token Not Found or Not Accessible](https://developers.pcibooking.net/reference/error-handling.md#token-not-found-or-not-accessible). |
| -150 | 500 | The request could not be stored, or the email could not be sent. |

## Parameter Constraints

| Parameter | Constraint |
| - | - |
| `Phone` | Required. Must be a valid phone number. Send digits only, including the country code, with no `+` prefix. |
| `Email` | Required. Must be a valid email address. |
| `PersonName` | Max 100 characters. |
| `TtlMinutes` | Integer, range 1 to 30 (minutes). Default: 10. |
| `Language` | 2-letter code from the [supported languages](https://developers.pcibooking.net/account-setup/custom-translations.md#supported-languages) list. Default: `en`. |
| OTP code (entered by the viewer) | 6-digit numeric code. Regex: `^\d{6}$`. |
| Session ID (CVRT, in the viewer's link) | 32-character alphanumeric string. Regex: `^[a-zA-Z0-9]{32}$`. |

## Parameters

### Authentication

**API key only.** This endpoint does not accept access tokens or session tokens.

**Authorization** `string` *required*

Your API key prefixed with `APIKEY`. Example: `APIKEY your-api-key`. The `x-pcibooking-api-key` header is also accepted. See the [Authentication guide](https://developers.pcibooking.net/getting-started/authentication.md).

### Request Body

**Card\_token** `string` *required*

The PCI Booking card token to display.

**Email** `string` *required*

Email address to send the secure viewing link to. (Legacy alias: `ViewrEmail`.)

**Phone** `string` *required*

Phone number for SMS verification. Format: country code + number, no `+` prefix (e.g. `1555123456` for US, `353858622255` for Ireland). (Legacy alias: `ViewrPhone`.)

**PersonName** `string`

Name of the viewer, used to personalize the email and verification screens. Max 100 characters. (Legacy alias: `ViewerName`.)

**SenderName** `string`

SMS sender name, up to 11 characters. Defaults to your PCI Booking user ID. Some countries do not allow a name as the sender; there the SMS comes from a number.

**TtlMinutes** `number` (default: 10)

How long the viewing link stays valid, in minutes. Range 1 to 30.

**Language** `string` (default: en)

Two-letter language code for the email and verification screens, from the [supported languages](https://developers.pcibooking.net/account-setup/custom-translations.md#supported-languages) list.

```javascript Node.js theme={null}
const response = await fetch('https://service.pcibooking.net/api/card-view-request/initView', {
  method: 'POST',
  headers: {
    'Authorization': 'APIKEY your-api-key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    Card_token: '555fd7b49f134b42a5dbe4d576b2e527',
    Email: 'customer@example.com',
    Phone: '353858622255',
    PersonName: 'Jane Smith',
    TtlMinutes: 15,
    Language: 'en'
  })
});

const data = await response.json();
console.log(data);
```

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

response = requests.post(
    'https://service.pcibooking.net/api/card-view-request/initView',
    headers={
        'Authorization': 'APIKEY your-api-key',
        'Content-Type': 'application/json'
    },
    json={
        'Card_token': '555fd7b49f134b42a5dbe4d576b2e527',
        'Email': 'customer@example.com',
        'Phone': '353858622255',
        'PersonName': 'Jane Smith',
        'TtlMinutes': 15,
        'Language': 'en'
    }
)

print(response.json())
```

## Response

```json 200 theme={null}
{
  "verifyId": "s4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG",
  "status": "Pending",
  "completedAt": null,
  "expiresAt": "2026-01-12T14:15:00Z",
  "phoneNumber": "353858622255",
  "personName": "Jane Smith",
  "language": "en",
  "metadata": null,
  "senderName": "My Travel Brand"
}
```

```text 401 theme={null} theme={null} theme={null}
Empty response body.
Authentication failed: the API key, session token or access token is missing or was not accepted.
See "Authentication and Permission Failures" on the Error Handling page.
```

```json 401 Not your token theme={null}
{
  "code": -1003,
  "message": "You are not authorized to access this resource. Please contact customer support.",
  "moreInfo": "User <userId> is not associated with bank card [<token>]",
  "errorList": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.