---
title: "Request a cryptogram"
method: POST
path: "/network-tokens/{network_token_id}/cryptograms"
tags: ["Network Tokens"]
---

# Request a cryptogram

`POST /network-tokens/{network_token_id}/cryptograms`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/network-tokens/{network_token_id}/cryptograms`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `string` scopes: `vault:network-tokens`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/network-tokens/:network_token_id/cryptograms/post.ts> (a function with typed inputs; its response is checked against the schema)

<span style="font-size: 12px; font-weight: 500; color: rgb(0, 0, 0); background-color: rgb(255, 176, 97); border-radius: 4px; padding: 2px 6px" >Beta</span><p></p>
Using network token ID as an input, this endpoint returns token cryptogram.

## Path parameters

- `network_token_id` string, required

## Request body

- NetworkTokensCryptogramRequest
  - `transaction_type` 'ecom' | 'recurring' | 'pos' | 'aft', required: Transaction type the cryptogram is requested for.

## Response `201`

Cryptogram from the network token

- NetworkTokensCryptogramResponse
  - `cryptogram` string, required: The cryptogram from the network token. Will only be refreshed for active network tokens and returned when the network token isn't declined or pending
  - `eci` string: Electronic Commerce Indicator (ECI) from the issuer.
  - `_links` object
    - `self` Link
      - `href` string, required: The link URL
    - `network-token` Link
      - `href` string, required: The link URL

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Network Token not found
- `422`: Invalid data was sent
- `500`: Internal Server Error
- `502`: Bad Gateway
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
