Skip to main content

Overview

Formal provides SDKs for programmatic access to the platform. Use SDKs to build custom tools, automation, and integrations.
For most infrastructure management tasks, use the Terraform provider instead of SDKs.

Official SDKs

The official Formal SDK for Go is available:

Features

  • Create, read, update, delete Formal objects
  • Query logs and sessions programmatically
  • Manage policies dynamically
  • Integrate Formal into CI/CD pipelines
  • Build custom dashboards and reports

REST API

Alternatively, use the Formal REST API directly:

Authentication

export FORMAL_API_KEY="your-api-key-here"

Example Requests

  • List Resources
  • Create User
  • Query Logs
curl -X GET "https://api.joinformal.com/v1/resources" \
  -H "X-API-KEY: $FORMAL_API_KEY"

API Documentation

See the API Reference for complete endpoint documentation.