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

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:Authentication
All API endpoints require authentication via theX-Granite-API-Key header:
Passing Parameters
Send parameters as JSON in the request body: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:
Asynchronous (Fire and Forget)
Default behavior returns immediately: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:- Basic
- With Parameters
- Wait for Result
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