Skip to main content
Use this guide to make your first REST API request from a script, integration, or backend service.

Before you start

You need:
  • The base URL of your Figranium instance, such as http://localhost:11345.
  • An API key from Settings > API Keys.
  • A Task ID for the Task you want to run.
See Get Your Figranium API Key and API Scopes before creating a key for an integration.

1. Check the server

The health endpoint does not require authentication:
A healthy server returns 200 with a response containing "status": "ok".

2. Authenticate a request

Use the x-api-key header for scripts and server-side integrations:
Figranium also accepts Authorization: Bearer YOUR_API_KEY and the key header. If authentication is enabled, protected endpoints require one of these formats.

3. Trigger a Task

Send a POST request to the Task execution endpoint:
The request body is optional. Omit it when the Task uses its default variables.

4. Use a completion webhook

For asynchronous integrations, include webhookUrl instead of waiting for the request response:
Figranium sends a POST request after the Task finishes. The callback includes the execution ID, Task ID, status, duration, and result:
Webhook URLs are validated against the same SSRF rules as other outbound requests. Delivery failures are logged but do not change the execution result.

5. Inspect the result

Use the execution ID returned by the Task run to fetch execution details:
For a large result that was trimmed from the history record, request the complete payload from /api/executions/EXECUTION_ID/result.

Next steps