Back to top
Vastuu Group

Create oAuth and Authorization Flow

Version: 1.0
Last updated: Feb. 18, 2021
Reading time: 6 min


The Login API provides means for completing OAuth flow and reading information about logged in user via Platform of Trust's login app.

Note: All endpoints for Login portal API have following base URL -


  • Allows completing authorization flow for logged in users.
  • Allows reading information for logged-in users.
  • Allows converting authorization code to access token.
  • Aids to create oAuth flow in registered apps in the platform.

POST request for authorization flow, converting authorization code to access token

curl -i --request POST \
  --url "" \
  --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9eyJzY29w...DVs5aaf" \
  --header "content-type: application/json" \
  --data "{ }"

GET information on the currently logged in user

curl -i --request GET \
  --url \
  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9eyJzY29w...DVs5aaf'

NOTE: checkout to see required parameters in the requests to the Identity API and code samples in Java, Python and JavaScript.

API Specification

Download Open API Specification (OAS) for Login here

Download RESTful API Modeling Language (RAML) specifications for Login here

API Documentation

Checkout API endpoint, HTTP calls and associated parameters in details at

Developer Guide

Read on how to get your Bearer Token to start accessing and using Platform of Trust APIs in this Guide

Read more about creating oAuth 2.0 flow in registered apps in our Integrate OAuth 2.0 to access APIs guide

Read about Platform of Trust Sandbox in this guide.

Profiles in Other Platforms


Questions and Feedback

Have a question on Login API? Shoot it in Platform of Trust Stack Overflow community page.

Did Login API miss some features? Make a Wish in GitHub.

Did we miss something? Make a Wish1

Tell us in GitHub

See all APIs