Custom API Call in Power Automate
PDF4me Custom API Call action enables making direct API calls to PDF4me from Power Automate for specialized operations beyond standard connector actions. This advanced integration feature allows specifying custom feature paths, method names, and request body parameters, providing access to the full PDF4me API capabilities including experimental features, beta endpoints, and specialized document processing operations across Microsoft 365 workflows.
Authenticating Your API Request
To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's complete API suite.

Key Features
- Direct API Access: Call any PDF4me API endpoint directly
- Custom Parameters: Specify method-specific parameters
- Advanced Features: Access features not available in standard actions
- Flexible Integration: Build custom document processing workflows
- Beta Feature Access: Test and use experimental API capabilities
Parameters
Complete list of parameters for the Custom API Call action. Configure these parameters to control API requests.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Feature path*** | String | API Method Name • Method name of feature to be called • Should match PDF4me API endpoint path • Case-sensitive endpoint identifier • Reference API documentation for paths | /Pdf/Optimize |
| body | String | Request Body JSON • JSON body content for API request • Include method-specific parameters • Format as valid JSON string • Optional for GET requests | {"quality":"high"} |
Output
The PDF4me Custom API Call action returns output based on the specific API feature called:
- Dynamic Output
- Common Patterns
- Flow Integration
Feature-Dependent Output
Output varies based on the API feature called:
- Response format depends on the endpoint
- Can return binary file content, JSON data, or status information
- Refer to PDF4me API documentation for specific endpoint responses
- Use dynamic content parsing in subsequent actions
Common Response Patterns
Typical response structures:
{
"File Content": "[Binary Content]",
"Status": "Success",
"Message": "Operation completed"
}
Or
{
"Data": {...},
"JobId": "job_123"
}
Power Automate Flow Usage
Use custom API results in subsequent actions:
- Parse JSON: Parse response data for processing
- Conditional Logic: Route based on API response
- Error Handling: Handle API errors and retries
- Data Extraction: Extract specific fields from response
- File Processing: Use returned file content in workflows
- Status Tracking: Monitor operation completion
Workflow Examples
The PDF4me Custom API Call action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Advanced Operations
- Beta Features
- Bulk Operations
- Error Handling
Custom PDF Processing Workflow
Access specialized PDF4me features with custom API calls:
Complete Workflow Steps:
- Trigger: Document requires specialized processing not in standard actions
- Get Document: Retrieve PDF from SharePoint
- Prepare Body: Format JSON body with custom parameters
- Custom API Call: Execute specialized PDF4me endpoint
- Parse Response: Extract result data from API response
- Validate Output: Check processing completed successfully
- Save Result: Store processed document
- Notify User: Send completion notification with results
Business Benefits:
- Enables 50+ specialized operations monthly
- Accesses full PDF4me API capabilities
- Provides flexibility for unique requirements
- Enables custom document processing workflows
Beta Feature Testing Workflow
Test and utilize PDF4me beta features with custom calls:
Complete Workflow Steps:
- Trigger: New PDF4me beta feature available for testing
- Get Test Document: Retrieve sample PDF for testing
- Prepare Parameters: Format beta feature parameters
- Custom API Call: Execute beta endpoint
- Capture Response: Log complete API response
- Validate Results: Check beta feature output
- Report Findings: Send test results to development team
- Archive Test Data: Store test documents and responses
Business Benefits:
- Tests 10+ beta features quarterly before general release
- Provides early access to new capabilities
- Enables feedback to PDF4me development
- Accelerates adoption of new features
Custom Bulk Processing Workflow
Optimize bulk processing with custom API parameters:
Complete Workflow Steps:
- Trigger: Batch of documents ready for specialized processing
- Get Document List: Retrieve all documents from folder
- Apply to Each: Process each document
- Prepare Custom Body: Format document-specific parameters
- Custom API Call: Execute with optimized settings
- Collect Results: Aggregate all operation results
- Generate Summary: Create processing summary report
- Email Team: Send completion report with statistics
Business Benefits:
- Processes 100+ documents with custom parameters monthly
- Enables fine-tuned processing control
- Optimizes API usage for bulk operations
- Provides detailed operation tracking
Advanced Error Handling Workflow
Enhance reliability with custom API error management:
Complete Workflow Steps:
- Trigger: Document processing failed in standard action
- Get Failed Document: Retrieve document from error queue
- Try Custom API: Attempt with custom endpoint and parameters
- Catch Errors: Implement try-catch error handling
- Parse Error Message: Extract detailed error information
- Retry Logic: Implement exponential backoff retry
- Fallback Processing: Use alternative API method if needed
- Log Resolution: Record error handling success
Business Benefits:
- Recovers 30+ failed operations monthly
- Implements robust error handling strategies
- Reduces processing failures by 70%
- Maintains workflow reliability
Industry Use Cases & Applications
Software Development
- API Testing: Test new PDF4me API features and endpoints
- Custom Integrations: Build specialized document processing integrations
- Feature Exploration: Access advanced API capabilities
- Performance Optimization: Fine-tune API parameters for workflows
Enterprise Operations
- Advanced Processing: Execute complex document operations
- Bulk Optimization: Optimize large-scale document processing
- Custom Workflows: Build unique document automation workflows
- Integration Enhancement: Extend standard connector capabilities
Compliance & Governance
- Specialized Compliance: Access compliance-specific API features
- Custom Validation: Implement custom document validation
- Audit Trail Enhancement: Capture detailed operation metadata
- Regulatory Features: Use jurisdiction-specific API capabilities
Research & Development
- Feature Testing: Evaluate new PDF4me capabilities
- Proof of Concept: Build custom document processing POCs
- Innovation Projects: Explore advanced API functionalities
- Custom Solutions: Develop tailored document workflows