Terraform · Authentication Profile

Terraform Authentication

Authentication

Terraform secures its APIs with http across 1 declared security scheme, as derived from its OpenAPI definitions.

Infrastructure as CodeCloud InfrastructureDevOpsOpen-SourceHashiCorp
Methods: http Schemes: 1 OAuth flows: API key in:

Security Schemes

bearerAuth http
scheme: bearer

Source

Authentication Profile

Raw ↑
generated: '2026-06-20'
method: searched
source: openapi/hcp-terraform-openapi.yml
docs: https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/api-tokens
summary:
  types:
  - http
  api_key_in: []
  oauth2_flows: []
schemes:
- name: bearerAuth
  type: http
  scheme: bearer
  description: >-
    Bearer token authentication. HCP Terraform issues three token kinds — user
    tokens (act as a user), team tokens (scoped to a team's permissions), and
    organization tokens (one per org, for org-level automation). Tokens are sent
    as `Authorization: Bearer <token>`. The public Terraform Registry API needs
    no authentication for discovery/download.
  token_types: [user, team, organization]
  header: Authorization
  docs: https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/api-tokens
  sources:
  - openapi/hcp-terraform-openapi.yml
notes: >-
  The Terraform Registry API (registry.terraform.io) is unauthenticated for
  public module/provider read and download. HCP Terraform also acts as an OIDC
  identity provider (well-known/terraform-app-openid-configuration.json) for
  workload identity / dynamic provider credentials — that is token issuance for
  runs, distinct from API authentication.

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/terraform-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.