v4
OpenAPI 3.0.12026-07-3189233676.2 KBBridge Token
Create a bridge token
The endpoint creates a bridge token for a user. This is typically the endpoint called before initializing the Bridge since the response from this call is passed to the TruvBridge.init function.
post/v1/users/{user_id}/tokens/
Request body
Example request
{
"tracking_info": "any data for tracking current user",
"product_type": "income",
"allowed_products": [
"income"
],
"company_mapping_id": "99dd17074ac94aa9ace2621d657c7610",
"provider_id": "adp",
"access_token": "99dd17074ac94aa9ace2621d657c7610",
"account": {
"action": "create",
"account_number": "16002600",
"routing_number": "123456789",
"account_type": "checking",
"bank_name": "TD Bank",
"bank_address": "123 Main St, New York, NY 10001",
"deposit_type": "entire",
"deposit_value": "50.00"
},
"template_id": "99dd17074ac94aa9ace2621d657c7610",
"use_case": "mortgage_lending",
"request_extended_history": true,
"locale": "es",
"data_sources": [
"payroll"
]
}Response
Example response
{
"bridge_token": "2f67984a110747d190c39e1022c81837",
"tracking_info": "any data for tracking current user",
"client_name": "Truv Demo",
"product_type": "income",
"allowed_products": [
"income",
"deposit_switch"
],
"company_mapping_id": "99dd17074ac94aa9ace2621d657c7610",
"access_token": "99dd17074ac94aa9ace2621d657c7610",
"user_id": "99dd17074ac94aa9ace2621d657c7610",
"template_id": "99dd17074ac94aa9ace2621d657c7610",
"data_sources": [
"payroll"
]
}