> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blujay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# INVALID_PUBLIC_ID

> Invalid ID

| HTTP status | Retryable |
| - | - |
| `400` | No |

## What happened

An ID in the request is malformed or has the wrong prefix for this resource, for example a `contact_` ID where a `chat_` ID is expected.

## How to fix it

Use the exact ID returned by the API for that resource type.

## Example response

An illustrative example. The `message` wording and the contents of `details` vary; branch on `error.code`.

```json theme={null}
{
  "status": "error",
  "error": {
    "code": "INVALID_PUBLIC_ID",
    "message": "Invalid ID",
    "type": "validation",
    "http_status": 400,
    "retryable": false,
    "doc_url": "https://docs.blujay.io/errors/invalid-public-id",
    "details": []
  },
  "trace_id": "trc_8f2a1c0e4b7d",
  "timestamp": "2026-10-14T17:30:48.000Z"
}
```

## Still stuck?

Email [support@blujay.io](mailto:support@blujay.io) with the `trace_id` from the error response. See [Errors](/errors.md) for the response format.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.