Create access token

There is a fourth arm this endpoint accepts, not described above because it is not for a TPP: the
employee sign-in of the Virtual Printer. It is chosen by the request carrying NO Authorization
header together with grant_type=authorization_code, a code_verifier and a client_id, which is
how a public client exchanges its one-time code.

  • Authentication: none. A public client holds no secret, which is the whole point of the proof
    key: the code_verifier must hash to the code_challenge the authorization request carried.

  • Required fields: grant_type=authorization_code, client_id, code, code_verifier,
    redirect_uri. The client, the return address and the proof must all match what the code was minted
    for, and the code is spendable exactly once.

  • Returns: access_token, token_type, expires_in, scope, and a user block naming the
    signed-in employee: user_id, email, full_name, role, company_id, company_name. The printer
    reads a session with no identity as nobody being signed in, so the block is not optional and an
    identity that cannot be resolved refuses the exchange instead. It comes from console-2-backend,
    on the same read that answers the application bar. No refresh token: renewal is a separate ticket
    in the milestone (RD-1025 onwards), and until it lands an employee signs in again. The renewal
    answer has to carry the same block, or the printer blanks its identity strip on first renewal.

  • The user block is deliberately absent from the published response schema above, which the three
    TPP arms share: no application token ever receives it.

  • Only a client registered in internal_oauth_clients may use it, so a TPP cannot, which is why it
    is described here rather than in the published description. Publishing it is RD-1038, when the
    feature ships.

The access token API endpoint is used to get an access token. It enables the TPP to authenticate to the Fintecture Authentication Server.

There are 2 types of grant_types, authorization_code and client_credentials, depending if you require access to the AIS, PIS, Customers, E-Mandates or OAC resources.

In case of an AIS scope it is provided in exchange to the code received in the /authorize endpoint. For the PIS, Customers, E-Mandates and OAC ones, it will be granted according to client credentials.

Once provided, validity of access token is 1h.

Check the guides to know more:

⚠️ Beta: The OAC (Organisation Access Credentials) token and all related endpoints are currently in beta and available only to selected clients.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Choose an example:
application/json