Bridge Token
Create a bridge token
Changed onThe 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
- Base URLhttps://prod.truv.com
- URLhttps://prod.truv.com/v1/users/{user_id}/tokens/
- AuthAPI key in header X-Access-Client-Id and API key in header X-Access-Secret
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"
]
}Changes
- info
added the new
mhenum value to the request property
- info
- warning
the
request property's maxLength was set to32 - warning
the
request property's maxLength was set to64 - warning
the
request property's maxLength was set to32 - warning
the
request property's maxLength was set to255
- warning