Step Two Authorize the Request Token

The application sends a GET request to the user authorization endpoint. Include the oauth_token parameter obtained in the response in Step One.

The format of the URL is:


where <accountID> is a variable for your NetSuite account ID.


You should use the account-specific domain URL as shown. However, as of 2020.1, if you do not know the account ID, requests can be sent to the domain.

Redirect Parameters for Step Two

The user is redirected to the oauth_callback URL (from Step One), with the oauth_token and the oauth_verifier parameters.

The following is an example of a redirect:






An authorized request token to be used in Step Three.


An attribute to be used in Step Three.


NetSuite account ID (company identifier).


Indicates the role for which to grant the access token.


The entity ID of a successfully authenticated system user.


If the optional state parameter value does not match the value originally passed to NetSuite, the client should not trust the request or redirect.

When the application has handled the callback URL, proceed to Step Three: Step Three Exchange the Request Token for an Access Token.

Related Topics

Token-based Authentication (TBA)
Token-based Authentication (TBA) Tasks for Administrators
Generating the Signature for the TBA Authorization Flow
Troubleshoot Token-based Authentication (TBA)
Troubleshoot Token-based Authentication (TBA)

General Notices