What’s supported
Supported actions
This connector supports:- Proxy Actions, using the base URL
https://api.grain.com/_/public-api.
Notes
- Grain requires a
Public-Api-Versionheader on every API request, for examplePublic-Api-Version: 2026-10-01. Proxy calls must include it themselves. For available versions, see Grain’s versions documentation. - Grain connections use Grain’s default
personalscope, which gives the same access as the Grain user who authorizes the connection.
Example integration
To define an integration for Grain, create a manifest file that looks like this:Before you get started
To integrate Grain with Ampersand, you will need a Grain account. Once your account is created, you’ll need to request an OAuth client from Grain and obtain the following credentials:- Client ID
- Client Secret
Requesting a Grain OAuth client
- Contact Grain to request a Client ID and Client Secret for a server-side application. Grain issues these credentials manually; see Grain’s authentication documentation.
- Ask Grain to register
https://api.withampersand.com/callbacks/v1/oauthas the redirect URI prefix for your client. - Note the Client ID and Client Secret that Grain provides. You will need these to connect your app to Ampersand.
Add your Grain app info to Ampersand
- Log in to your Ampersand Dashboard.
-
Select the project where you want to create a Grain integration.

- Select Provider Apps.
- Select Grain from the Provider list.
- Enter the Client ID and Client Secret obtained from Grain.
- Click Save Changes.
Using the connector
To start integrating with Grain:- Create a manifest file like the example above.
- Deploy it using the amp CLI.
- Embed the InstallIntegration UI component. The UI component will prompt the customer for OAuth authorization.
- Start making Proxy Calls, and Ampersand will automatically handle the authentication with Grain.

