The Create Session Creation Token API generates a new session creation token for existing transactions. A new session creation token is required when the old token has expired and the transaction is still valid.
Syntax
POST /api/transaction/transaction_id/token
Examples
Example request
POST /api/transaction/00000000-0000-0000-0000-000000000000/token HTTP/1.1
Host: onespan.com
Accept: application/json, text/javascript
Sample payload:
{
"role": "unknown"
}
Example response
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
{
"token": "<token key>",
"role": "unknown"
}
Headers
The following headers are included in the request and the response:
Request headers
Accept: The response content type depends on the Accept header.
Authorization: The OAuth/JWT token to authenticate.
Response headers
Content-Type: application/json