Skip to content

Kody is live

Watch the launch video — what Kody is, and why it exists.

← Public packages

@noah/hey-email

HEY.com email integration with Kody: search threads, read messages/attachments, create drafts, and send with explicit confirmation.

src/index.js

16 lines · 443 B · JavaScript
import { heyFetch } from './client.js'

/**
 * Smoke-test HEY auth and return the signed-in identity.
 * Use when verifying heyToken or as a cheap health check.
 *
 * @returns {Promise<{ id: number, name: string }>}
 *
 * @example
 * import identity from 'kody:@noah/hey-email'
 * const me = await identity()
 */
export default async function identity() {
  const data = await heyFetch('/identity')
  return { id: data.id, name: data.name }
}