# API Recipes - New API Request Trigger
This trigger creates a new API endpoint and runs when a new API request is received. Once configured, the endpoint can be called in other recipes or third-party systems as an API Platform endpoint.
# Requirements
To use this trigger, you need:
- Access to the API Platform feature. If you don't see this option in the Tools menu, reach out to your Customer Success Manager.
# Input
The New API request trigger has two types of input fields:
- Request - Fields that define how requests sent to the endpoint are structured.
- Response - Fields that define the structure of responses the endpoint sends to requests.
# Input Request Fields
The fields in the Request section define how requests sent to the endpoint are structured.
| Field | Description |
|---|---|
| Content type | Defines the data format of the request. Choose `application/json`, `text/plain` or `multipart/form-data`. Use `multipart/form-data` to upload large attachments (up to 5GB). |
| Request header | Defines the parameters request headers must have. |
| Request schema | Defines the expected schema request bodies must have. |
# Processing Binary Content
Multipart data may contain binary data, including images and pdf files. You must ensure that these files are in utf-8 encoding format. Workato recipe string processing supports utf-8.
# Input Response Fields
The fields in the Response section define the structure of responses the endpoint sends to requests.
| Field | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Content type | Defines the data format of the response. Defaults to JSON if left blank. | ||||||||
| Response header | Defines the parameters response headers will have. | ||||||||
| Responses |
Defines the possible responses to a request sent to the endpoint.
This field also has some additional sub-fields:
|
# Output
| Field | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Context | Metadata about the API request. This field also has some additional sub-fields:
| ||||||||||||||
| Request | Contains details about the request's content type and body. This field also has some additional sub-fields:
|
# Additional Resources
Last updated: 5/21/2025, 5:22:32 AM