Tokens

Create access tokens for embed use cases.

post
Create token

https://{sub-domain}.trustswiftly.com/account/api/users/{id}/token
Create a users clientToken to enable use of the embedded functionality.
Request
Response
Request
Headers
Authorization
required
string
API Key is used for server-to-server communication to fetch sensitive data that you already have access to.
Response
200: OK
{
"token": "MnxMeUwxUUxUWXFQTFdObVhPTm1FYnFlU1cxZ2IwOElzcE9qUmdUN1Ra"
}
cURL
cURL
curl --location --request POST 'https://{sub-domain}.trustswiftly.com/account/api/users/2/token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1|GqRQaD0nMBmGkIKLiPuOPLAckxhupWyjVEZKjsj1'

delete
Delete token

https://{sub-domain}.trustswiftly.com/account/api/users/{id}/token
Request
Response
Request
Headers
Authorization
required
string
API Key is used for server-to-server communication to fetch sensitive data that you already have access to.
Response
200: OK
cURL
cURL
curl --location --request DELETE 'https://{sub-domain}.trustswiftly.com/account/api/users/2/token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1|GqRQaD0nMBmGkIKLiPuOPLAckxhupWyjVEZKjsj1'