[draft] Auth: OAuth2.0/OAuth2.0 Get Access Token
draft_auth_oauth2_0_oauth2_0_get_access_tokenExchange an OAuth2 authorization code and client credentials for an access token, enabling authenticated API calls.
Instructions
This endpoint is used to get the access_token
It requires the following secret client credentials to be sent as part of the form body along with the authentication code obtained as part of the redirect_uri from the previous request.
code: xWnkliVQJURqB2x1
grant_type: authorization_code
redirect_uri: https://www.getpostman.com/oauth2/callback
client_id: abc123
client_secret: ssh-secret
If the correct credentials are not passed, the server returns with a 401 Unauthorized response.
(Postman request: [draft] Auth: OAuth2.0/OAuth2.0 Get Access Token | POST https://postman-echo.com/oauth2/token)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "draft_auth_oauth2_0_oauth2_0_get_access_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | No | formdata fields |