Smile Wink is Smile API's Account Linking service: it lets people share their identity, income and employment data with your organisation, with their explicit permission.
The flow runs in the Wink Widget, a JavaScript-based client SDK that opens as a modal in your web or mobile app. The user finds their employer (or uploads documents), signs in over an encrypted connection, and Smile reads, normalises and stores the data for you — you never implement a provider's login flow yourself.
This page is the overview. There are three ways to collect data, and embedding the Wink Widget is the one that matters — it is what Wink Widget Quick Start builds end to end: your app opens the widget, your backend mints the Link token, and the linked account comes back to you with its datapoints. The other two — see Invitations and Wink Sites.
| Page | What it covers |
|---|---|
| Wink Widget Quick Start | The shortest path to a working integration, in seven steps |
| Sample Apps | Runnable Web, Android, iOS, React Native and Flutter samples |
| Widget Reference | Embed options, callbacks and widget versions |
| Data and Webhooks | How the data reaches you, webhooks and retention |
| Invitations and Wink Sites | Collect data without embedding the widget |
How the widget works
Every path runs the same sequence. Every message is numbered in the order it happens, and the four participants — your app, the widget, your backend and Smile — show who is responsible for each one.
sequenceDiagram
participant Mobile as Mobile App
participant SDK as Wink Widget
participant Server as Your Backend
participant Smile as Smile API Service
Server->>Smile: 1. request a Link token (POST /users)
Smile-->>Server: 2. return the short-lived Link token
Server-->>Mobile: 3. hand the Link token to the app
Mobile->>SDK: 4. initialise SmileLinkModal and call open()
SDK->>Smile: 5. open the widget session<br/>provider → credentials, OTP or documents
Smile-->>SDK: 6. return the connection result
SDK-->>Mobile: 7. onAccountConnected({ accountId, userId, providerId })
Smile-->>Server: 8. webhook TASK_STARTED
Smile->>Smile: 9. read the provider data and store the datapoints
Smile-->>Server: 10. webhook TASK_FINISHED
opt only if 10 never arrived
Server->>Smile: 11. GET /tasks?sourceId={accountId}
Smile-->>Server: 12. status = Finished
Server->>Smile: 13. GET /accounts/{id}/payload
end
Server-->>Mobile: 14. return the verified employment data
Note over Mobile: 15. show the result screen
Where each sequence sits
| Sequence | Who runs it | What happens |
|---|---|---|
| 1–3 | You — backend | Request the Link token, receive it, hand it to the app. |
| 4 | You — client | Initialise SmileLinkModal with the token and call open(). |
| 5–6 | Wink Widget and Smile | The widget session runs end to end — provider selection, credentials, OTP or documents — and Smile reads the provider data, then returns the connection result. |
| 7 | Wink Widget | Fires onAccountConnected with the accountId, userId and providerId. |
| 8 | Smile → your server | Sends TASK_STARTED — the data sync has started for the account. |
| 9 | Smile | Reads the provider data and stores the datapoints. |
| 10 | Smile → your server | Sends TASK_FINISHED — the datapoints are stored and ready. |
| 11–13 | You — backend, only if 10 never arrives | List the account's tasks with GET /tasks?sourceId=<accountId>; once a task's status is Finished, pull GET /accounts/{id}/payload. See Data and Webhooks. |
| 14–15 | You — app | Return the verified data to the client and show the result screen. |

The composite above, screen by screen
| Screen | Sequence | What the applicant sees |
|---|---|---|
| 1 | 3–4 | Your app entry point. The applicant taps START VERIFY; your app initialises SmileLinkModal with the Link token and calls open(). |
| 2 | 5 | Provider selection — the widget lists the providers available to the applicant. |
| 3 | 5 | Credential entry — the applicant signs in, answers MFA or uploads documents, and Smile authenticates with the provider. |
| 4 | 6–7 | Connection complete — Smile returns the connection result and the widget fires onAccountConnected. |
| 5 | 14–15 | Your app's result screen, rendered by you rather than the widget. It shows the employment details your backend has already received, either in the TASK_FINISHED webhook payload or from GET /accounts/{id}/payload. |
Chargeable Events
Billing is based only on successful account connections. You may retrieve user data for connected accounts any number of times without extra charges.
| Condition | Billable |
|---|---|
Account successfully connected (CONNECTED) | Yes |
Account disconnected after a successful connection (DISCONNECTED) | Yes |
Account revoked after a successful connection (REVOKED) | Yes |
| Retrieve available user data via API call | No |
| Subscribe to and receive webhook notifications | No |
Once an account has successfully connected, it will be billed regardless of subsequent disconnection or revocation.
Rate and Quota Limitations
Smile limits the amount of API calls that can be made to each endpoint to ensure the stability and availability of the platform, and quota limitations are also in place to ensure system stability and fair usage.
See Rate Limits and Quota Management for more information.
Next steps
- Wink Widget Quick Start — seven steps from an empty project to a working integration.
- Sample Apps — the same flow in runnable Web, Android, iOS, React Native and Flutter samples.
- Widget Reference — embed options, all nine callbacks, and the widget versions.
- Data and Webhooks — webhooks, the payload endpoint, and how long Smile keeps the data.
- Invitations and Wink Sites — the two paths that need no widget code.

