Client Credentials Flow
Obtaining a Token
const axios = require("axios");
const CLIENT_ID = "5d24c3ac-ceae-405d-bf5f-12131fc92dc8";
const CLIENT_SECRET = "gs_...";
const customerorg = "ca7308e0-b666-4a87-8f7e-ec96040750bc";
axios
.post(
"https://{marketplace_url}/oauth/token",
new URLSearchParams({
grant_type: "client_credentials",
client_id: CLIENT_ID,
client_secret: CLIENT_SECRET,
target: customerorg,
}),
{
headers: { "Content-Type": "application/x-www-form-urlencoded" },
}
})
.then((response) => console.log(response.data))
.catch((error) => console.error(error));
Request Parameters
Parameter
Value
Response
Last updated