# PUBLIC_IDENTITY_IS_INVALID: Contact identity is not valid (unknown, deleted, unauthorized or expired). Log the customer in again.

- Category: Public API
- HTTP status: 401
- Reference: https://docs.bizkithub.com/en/errors/PUBLIC_IDENTITY_IS_INVALID

## What happened

The `identityId` does not resolve to an active login session of a contact in the organisation behind the API key. The same answer is returned for every failure reason so identities cannot be probed.

## Example response

```json
{
  "state": "error",
  "code": 401,
  "message": "Contact identity is not valid (unknown, deleted, unauthorized or expired). Log the customer in again.",
  "errorCode": "PUBLIC_IDENTITY_IS_INVALID",
  "hint": "The `identityId` does not resolve to an active login session of a contact in the organisation behind the API key. The same answer is returned for every failure reason so identities cannot be probed.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_IDENTITY_IS_INVALID"
}
```
