```
{
"authorize": {
"qs": {
"scope": "api",
"client_id": "{{ifempty(parameters.clientId, common.clientId)}}",
"redirect_uri": "{{oauth.redirectUri}}",
"response_type": "code"
},
"url": "https://height.app/oauth/authorization",
"response": {
"temp": {
"code": "{{query.code}}"
}
}
},
"token": {
"url": "https://api.height.app/oauth/tokens",
"body": {
"scope": ["api"],
"code": "{{temp.code}}",
"client_id": "{{ifempty(parameters.clientId, common.clientId)}}",
"grant_type": "authorization_code",
"redirect_uri": "{{oauth.redirectUri}}",
"client_secret": "{{ifempty(parameters.clientSecret, common.clientSecret)}}"
},
"method": "POST",
"headers": {
"content-type": "application/json"
},
"type": "json",
"response": {
"data": {
"expires": "{{body.expires_at}}",
"accessToken": "{{body.access_token}}",
"refreshToken": "{{body.refresh_token}}"
},
"expires": "{{body.expires_at}}",
},
"log": {
"sanitize": ["request.body.code", "request.body.client_secret", "response.body.access_token", "response.body.refresh_token"]
}
},
"refresh": {
"condition": "{{data.expires < addMinutes(now, 15)}}",
"url": "https://api.height.app/oauth/tokens",
"body": {
"scope": ["api"],
"client_id": "{{ifempty(parameters.clientId, common.clientId)}}",
"grant_type": "refresh_token",
"redirect_uri": "{{oauth.redirectUri}}",
"client_secret": "{{ifempty(parameters.clientSecret, common.clientSecret)}}",
"refresh_token": "{{data.refreshToken}}"
},
"method": "POST",
"headers": {
"content-type": "application/json"
},
"type": "json",
"response": {
"data": {
"expires": "{{body.expires_at}}",
"accessToken": "{{body.access_token}}",
"refreshToken": "{{body.refresh_token}}"
},
"expires": "{{body.expires_at}}",
},
"log": {
"sanitize": ["request.body.client_secret", "request.body.refresh_token", "response.body.access_token", "response.body.refresh_token"]
}
},
"info": {
"url": "https://api.height.app/workspace",
"headers": {
"authorization": "Bearer {{connection.accessToken}}"
},
"response": {
"uid": "{{body.id}}",
"metadata": {
"type": "text",
"value": "{{body.user}}"
}
},
"log": {
"sanitize": ["request.headers.authorization"]
}
},
"invalidate": {
"url": "https://height.app/oauth/invalidate",
"headers": {
"authorization": "Bearer {{connection.accessToken}}"
},
"log": {
"sanitize": ["request.headers.authorization"]
}
}
}
```