requestToken Reference for Legacy Packages

This document applies only to API integrations in legacy packages. To get an access token for OAuth 2.0 API integrations, review Set Up Your Development Environment for Enhanced Packages.

For your authentication requests, we recommend that you use a tenant-specific endpoint, which includes your tenant’s subdomain. Find your endpoints in Installed Packages. New and existing customers on S1 through S10 can continue to use https://auth.exacttargetapis.com.

To obtain an OAuth token, perform an HTTP POST that includes your client ID and client secret in the request body.

NameTypeDescription
legacyBooleanSet to 1 to return a legacy token.

The JSON object in the request body has these properties.

NameType Description
clientIDString
clientSecretString
accessTypeString
refreshTokenString

The HTTP POST with valid values for clientID and clientSecret returns two values:

  1. accessToken - An OAuth token passed to subsequent API requests.
  2. expiresIn - The expiration period of the OAuth token in seconds. The default value of 3600 seconds cannot be changed.