Generate a terms of service token

Generates a non-expiring token that can then be used to accept Moov’s terms of service.

This token can only be generated via API. Any Moov account requesting the collect-funds, send-funds, wallet, or card-issuing capabilities must accept Moov’s terms of service, then have the generated terms of service token patched to the account. Read more in our docs.

GET
/tos-token
cURL Go JavaScript
1
2
curl -X GET "https://api.moov.io/tos-token" \
  -H "Authorization: Bearer {token}" \
1
2
3
mc, _ := moov.NewClient()

mc.AccountCreationToken(ctx)
1
2
3
const moov = new Moov(credentialsObject);

moov.generateToken(scopes, accountID)
200 422
The newly generated terms of service token.
An encrypted value used to record acceptance of Moov’s Terms of Service.
{
  "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4"
}
Required request headers were missing or contained unprocessable data

Headers

origin

string
Indicates the domain from which the request originated. Required if referer header is not present.

referer

string
Specifies the URL of the resource from which the request originated. Required if origin header is not present.

Response

application/json
An encrypted value used to record acceptance of Moov’s Terms of Service.

token

string