Skip to content

SendGrid connects with a restricted API key. SendGrid's UI can't grant the teammates.read scope, so you add it with one API call before you connect.

Install the SendGrid integration

Install SendGrid from Available integrations in each environment you connect accounts from.

Create a SendGrid API key

  1. In SendGrid, open Settings → API Keys and click Create API Key. Choose Restricted Access, grant the access you need (for example User Account read access), click Create & View and copy the key. Note its API Key ID from the list. Create API Key in SendGrid API key name and Restricted Access User Account read access Copy the API key API Key ID in the list

  2. The SendGrid UI can't grant teammates.read. Create a temporary key with Full Access, and use it to run the call below with the first key's ID and its current name. List every scope the key should keep, because the call replaces them, for example ["teammates.read","user.account.read"].

    curl --request PUT 'https://api.sendgrid.com/v3/api_keys/<api_key_id>' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Bearer <full_access_api_key>' \
      --data '{
        "name": "<current name of the key>",
        "scopes": ["teammates.read", "user.account.read"]
      }'

    api_key_id is the ID of the key from step 1, and full_access_api_key is the temporary Full Access key.

  3. Delete the temporary Full Access key.

  4. Enter the first key on the Connect UI, as described below.

Connect a SendGrid account

  1. In Integrated Accounts, click Connect Account. Click Connect Account

  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on SendGrid, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link

  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own SendGrid account. The link works for 7 days, until an account is connected with it. Share connection link

  4. Click Get Started if it shows, then select SendGrid. Select SendGrid

  5. Fill in the form and click Connect:

    Field Required What to enter
    API Key Yes The restricted API key from Create a SendGrid API key.
  6. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.