Quick Start: Tokenize a Card via API
This guide walks through the minimum steps required to tokenize a credit card using the Firstoken API.
Step 1: Create an API Key
Log in to the Sandbox Firstoken Console.
Navigate to Keys and click Add API Key.
Complete the following fields:
Name
Any identifying name (e.g., my-first-key).
Permissions
Select Tokenize card(s).
IP Whitelist
Click Add IP, enter 0.0.0.0/0, and confirm.
Click Create. A modal displays your API Key ID.
Important: The API Key ID is shown only once. Copy and store it immediately — it cannot be retrieved after closing this modal.
Step 2: Tokenize a card
Make a POST request to the Simple Tokenization endpoint using your API Key ID in the x-api-key header.
Endpoint
POST https://api.firstoken-staging.co/v1/tokenization/simpleHeaders
Request body
Response
The token value in the response is your permanent token. The original card number is never returned.
Next steps
View and manage your tokens from the Firstoken Console under Tokens.
For the full API reference, see Simple Tokenization.
To transmit card data to a third party using the token, see Proxy API.
Last updated