Comment on page
Fetch
The fetch method in your created integration allows you to handle incoming requests to your integration.
It can be defined in an async function inside the
createIntegration
call, and includes 2 arguments. The function should return a valid Response
.fetch: async (request, context) => {
return new Response(JSON.stringify(data), {
headers: {
"Content-Type": "application/json",
}
}
}
Context about your integration, including the environment and installation details the integration is running in.
This object contains the following keys:
Name | Description |
---|---|
environment | |
api |
Last modified 4mo ago