# isCorrelatableId
Source: https://docs.maelstrom-ai.co/dev/reference/connectors/functions/iscorrelatableid/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **isCorrelatableId**(`value`): `value is MessageId`

Defined in: [packages/connectors/src/utils.ts:18](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/connectors/src/utils.ts#L18)

Determines whether a parsed wire value can identify a protocol message for request correlation.

Protocol IDs cross the wire without the compile-time `@maelstrom-co/protocol` `MessageId` brand, so decoded fields must be checked before they are used to address a correlator. This guard accepts strings containing at least one non-whitespace character, including whitespace-padded strings. It rejects empty or whitespace-only strings and every non-string value.

The accepted values satisfy the same non-empty invariant as the `MessageId` constructor. The guard does not trim or otherwise transform the value; a successful check only narrows the original value to `MessageId`.

## Parameters

### value

`unknown`

## Returns

`value is MessageId`
