Skip to content
Comms.ID
Esc
↑↓navigate↵open⌘Jpreview
On this page

Install company

Install company

These examples use published, verified artifacts. Keep signing keys on your server.

Script tag

The relay is a route on your server. It signs calls as your registered app.

<script src="https://cdn.comms.id/company/1.2.0.js" integrity="sha384-CrMx0G+/QLXHJnBZUIiFlCMqqXYm82LFr7ZaDUFdG6NTJG0ZFCM+0S2mJfy8Tahb" crossorigin="anonymous"></script>
<comms-id-company relay="/api/comms-id/company"></comms-id-company>

React

pnpm add @comms-id/company-react@0.2.2 @comms-id/company@0.5.0
import { createCompanyBrowserClient } from "@comms-id/company/browser";
import { CompanyLookup } from "@comms-id/company-react";

const client = createCompanyBrowserClient({ relayUrl: "/api/comms-id/company" });
export const Example = () => <CompanyLookup client={client} />;

Server SDK

pnpm add @comms-id/company@0.5.0
import { createCompanyClient } from "@comms-id/company/server";
const client = createCompanyClient({
  clientId: process.env.COMMS_ID_CLIENT_ID!,
  privateJwk: JSON.parse(process.env.COMMS_ID_PRIVATE_JWK!),
});

See the operation reference for request, response and command-line examples.

Relay

Install the server relay into your relying-party app:

pnpm dlx comms-id add company-relay

Agent tools

Product tools are served at https://mcp.comms.id. The documentation MCP serves documentation only; it does not execute product operations.

Operations

Read the search API reference.

lookup

Read the lookup API reference.

Upgrading

Upgrade guide.

Was this page helpful?