> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paubox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Install the Paubox Node.js SDK and send your first HIPAA-compliant email in minutes.

<Steps>
  <Step title="Install the SDK">
    ```bash theme={null}
    npm install --save paubox-node
    ```
  </Step>

  <Step title="Set your credentials">
    Create a `.env` file in your project root:

    ```bash theme={null}
    API_KEY=YOUR_API_KEY
    API_USERNAME=YOUR_USERNAME
    ```

    The SDK loads these automatically. To obtain credentials, see [Authentication](/node-sdk/authentication).
  </Step>

  <Step title="Send your first email">
    Create `send.js`:

    ```javascript theme={null}
    const pbMail = require('paubox-node');

    async function main() {
      const service = pbMail.emailService();

      const message = pbMail.message({
        from:         'sender@yourdomain.com',
        to:           ['recipient@example.com'],
        subject:      'Your first Paubox email',
        text_content: 'This message was sent with the Paubox Node.js SDK.'
      });

      const response = await service.sendMessage(message);
      console.log('Sent. Tracking ID:', response.sourceTrackingId);
    }

    main().catch(console.error);
    ```

    Run it:

    ```bash theme={null}
    node send.js
    ```

    ```
    Sent. Tracking ID: abc123-def456-...
    ```
  </Step>

  <Step title="Check delivery status">
    ```javascript theme={null}
    const disposition = await service.getEmailDisposition(response.sourceTrackingId);

    for (const delivery of disposition.data.message.message_deliveries) {
      console.log(`${delivery.recipient} → ${delivery.status.deliveryStatus}`);
    }
    ```

    ```
    recipient@example.com → delivered
    ```
  </Step>
</Steps>

## Next steps

* [Email client](/node-sdk/email-client): bulk send, attachments, dynamic templates, error handling
* [Forms client](/node-sdk/forms-client): retrieve form schemas and submit responses
