Skip to content

Instantly share code, notes, and snippets.

@naveenvm93
Created July 10, 2020 05:06
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 naveenvm93/4dddee65e06e339f0d23f193b4623f41 to your computer and use it in GitHub Desktop.
Save naveenvm93/4dddee65e06e339f0d23f193b4623f41 to your computer and use it in GitHub Desktop.
POST URL - https://xxxxxx.auth.marketingcloudapis.com/v2/token
Header :
Key - Content-Type
Value - application/json
Body:
{
"grant_type": "client_credentials",
"client_id": "Your Client Id",
"client_secret": "Your Client Secret",
"account_id": "MID"
}
Response:
{
"access_token": "Your Access Token",
"token_type": "Bearer",
"expires_in": 1079,
"scope": "offline documents_and_images_read documents_and_images_write saved_content_read saved_content_write automations_execute automations_read automations_write journeys_execute journeys_read journeys_write email_read email_send email_write web_publish web_read web_write audiences_read audiences_write list_and_subscribers_read list_and_subscribers_write data_extensions_read data_extensions_write file_locations_read file_locations_write tracking_events_read webhooks_read webhooks_write ott_chat_messaging_read ott_chat_messaging_send event_notification_callback_create event_notification_callback_read event_notification_callback_update event_notification_callback_delete event_notification_subscription_create event_notification_subscription_read event_notification_subscription_update event_notification_subscription_delete tracking_events_write",
"soap_instance_url": "https://xxxxxxx.soap.marketingcloudapis.com/",
"rest_instance_url": "https://xxxxxxx.rest.marketingcloudapis.com/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment