Forum Discussion
API_User
3 years agoEquinix Employee
Fabric API generate token using client_credentials
I am trying to generate token using this method but in Postman:
Access Token using grant_type = client_credentials (Recommended).
POST 'https://api.equinix.com/oauth2/v1/token' -H "content-type:...
- 3 years ago
Got it, used wrong credentials
access_token=`curl -s --request POST \
--url https://${endpoint_url}/oauth2/v1/token \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"client_id":"'${client_id}'","client_secret":"'${client_secret}'","grant_type":"client_credentials"}' \
| jq -r '.access_token'`
API_User
3 years agoEquinix Employee
Nice, glad you got this one. Should have replied when I was able to get it working in Postman, few hours later posting this message 🙂 .
Used raw rather than json as it is normally in a cli.
Used raw rather than json as it is normally in a cli.
Related Content
- 6 years ago
- 2 years ago
Recent Discussions
Featured Places
Discussions
Engage with industry experts, share insights, ask questions, and grow your network.Ideas
Share your ideas and help shape the future of Equinix!Groups
Ready to collaborate? Join a Group or upcoming beta program.What's New
Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.Events
Your Guide to Upcoming Events - Online, Hybrid, and In-Person!