Skip to main content

What is the Public API?

The Public API lets you trigger Granite automations from anywhere:
  • Webhooks from other services
  • Cron jobs and schedulers
  • CI/CD pipelines
  • Custom applications
  • Integrations

How It Works

Quick Example

Key Concepts

Endpoints

Custom URLs for your automations

API Keys

Authentication credentials

Invocation

How to call your endpoints

URL Structure

Authentication

All API requests require an API key:
Keep API keys secret. Never expose them in client-side code.

Response Modes

Default behavior - returns immediately with a run ID:
Poll for status later.

Common Use Cases

Rate Limits

Security Best Practices

All Granite API endpoints use HTTPS. Never downgrade.
Create new keys and deprecate old ones every 90 days.
If one is compromised, only that integration is affected.
Check Analytics for unexpected patterns.

Next Steps

Create Endpoints

Set up your first endpoint

API Keys

Generate and manage keys