Post Access Token

post

Post Access Token

The token endpoint returns an access token along with an optional refresh token.

Resource URL

https://api.tdameritrade.com/v1/oauth2 /token

Body Parameters

Name Values Description
grant_type
(required)

The grant type of the oAuth scheme. Possible values are authorization_code, refresh_token

refresh_token

Required if using refresh token grant

access_type

Set to offline to receive a refresh token

code

Required if trying to use authorization code grant

client_id
(required)

OAuth User ID of your application

redirect_uri

Required if trying to use authorization code grant

Try it out !!

Request a token

HTTP Basic

OAuth 2.0

API Key

RESET

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Resource Summary

Security

Content Type

application/x-www-form-urlencoded

Category

Authentication

Response Summary

Resource Error Codes

HTTP Code

Description

400

An error message indicating the validation problem with the request.

401

An error message indicating the caller must pass valid credentials in the request body.

500

An error message indicating there was an unexpected server error.

403

An error message indicating the caller doesn't have access to the account in the request.

503

An error message indicating there is a temporary problem responding.

Working...