H

HCP API

REST discovered

Details
URL
https://api.cloud.hashicorp.com
Docs
https://developer.hashicorp.com/hcp/docs/hcp/api
Authentication
HCP service principal client credentials oauth2_cc discovered Set up OAuth ↗
Authorization: Bearer <credential>

Create a service principal and key following Create a service principal. Save the client_id and client_secret, then exchange them at https://auth.idp.hashicorp.com/oauth2/token with grant type client_credentials and audience https://api.hashicorp.cloud as described in HCP API Overview. Use the returned bearer access token for API calls.