Skip to main content

What Are API Endpoints?

API Endpoints let you trigger automations from external systems. Turn any process into a REST API that can be called from:
  • Webhooks
  • Cron jobs
  • Other applications
  • CI/CD pipelines
  • Custom integrations
API Endpoints page

Creating an Endpoint

1

Go to API Endpoints

Navigate to API Endpoints in the sidebar
2

Click Create Endpoint

Hit the + Create Endpoint button
3

Configure the Endpoint

4

Save

Click Create to generate the endpoint

Endpoint URL Structure

Your endpoints follow this pattern:
For example:

Authentication

All API endpoints require authentication via the X-Granite-API-Key header:
Never expose your API key in client-side code or public repositories. Keep it server-side only.

Passing Parameters

Send parameters as JSON in the request body:
These parameters are available to your automation during execution.

Testing Endpoints

Test your endpoint directly from the dashboard:
1

Open the Endpoint

Click on the endpoint you want to test
2

Enter Test Parameters

Fill in the parameter form with test values
3

Click Test

The endpoint will be called and you’ll see the response

Example Test Response

Response Formats

Synchronous (Wait for Result)

Add ?wait=true to wait for completion:
Response:

Asynchronous (Fire and Forget)

Default behavior returns immediately:
Then poll for status:

Endpoint Settings

API-triggered automations typically run without HITL approval for full automation. Configure carefully.

cURL Examples

The dashboard generates ready-to-use cURL commands:

Error Responses

Error Response Format

Monitoring Endpoint Usage

Track your API usage in the Analytics dashboard:
  • Total calls - How often the endpoint is called
  • Success rate - Percentage of successful invocations
  • Avg latency - Response time
  • Top callers - If using multiple API keys

Next Steps

API Management

Create and manage API keys

Public API Guide

Deep dive into API integration