Skip to content

Function: parseOrganizationKey()

ts
function parseOrganizationKey(organizationKey: string): OrganizationConfig;

Defined in: src/data-store/index.ts:35

Parse an organization key string into slug and token.

Parameters

ParameterTypeDescription
organizationKeystringKey in the format slug:token.

Returns

OrganizationConfig

The parsed slug and tokens array.

Example

ts
const { slug, tokens } = parseOrganizationKey('matterway:abc123');
// slug === 'matterway'
// tokens === ['abc123']

Matterway Assistant SDK Documentation