Get OAuth token
Returns an OAuth token. This is the final step of the flow. Needs a valid authorization code that was generated from the consent screen. Also needs the client_id and client_secret of the application.
POST
/v1/hq/oauth/tokenQuery Parameters
client_id*string
Example
""client_secret*string
Example
""grant_type*string
Format
enumValue in
"authorization_code" | "refresh_token"code?string
Example
"7awdXwZoedakjad37a"refresh_token?string
Example
"7awdXwZoedakjad37a"Response Body
application/json
curl -X POST "https://api.noona.is/v1/hq/oauth/token?client_id=&client_secret=" \ -H "Content-Type: application/json" \ -d '{ "grant_type": "authorization_code" }'{
"token_type": "Bearer",
"expires_at": "2020-08-24T14:15:22Z",
"access_token": "7awdXwZoedakjad37a7awdXwZoedakjad37a7awdXwZoedakjad37a",
"refresh_token": "7awdXwZoedakjad37a7awdXwZoedakjad37a"
}