Create token
Create a new token in the PCI DSS scope. See PCI Tokens overview for creation sources (session vs pan) and compliance levels.
Authorizations
JWT bearer token obtained via the OAuth2 client-credentials grant from the platform Authentication API. The token's scopes gate the endpoints it may call, and its audience names the Guardian instance. This is the standard way to authenticate to Guardian.
Body
Where the PCI token is created from. type selects the variant.
- From Session
- From PAN
How many seconds after creation the token expires automatically.
1 <= x <= 25920003600
Metadata consisting of key-value entries.
- Maximum 20 key-value pairs.
- Maximum 20 characters per key.
- Maximum 80 characters per value.
Response
Success response
- Session
- Token
Which variant you get follows the request's source.type, and the two carry no shared tag field — tell them apart by shape.
- A
sessionsource returns the Session object (session_idonly); collect the card client-side with it, then read the token back. - A
pansource returns the Token itself.
"0f2c8f7e-4d2a-4d1b-9a6e-1c9b2d3e4f50"