Start trial

Call Masheev from your code.

One typed client for inboxes, conversations, contacts, AI agents and knowledge. Keep the key on your server, or use the same client in React Native.

From $18/month for your whole team after the trial. Card required. No charge if you cancel within 14 days. Available to businesses in the UK and US.

server.ts

import { createServerApiClients } from "@masheev/client/server";

// Keep the key on your server, out of browser code and git.
const apiKey = process.env.MASHEEV_API_KEY;
if (!apiKey) throw new Error("MASHEEV_API_KEY is required");
const { apiClient } = createServerApiClients({
  baseURL: "https://api.masheev.com",
  apiKey,
});
const orgId = "org_123";

// Inputs and outputs are inferred end to end
const { conversations } = await apiClient.conversations.list.query({
  orgId,
  status: "open",
});
const first = conversations[0];
if (first) {
  await apiClient.messages.create.mutate({
    orgId,
    conversationId: first.id,
    role: "agent",
    content: "Thanks for getting in touch. How can we help?",
  });
}

App.tsx

import * as SecureStore from "expo-secure-store";
import { createNativeMasheevClient } from "@masheev/client/native";

// The same typed client in an Expo or React Native app
const { apiClient, authClient } = createNativeMasheevClient({
  scheme: "masheev",
  storage: SecureStore,
});

const conversations = await apiClient.conversations.list.query({
  orgId: "org_123",
  status: "open",
});

Three entry points

Same client, wherever it runs.

Server

Sign in with an API key from your backend. The key stays out of browser code.

@masheev/client/serverAPI keyapi.masheev.com
React

Hooks for a signed-in browser session, with the same types as the server.

@masheev/client/reactSessionapi.masheev.com
React Native

Sign-in and secure storage for Expo apps, so mobile uses the same API.

@masheev/client/nativeSession in secure storageapi.masheev.com

What it covers

Typed, scoped, in your region.

Typed end to end

@masheev/client infers inputs and outputs for inboxes, conversations, messages, contacts, AI agents and knowledge, so you never write response types by hand.

API keys or sessions

Use API-key bearer auth from your server or a session in the browser, with separate entry points for React, servers and Expo. Permissions are scoped to your organization.

EU and US data regions

Data is stored in the region you choose, and contact export and anonymization endpoints help you answer data-subject requests.

Programmable AI agents

Create and configure AI agents over the API, including instructions, knowledge, tools and guardrails, and attach them to your channels.

Frequently asked questions

Still have questions?

What can I do with the Masheev API?

Manage supported workspace resources in code: inboxes, conversations, messages, contacts, AI agents, knowledge bases and escalations. The @masheev/client package infers inputs and outputs end to end; durable custom webhooks are not available yet.

Is there a REST API or just the client?

The type-safe client is the recommended interface. The widget also exposes REST endpoints for sessions and messages, and the MCP server can discover and call API endpoints at runtime. For most server integrations, @masheev/client/server with an API key is the simplest path.

Does it work in React Native?

Yes. @masheev/client/native wraps authentication and data fetching for Expo apps, so mobile work uses the same API. The React and server entry points cover the web and your backend.

How is data handled for compliance?

Your conversation data is stored in the EU or US region you choose. AI, voice and messaging providers process it as listed on our sub-processors page, and some of them are outside that region. The API includes contact export and anonymization endpoints, consent tracking and audit logging, so you can handle data-subject requests in code.

Get your key.


Get an API key

From $18/month for your whole team after the trial. Card required. No charge if you cancel within 14 days. Available to businesses in the UK and US.