> ## 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.

# Get Card Display Session Status

> Check what happened in a Card Display with OTP session: link opened, codes sent, views, and whether it ended.

> [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

Returns the current status of a session created with [Initiate Card Display with OTP](https://developers.pcibooking.net/api-reference/process-cards/card-display-otp.md): whether the viewer opened the link, how many codes were sent, how many times the card was shown, and whether the session ended.

## Error Responses

| Code | HTTP Status | Condition |
| - | - | - |
| none | 400 | `requestId` is not a 32-character alphanumeric string. |
| 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. |
| -160 | 404 | No card display session with this ID exists for your account. A session created by another account returns the same response. |
| -150 | 500 | The session could not be read. |

## 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).

### Path Parameters

**requestId** `string` *required*

The `requestId` returned by [Initiate Card Display with OTP](https://developers.pcibooking.net/api-reference/process-cards/card-display-otp.md).

```javascript Node.js theme={null}
const requestId = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG';

const response = await fetch(`https://service.pcibooking.net/api/card-view-request/${requestId}`, {
  headers: {
    'Authorization': 'APIKEY your-api-key'
  }
});

console.log(await response.json());
```

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

request_id = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG'

response = requests.get(
    f'https://service.pcibooking.net/api/card-view-request/{request_id}',
    headers={'Authorization': 'APIKEY your-api-key'}
)

print(response.json())
```

## Response

| Field | Type | Description |
| - | - | - |
| `requestId` | string | The session ID. |
| `status` | string | `Created` (link not opened yet), `LinkOpened`, `OtpSent` (a code was sent), `CardShown` (the card was shown at least once), `Expired` (`TtlMinutes` ran out) or `Ended` (ended before it expired). |
| `createdAt` | datetime | When the session was created. |
| `expiresAt` | datetime | When the link expires. |
| `linkOpenedAt` | datetime | When the viewer first opened the link. `null` if not opened. |
| `lastOtpSentAt` | datetime | When the last code was sent. |
| `otpSentCount` | number | How many codes were sent. |
| `viewCount` | number | How many times the card was shown. |
| `maxViews` | number | The `MaxViews` value. `null` if not set. |
| `firstViewedAt` | datetime | When the card was first shown. |
| `lastViewedAt` | datetime | When the card was last shown. |
| `endedAt` | datetime | When the session ended before it expired. `null` otherwise. |
| `endReason` | string | `Customer` (you ended it) or `MaxViews` (the last allowed view was used). `null` if not ended. |
| `locked` | boolean | `true` while code entry is locked after too many wrong codes. |
| `metadata` | string | The `Metadata` value. `null` if not set. |

All times are UTC. The response holds no card data and no phone number.

```json 200 theme={null}
{
  "requestId": "s4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG",
  "status": "CardShown",
  "createdAt": "2026-01-12T14:00:00Z",
  "expiresAt": "2026-01-12T14:15:00Z",
  "linkOpenedAt": "2026-01-12T14:02:10Z",
  "lastOtpSentAt": "2026-01-12T14:02:30Z",
  "otpSentCount": 1,
  "viewCount": 1,
  "maxViews": 3,
  "firstViewedAt": "2026-01-12T14:03:05Z",
  "lastViewedAt": "2026-01-12T14:03:05Z",
  "endedAt": null,
  "endReason": null,
  "locked": false,
  "metadata": "BOOKING-12345"
}
```


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