External Accounts
Request Plaid Link token
Creates a Plaid Link token that can be used to initialize Plaid Link in your application. The Link token is used to authenticate the customer and allow them to select their bank account.
Async Flow:
- Platform calls this endpoint to get a link_token and callbackUrl
- Platform displays Plaid Link UI to the end customer using the link_token
- End customer authenticates with their bank and selects an account
- Plaid returns a public_token to the platform
- Platform POSTs the public_token to the callbackUrl
- Lightspark exchanges the public_token with Plaid and creates the external account asynchronously
- Platform receives a webhook notification when the external account is ready
post/plaid/link-tokens
Request body
Example request
{
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001"
}Response
Link token created successfully
Example response
{
"linkToken": "link-sandbox-af1a0311-da53-4636-b754-dd15cc058176",
"expiration": "2025-10-05T18:30:00Z",
"callbackUrl": "https://api.lightspark.com/grid/2025-10-13/plaid/callback/{plaid_link_token}",
"requestId": "req_abc123def456"
}