Stage Category: APPLY (1-1 Enrichment)Transformation: N documents → N documents (same count, expanded schema)
When to Use
When NOT to Use
Parameters
Required Parameters
Optional Parameters
Authentication Types
- Bearer Token
- API Key
- Basic Auth
- Custom Header
OAuth 2.0, JWT tokens - Most modern APIs (GitHub, OpenAI, Stripe)Adds header:
Authorization: Bearer {secret_value}Error Handling
Configuration Examples
Security
Security Best Practices
- Never use
*in allowed_domains - Explicitly list each domain - Never store credentials in configuration - Always use
auth.secret_refto reference vault secrets - Set rate limits - Prevent abuse and excessive costs
- Use HTTPS - HTTP URLs are automatically upgraded
- Audit configurations - Review before deployment to prevent data exfiltration
Storing Secrets
Performance
Template Variables
URLs, headers, and body values support template variables:Call api_call from the API
Add the stage to a retriever’sstages array as {"stage_name": "<your label>", "stage_type": "apply", "config": {"stage_id": "api_call", "parameters": {...}}}. The parameters are the ones on this page.
- Create Retriever (
POST /v1/retrievers) saves a retriever that runs the stage. - Execute Ad-hoc Retriever (
POST /v1/retrievers/execute) runs stages without saving a retriever. - List Available Retriever Stages (
GET /v1/retrievers/stages) returns every stage’s parameter schema.
Related
- SQL Lookup - For database enrichment
- Document Enrich - For collection joins
- Organization Secrets - Managing API credentials

