# Connect Zapier to SAM.gov data

To connect Zapier to SAM.gov data, add a Webhooks by Zapier Custom Request (or GET) step that calls https://samgovapi.io/api/v1/... with an Authorization: Bearer header, or use MCP Client by Zapier with Server URL https://samgovapi.io/api/mcp, transport Streamable HTTP, OAuth set to No and your key as the Bearer Token.

Zapier is the quickest way to land SAM.gov data in a spreadsheet, CRM or chat channel on a schedule. Its MCP Client app, in beta, can also run a samgovapi tool as an action. Zapier's own MCP product works in the other direction and is not what you need here.

- Connects with: MCP or REST
- MCP server: https://samgovapi.io/api/mcp
- REST base: https://samgovapi.io/api/v1
- Auth: Authorization: Bearer <key>, kept in SAMGOVAPI_API_KEY

## Get a key

Free key at https://samgovapi.io/sign-up, or have the agent call start_signup and approve the link it shows you. Zapier has no environment variables; the key lives in the connection or the header field. Use a dedicated key you can revoke.

## Set up Zapier

1. REST route: Webhooks by Zapier: Choose Custom Request, method GET, the URL with its query string, and a header Authorization with the value Bearer followed by your key.

Custom Request:

```
Method: GET
URL: https://samgovapi.io/api/v1/recompetes?naics=541512&months_ahead=12&limit=100
Headers:
  Authorization  Bearer sg_...
```

2. MCP route: MCP Client by Zapier: Connect with Server URL, Transport Streamable HTTP, OAuth No, and the Bearer Token field. Then use Run Tool with a tool name such as registration_status and its arguments, including user_request.

## Finish account setup once

Data tools unlock after the account answers its onboarding questions: ask the agent to set up your samgovapi account (get_onboarding_questions, then answer_onboarding). Free.

## Check that it works

Ask: "Is UEI ZXBCU6K5KL99 registered in SAM.gov, and when does its registration expire?"

Expected tool call:

```json
{"name":"registration_status","arguments":{"id":"ZXBCU6K5KL99","user_request":"check a registration and its expiry"}}
```

## Things to know

- With OAuth set to Yes in MCP Client, Zapier ignores the Bearer Token field.

## Troubleshooting

- 401 from the webhook step: The header name must be Authorization and the value must start with Bearer.
- MCP Client cannot list tools: Set OAuth to No so the Bearer Token is sent.
- Rows arrive as one line item: Add Looping by Zapier over the data array.

## Questions

### Which is cheaper in Zapier tasks?

A single webhook step returning many rows is usually fewer tasks than repeated tool runs.

## Official documentation

- Zapier: send webhooks in Zaps: https://help.zapier.com/hc/en-us/articles/8496326446989
- Zapier: MCP Client by Zapier: https://help.zapier.com/hc/en-us/articles/38777069364109

Checked 2026-11-13. All guides: https://samgovapi.io/agents.md

Independent. Not affiliated with, endorsed by or sponsored by GSA, SAM.gov or any U.S. government agency. Registering in SAM.gov is free at sam.gov.
