H
HCP API
Details
- URL
-
https://api.cloud.hashicorp.com - Docs
- https://developer.hashicorp.com/hcp/docs/hcp/api
Authentication
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.