Skip to main content


The /login API is used to authenticate a user with BankID (FI).


To use the login API, the following request is sent to the API.

POST /v2/{api-key}/fi/login
"refID": "string reference",
"secretKey": "123456"
refIDNorefID is contextual data. It's used for identification on the client's side. Whatever string of data is entered here, will be availible in the verification response. See Verify.
secretKeyYesSecret key to be used for increased security. Provided by IDkollen on request.


IDkollen will respond with HTTP status 201 for successful request, or 4xx/5xx on errors. The loginLink that's returned in the response is then supplied to the end user to use for identifying him- or herself with.

HTTP/2.0 201 Created
"loginLink": ""
loginLinkloginLink is the link that the end user will use to identify him- or herself with.

Code redirect:

Once the end user has logged in, they will be redirected to the redirect URL provided to IDkollen by you, including a "code" parameter used to retrieve the data response from the identification, in the Verify step. If the parameter "refID" vas used in the request, it will also be included in the redirect.