Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Lob

Scalekit connector
Open markdown

The Lob connector lets your AI agent act in each user's Lob account. Each user connects their own Lob API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 63 tools.

Tools
63
What they doRead · write · destructive
31 · 21 · 1131 read21 write11 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Lob connection

    In AgentKit > Connections, create a Lob connection. The name you give it is the connection_name your code passes. See Configure connections.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • lob_autocomplete_us_addressSuggest US street addresses that match a typed prefix, optionally filtered by city, state or ZIP.Read-only

    Autocomplete US Address

    Suggest US street addresses that match a typed prefix, optionally filtered by city, state or ZIP. Returns an object with `suggestions`, each holding a `primary_line`, `city`, `state` and `zip_code`. Use autocomplete_us_address for type-ahead address entry. Use verify_us_address to confirm a full address.

    Inputs

    address_prefixstringrequired
    Street number and street name typed so far, alphanumeric only. Example: `210 King`.
    casestring
    Casing of suggestions: `upper` (default) or `proper`.one of upperproper
    citystring
    City to filter suggestions by. Case insensitive; partial names do not match.
    statestring
    State to filter suggestions by. Case insensitive.
    valid_addresses_onlyboolean
    If true, every suggestion is a valid deliverable address. If false (default), suggestions may need verification.
    zip_codestring
    ZIP code to filter suggestions by. Partial entries match.
  • lob_get_addressRetrieve one saved address by ID.Read-only

    Get Address

    Retrieve one saved address by ID. Returns the address record with name, company, address lines, city, state, zip, country and metadata. Use get_address when you already have an `adr_` ID. Use list_addresses to browse.

    Inputs

    address_idstringrequired
    ID of the address, prefixed with `adr_`.
  • lob_get_bank_accountRetrieve one bank account by ID.Read-only

    Get Bank Account

    Retrieve one bank account by ID. Returns the bank account with `id`, masked `account_number`, `routing_number`, `signatory` and `verified`. Use get_bank_account to check verification status before creating a check.

    Inputs

    bank_account_idstringrequired
    ID of the bank account, prefixed with `bank_`.
  • lob_get_billing_groupRetrieve one billing group by ID.Read-only

    Get Billing Group

    Retrieve one billing group by ID. Returns the billing group with `id`, `name`, `description` and dates. Use get_billing_group when you have a `bg_` ID.

    Inputs

    billing_group_idstringrequired
    ID of the billing group, prefixed with `bg_`.
  • lob_get_campaignRetrieve one campaign by ID.Read-only

    Get Campaign

    Retrieve one campaign by ID. Returns the campaign with `id`, `name`, `schedule_type`, `is_draft`, `creatives` and `uploads`. Use get_campaign to inspect a campaign's state before sending it.

    Inputs

    campaign_idstringrequired
    ID of the campaign, prefixed with `cmp_`.
  • lob_get_checkRetrieve one check by ID, including tracking events.Read-only

    Get Check

    Retrieve one check by ID, including tracking events. Returns the check record with `to`, `from`, `amount`, `bank_account`, `check_number`, `send_date`, `expected_delivery_date`, `tracking_events` and `url`. Use get_check to see the status of a check you created.

    Inputs

    check_idstringrequired
    ID of the check, prefixed with `chk_`.
  • lob_get_creativeRetrieve one campaign creative by ID.Read-only

    Get Creative

    Retrieve one campaign creative by ID. Returns the creative with `id`, `resource_type`, `details`, `template_preview_urls` and `campaigns`. Use get_creative to inspect or preview a creative.

    Inputs

    creative_idstringrequired
    ID of the creative, prefixed with `crv_`.
  • lob_get_credits_balanceRetrieve the Lob credits balance of the account.Read-only

    Get Credits Balance

    Retrieve the Lob credits balance of the account. Returns an object with the `balance` of Lob credits. Use get_credits_balance to check available credits before a large mailing.

    Inputs

    This tool takes no inputs.