Skip to content

Instantly share code, notes, and snippets.

@wvpv
Last active March 12, 2019 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wvpv/88851d62a26a2ce554cbdb8b67cdb617 to your computer and use it in GitHub Desktop.
Save wvpv/88851d62a26a2ce554cbdb8b67cdb617 to your computer and use it in GitHub Desktop.
REST token request (OAuth 2.0)
POST /v2/token HTTP/1.1
Host: YOURENDPOINT.auth.marketingcloudapis.com
Content-Type: application/json
cache-control: no-cache
{
"grant_type": "client_credentials",
"client_id": "YOURCLIENTID",
"client_secret": "YOURCLIENTSECRET",
"scope": "email_read email_write email_send data_extensions_read data_extensions_write",
"account_id": "YOURMID"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment