Getting Started

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.

PageWhat it covers
Wink Widget Quick StartThe shortest path to a working integration, in seven steps
Sample AppsRunnable Web, Android, iOS, React Native and Flutter samples
Widget ReferenceEmbed options, callbacks and widget versions
Data and WebhooksHow the data reaches you, webhooks and retention
Invitations and Wink SitesCollect data without embedding the widget

Checklist


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

SequenceWho runs itWhat happens
1–3You — backendRequest the Link token, receive it, hand it to the app.
4You — clientInitialise SmileLinkModal with the token and call open().
5–6Wink Widget and SmileThe widget session runs end to end — provider selection, credentials, OTP or documents — and Smile reads the provider data, then returns the connection result.
7Wink WidgetFires onAccountConnected with the accountId, userId and providerId.
8Smile → your serverSends TASK_STARTED — the data sync has started for the account.
9SmileReads the provider data and stores the datapoints.
10Smile → your serverSends TASK_FINISHED — the datapoints are stored and ready.
11–13You — backend, only if 10 never arrivesList 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–15You — appReturn the verified data to the client and show the result screen.
Wink Widget end-to-end journey: start verification, select provider, log in, connection complete, verified data received

The composite above, screen by screen

ScreenSequenceWhat the applicant sees
13–4Your app entry point. The applicant taps START VERIFY; your app initialises SmileLinkModal with the Link token and calls open().
25Provider selection — the widget lists the providers available to the applicant.
35Credential entry — the applicant signs in, answers MFA or uploads documents, and Smile authenticates with the provider.
46–7Connection complete — Smile returns the connection result and the widget fires onAccountConnected.
514–15Your 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


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.

ConditionBillable
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 callNo
Subscribe to and receive webhook notificationsNo

Once an account has successfully connected, it will be billed regardless of subsequent disconnection or revocation.



Rate Limits


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