Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Pushinator

Scalekit connector
Open markdown

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

Tools
2
What they doRead · write · destructive
0 · 2 · 00 read2 write0 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 Pushinator connection

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

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'pushinator'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Pushinator:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'pushinator_channel_create',
    toolInput: { name: 'Deploy alerts' },
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their Pushinator credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • pushinator_channel_createCreate a Pushinator channel that people can subscribe to for notifications.Write

    Create Channel

    Create a Pushinator channel that people can subscribe to for notifications. Returns the created channel's properties, including its ID. Use this to set up a new notification stream. Use pushinator_notification_send to post to it.

    Inputs

    namestringrequired
    Name of the channel. Example: Server alerts.
    descriptionstring
    Description of the channel. Example: Alerts from the production servers.
  • pushinator_notification_sendSend a push notification to every subscriber of a Pushinator channel on iPhone, iPad and Android.Write

    Send Notification

    Send a push notification to every subscriber of a Pushinator channel on iPhone, iPad and Android. Returns success and a message saying the notification was created and is being sent. Use this to alert people subscribed to a channel. Use pushinator_channel_create first if the channel does not exist yet.

    Inputs

    channel_idstringrequired
    UUID of the channel to send to, from the channel page in the Pushinator console. Example: 3f9c1a2e-5b7d-4c8e-9f01-23456789abcd.
    contentstringrequired
    Message text of the notification. Example: Backup job finished successfully.
    acknowledgment_requiredboolean
    Ask subscribers to acknowledge the notification; unacknowledged notifications are resent up to 5 times (after 1, 2, 4, 8 and 16 minutes). Paid plans only; treated as false on the Free plan. Defaults to false. Example: false.