Skip to main content
You can get all companies you’ve interacted with in your workspace using the companies query. This endpoint supports Pagination. For this query you need the following permissions:
  • company:read
  • Typescript SDK
  • GraphQL
import { PlainClient } from '@team-plain/typescript-sdk';

const client = new PlainClient({ apiKey: 'plainApiKey_xxx' });

const res = await client.getCompanies({
  first: 25,
});

if (res.error) {
  console.error(res.error);
} else {
  console.log(res.data);
}
I