> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/developer-tools/snyk-api/using-specific-snyk-apis/webhooks-apis/guides-to-webhooks/how-to-use-snyk-webhooks-to-connect-snyk-to-slack-with-aws-lambda/aws-lambda-setup-set-up-the-trigger/with-api-gateway/aws-api-gateway-deploy-the-post-method.md).

# AWS API Gateway: deploy the POST method

Deploy with configured POST method so the AWS Lambda function can start receiving the information.

Follow these steps to deploy the POST method:

1. Go to the **Resources** tab.
2. Click **POST**.
3. On the **Actions** tab, click **Deploy API**.

   <figure><img src="https://lh3.googleusercontent.com/MVnbbBF4_quh1tD-sWln5t7RdNn6kui43IRi_KHshS-jKEDVkFmsf9IpAI7Ly1Eo6ZPLnVx3WTZJ13qJdTKPWm9vr2FU1ERamyAo7N1-687QeGswSozAvB9eo8oyafqCdoDxt4nlGSDZBoyh2zf6ONWZDnN656UyodXV07glWvxCfBlkfPf7Sz8HLg" alt=""><figcaption><p>AWS API Gateway POST method Resources, Action tab with Deploy API selected</p></figcaption></figure>
4. Select the **Deployment stage** to which you want to deploy the new API, in this case, the **default** stage.

   <figure><img src="https://lh6.googleusercontent.com/xiLxfQ4yO5vb39TKW84JQe8X05sZ01stYMXtY9H8w-V2vad54nEtBI94mYQBUnGGMrmp0aEiMrn5OA9xtDnqH3BjS1UyrE0Bxsx6-Oui3XW5vxi15x0AN-rMZCWHgi2NEhNxOc-PkYbpFCJLn6n88wfDetGwi19ka0ZojM2cNLyEjeGPugScFtAcww" alt=""><figcaption><p>AWS Gateway Deploy API to default stage</p></figcaption></figure>
5. Navigate back to your Lambda function and In the Lambda trigger configuration, verify you see a new API endpoint.
6. Copy the API endpoint from the API Gateway boxes (obscured) for use in setting up the Snyk webhook.

   <figure><img src="https://lh4.googleusercontent.com/EOoL3PCnKMj0HI6jkRdVsE44DwAcnFN8M8jM3Obp_FA5AXTryIHTMtGn66LlSTquVfH__0wVfjKV5bUTCxwgJzClgcdPqFTrtaq57NCd-eKBoSgFFHN49Fdqw8OsBLQai5pFsGQwGhcNpqIeto4fmXozicUeJ2A25wkh81HVmxrQH53IS-oEZZTlmQ" alt=""><figcaption><p>AWS Lambda function trigger configuration showing new endpoint</p></figcaption></figure>
7. Now that the API endpoint is saved, set up the Snyk Webhook.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.snyk.io/developer-tools/snyk-api/using-specific-snyk-apis/webhooks-apis/guides-to-webhooks/how-to-use-snyk-webhooks-to-connect-snyk-to-slack-with-aws-lambda/aws-lambda-setup-set-up-the-trigger/with-api-gateway/aws-api-gateway-deploy-the-post-method.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
