Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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