API Getting Started
Create an API key, run your first utility request, and execute a saved JSON pipeline.
Forge Json API access is designed for server-side workflows: ingestion jobs, backend routes, scheduled syncs, data cleanup tasks, and LLM preprocessing. This guide starts from a new account and gets you to your first successful API calls.
The API guide in the app explains what the API can do. This page is the setup source of truth.
1. Create an API key
Sign in
Open Forge Json and sign in or create an account.
Open API Keys
Go to Dashboard -> API Keys .
Create a key
Click Create API Key, give the key a clear name, and choose permissions.
Use utilities when you want to run packaged utilities like schema.clean-json. Use pipelines when you want to execute saved pipelines. Select both permissions if one integration needs both capabilities.
Copy the key
Copy the generated key when it appears. Forge Json only shows the full key once.
Keep API keys on the server. Do not put a Forge Json API key in browser code, mobile apps, public repositories, or client-visible environment variables.
For local development, store the key in your shell or local environment manager:
export FORGEJSON_API_KEY="fje_your_api_key"
export FORGEJSON_BASE_URL="https://forgejson.com"2. Run your first utility request
Utilities are packaged JSON transformations. The fastest first call is schema.clean-json, which can trim strings and remove null fields from API responses.
curl -X POST "$FORGEJSON_BASE_URL/api/v1/utilities/schema.clean-json" \
-H "Authorization: Bearer $FORGEJSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"primary": {
"user": {
"name": " Ada ",
"email": null
}
}
},
"config": {
"trimStrings": true,
"removeNulls": true
}
}'This request uses the ForgeJSON pipeline format.
View the full specification →
A successful response returns the transformed JSON output:
{
"success": true,
"output": {
"user": {
"name": "Ada"
}
},
"durationMs": 3,
"creditsUsed": 1
}If this request returns 403, create a key with the utilities permission or update the integration to use a key that already has it.
3. Execute a saved JSON pipeline
Saved pipelines are reusable workflows built in the Forge Json pipeline editor. Use them when one utility is not enough, or when your team wants the same transformation to run consistently from the dashboard and from code.
Create or open a pipeline
Go to Dashboard -> Pipelines , create a pipeline, connect the steps, and save it.
Find the pipeline ID
Open the saved pipeline and copy the ID from the URL or API/curl export flow. The API route uses that value as {pipelineId}.
Run the pipeline
Send JSON inputs to the saved pipeline input nodes.
curl -X POST "$FORGEJSON_BASE_URL/api/v1/pipelines/pl_123/run" \
-H "Authorization: Bearer $FORGEJSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"default": {
"orders": [
{ "id": "A-100", "total": "19.99" }
]
}
}
}'If the pipeline has one input node and you send one input value, Forge Json can route that value to the single input. For multiple input nodes, use input names that match the saved pipeline.
Saved pipeline execution requires the pipelines permission. The pipeline must belong to the same account as the API key.
4. Use the API safely in production
- Store keys in a server-side secret manager or deployment environment.
- Use separate keys for development, staging, and production.
- Give each key only the permissions required by that service.
- Log the
utilityIdorpipelineIdwith each job so production behavior is auditable. - Set request timeouts around API calls from your application.
- Validate large payloads before sending them to the API.
- Rotate or revoke keys when teammates, vendors, or deployment targets change.
Troubleshooting
| Symptom | What to check |
|---|---|
401 Unauthorized | The Authorization header is missing, the key format is invalid, or the key was revoked. |
403 Forbidden | The key is valid but does not have the required utilities or pipelines permission. |
404 Not Found | The utility ID or pipeline ID is wrong, or the saved pipeline belongs to another account. |
413 Payload Too Large | The request body exceeds the API payload limit. Split or reduce the document. |
429 Too Many Requests | The key is over its rate limit. Retry after the reset window or reduce request volume. |
| Timeout | The transformation took too long. Try a smaller payload or simplify the pipeline. |
Next steps
- Authentication — API key format, permissions, rate limits, and auth errors
- Utility Execution — request and response details for utility runs
- Pipeline Execution — request and response details for saved pipeline runs