---
title: "Tokens"
description: "A **Token** is a reusable, PCI-safe reference to a customer's credit card."
url: "https://docs.komoju.com/en/api-reference#2025-01-28/tag/tokens"
source_url: "https://docs.komoju.com/en/api-reference/2025-01-28/resources/tokens.md"
language: en
api_version: "2025-01-28"
---

# Tokens

A **Token** is a reusable, PCI-safe reference to a customer's credit card. Tokens are created on the client with `komoju.js` (or an equivalent SDK) so that raw card data never touches your servers, and can then be exchanged server-side for a payment or attached to a customer for future charges.

## The Token object

A **Token** is a reusable, PCI-safe reference to a customer's payment
instrument (typically a credit card). Tokens are created on the client with
`komoju.js` so raw card data never touches your servers, then exchanged
server-side to create a payment or attach the card to a customer.

### Attributes

- **`id`** *string (UUID)* *required*

  A unique 25-character alphanumeric resource identifier.

- **`resource`** *string enum* *required*

  Resource type name, always "token".

- **`created_at`** *string* *required*

  Timestamp when the token was created.

- **`payment_details`** *object* *required*

### Example

```json
{
  "id": "string",
  "resource": "token",
  "created_at": "2025-01-15T10:10:00Z",
  "payment_details": {
    "type": "string",
    "email": "string",
    "phone": "string",
    "given_name": "string",
    "family_name": "string",
    "given_name_kana": "string",
    "family_name_kana": "string",
    "store": "string"
  }
}
```

## Endpoints

### Token: Create

- [POST /tokens](https://docs.komoju.com/en/api-reference/2025-01-28/create-token.md)

