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

# Inbox API v1 object reference

> Fields, types, nullable values and examples for the Inbox API.

A **conversation** is one customer’s chat on one channel. A **message** belongs to one conversation. The same Neobiz member can have several conversations. Use `conversationId` to address the chat, `messageId` to identify a message and `customer.memberId` to correlate known customers within a tenant. For credentials, webhook verification and request examples, see the [integration guide](https://docs.neobiz.id/integrations/inbox-api.md).

Field names and string values below use JSON casing. UUIDs are JSON strings. A timestamp is an ISO 8601 string with a timezone offset. A type ending in `?` accepts JSON `null`. Examples use fictional data. Development hosts also publish the request and response schemas at `/swagger/v1/swagger.json`.

## Conversation (chat)

`GET /v1/inbox/conversations/{id}` returns this object. Each item in `GET /v1/inbox/conversations` has the same fields.

| Property | Type | Meaning |
| - | - | - |
| `conversationId` | UUID | Stable ID of this channel thread. Use it in the URL to read messages, reply or change ownership. |
| `channel` | string | Messaging channel. Values are `WhatsApp`, `Instagram` and `Messenger`. |
| `customer` | Customer | Customer identity for this thread. This object is always present. Its two fields are described under [Customer identity](#customer-identity). |
| `locationId` | UUID? | Business location associated with this conversation. Can be null for an account-level thread. |
| `status` | string | Inbox workflow state. `BotHandling` means Neo handles the thread, `RequiresHuman` puts it in the human queue, `Assigned` means a staff member owns it, `Snoozed` defers it and `Resolved` marks it complete. |
| `assignedToStaffId` | UUID? | Current staff assignee. Match this to an assignee’s `staffId`. Null when no individual owns the thread. |
| `serviceWindowExpiresAt` | timestamp? | End of the standard reply window, normally 24 hours after the last inbound message. Null when no window is recorded. |
| `humanAgentWindowExpiresAt` | timestamp? | End of the extended human-agent reply window on Instagram or Messenger, up to seven days after the last inbound message. Null on WhatsApp or when unavailable. |
| `snoozedUntil` | timestamp? | Recorded snooze deadline. Interpret it with `status` to determine whether the thread is currently snoozed. |
| `lastMessageAt` | timestamp? | Time of the most recent message activity recorded on the thread. Null when unavailable. |
| `updatedAt` | timestamp | Last recorded update to the conversation header. The conversation list filters this field with `updatedSince`. Individual messages have their own timestamps. |

```json theme={null}
{
  "conversationId": "945ade15-9428-4da9-93bb-7d63c3f2b0d0",
  "channel": "WhatsApp",
  "customer": {
    "memberId": "283b76fb-7a55-4119-9497-4c1724dd80fe",
    "displayName": "Mira"
  },
  "locationId": null,
  "status": "Assigned",
  "assignedToStaffId": "762f2c1e-a072-4174-9087-26cf49789dd5",
  "serviceWindowExpiresAt": "2026-12-03T08:40:00Z",
  "humanAgentWindowExpiresAt": null,
  "snoozedUntil": null,
  "lastMessageAt": "2026-12-02T08:40:00Z",
  "updatedAt": "2026-12-02T08:42:00Z"
}
```

### Customer identity

Every conversation embeds a `customer` object. The Inbox API exposes identity in the context of a thread and has no standalone customer lookup. Phone numbers, email addresses and provider account identifiers are outside this response.

| Property | Type | Meaning |
| - | - | - |
| `memberId` | UUID? | Tenant’s Neobiz member ID when the customer has been linked to a member. When null, use the parent `conversationId` to address the thread. |
| `displayName` | string? | Customer name or username recorded from the messaging channel. It can change, be shared by several people or be null. Use it for display. |

For an unlinked customer whose name is known, the same conversation field can contain:

```json theme={null}
{"memberId": null, "displayName": "Mira"}
```

## Message

`GET /v1/inbox/conversations/{id}/messages/{messageId}` returns one public message. The transcript endpoint returns a page of the same objects.

| Property | Type | Meaning |
| - | - | - |
| `messageId` | UUID | Stable Neobiz message ID. Use it with `conversationId` to match a webhook or reply receipt to the transcript. |
| `conversationId` | UUID | ID of the channel thread containing this message. |
| `authorType` | string | `customer` for an inbound customer, `human` for a staff reply, `ai` for an identified Neo reply or follow-up, and `automation` for other automated activity. Replies sent with an integration’s staff identity appear as `human`. |
| `authorId` | UUID? | Sender reference recorded on this message. For a customer it can be a member ID. For a human it can be a staff ID. It can be null, including for a reply sent from a merchant’s phone without an individual staff identity. |
| `contentType` | string | Message format. Known public values are described below. |
| `body` | string? | Text, caption, transcript or text representation available for this message. Can be empty for non-text content. Null when the message has been withdrawn. |
| `withdrawn` | boolean | True when the channel reported deletion or revocation. A client mirroring content should remove its cached body. |
| `deliveryStatus` | string? | Recorded outbound delivery state. `Pending` means awaiting an outcome, `Sent` means recorded as sent, `Delivered` means delivery was confirmed and `Read` means a read receipt was recorded. `Failed` records a failed attempt, which can include partial delivery. `Unknown` means the outcome could not be confirmed. Commonly null for inbound messages. |
| `createdAt` | timestamp | Time Neobiz created the message record. Transcript pagination orders by this field and then by message ID. |
| `sentAt` | timestamp? | Recorded send time, when known. For imported messages this may predate `createdAt` by months. |
| `editedAt` | timestamp? | Last recorded edit time. Null when no edit time is available. `body` reflects the current text. |
| `imported` | boolean | True for a message brought in through history import. It appears in the transcript without generating a live message trigger. |

```json theme={null}
{
  "messageId": "0cbd7774-7b47-44a3-a654-39903614a106",
  "conversationId": "945ade15-9428-4da9-93bb-7d63c3f2b0d0",
  "authorType": "customer",
  "authorId": "283b76fb-7a55-4119-9497-4c1724dd80fe",
  "contentType": "Text",
  "body": "Can you check the delivery time?",
  "withdrawn": false,
  "deliveryStatus": null,
  "createdAt": "2026-12-02T08:40:00Z",
  "sentAt": "2026-12-02T08:40:00Z",
  "editedAt": null,
  "imported": false
}
```

| Content type | Interpretation |
| - | - |
| `Text`, `Template`, `Interactive` | Plain text, a template message, or a message with interactive controls such as reply buttons. |
| `Media`, `Image`, `Document` | Media such as a voice note, a photo or a document. The public message object exposes the available text and format. Attachment download URLs and binary data are outside this response. |
| `Location` | A shared location. The Inbox message response omits structured coordinates. |
| `Campaign` | A snapshot of a campaign message in the transcript. |
| `StoryReply`, `StoryMention`, `Unsupported` | A reply to a story, a story mention, or a placeholder for content the channel could not supply. |

## Assignee

`GET /v1/inbox/assignees` returns a JSON array of active staff for the tenant. To assign a chat, send the selected entry’s `staffId` in the `assign` action.

| Property | Type | Meaning |
| - | - | - |
| `staffId` | UUID | Neobiz staff ID used for assignment and referenced by `assignedToStaffId`. |
| `primaryLocationId` | UUID? | Staff member’s primary business location, when set. |
| `firstName` | string? | Given name from the linked staff profile, when available. |
| `lastName` | string? | Family name from the linked staff profile, when available. |

```json theme={null}
[
  {
    "staffId": "762f2c1e-a072-4174-9087-26cf49789dd5",
    "primaryLocationId": null,
    "firstName": "Ari",
    "lastName": "Putra"
  }
]
```

## List page

| Property | Type | Meaning |
| - | - | - |
| `items` | array | Up to 100 conversation objects or 100 message objects, depending on the endpoint. An empty result has `[]`. |
| `next` | UUID? | Cursor for the next page. Pass the returned value as `after` on the same list with the same filters. Null on the final page. |

## Webhook event

Every callback uses this envelope. Its IDs point to the resources above. The [integration guide](https://docs.neobiz.id/integrations/inbox-api.md#2-receive-and-authenticate-events) includes a signed-request verification example and a sample payload.

| Property | Type | Meaning |
| - | - | - |
| `version` | integer | Envelope schema version. The current value is `1`. |
| `eventId` | UUID | Stable ID for this event across delivery attempts. Use it to deduplicate callbacks. One message may generate several distinct events. |
| `eventType` | string | Trigger name. Values are `message.created`, `message.updated`, `message.failed`, `conversation.updated` or `subscription.test`. |
| `occurredAt` | timestamp | Time Neobiz recorded the event. Delivery retries retain this timestamp. |
| `tenantId` | UUID | Neobiz tenant where the event originated. |
| `conversationId` | UUID? | Affected channel thread. Null for a subscription test. |
| `messageId` | UUID? | Affected message. Null for conversation updates and subscription tests. |
| `authorType` | string? | Same author classification as the referenced message. Null for conversation updates and subscription tests. |
| `channel` | string? | Messaging channel of the referenced thread. Null for a subscription test. |

## Reply and action payloads

| Object | Property | Type | Meaning |
| - | - | - | - |
| Reply request | `requestId` | UUID | Required, nonzero ID generated by the caller for one intended reply. Reuse it with the same credential, thread and text when retrying. |
| Reply request | `body` | string | Required, nonblank plain-text reply, up to 4,096 characters. |
| Reply receipt | `messageId` | UUID | ID of the recorded reply. Use it to retrieve the message or recognize its webhook. |
| Reply receipt | `status` | string | A successful initial send returns `Sent`. A repeated request returns the stored delivery state, or HTTP 202 with `Pending` while the outcome is uncertain. |
| Action request | `action` | string | Required command. Supported values are `claim`, `assign`, `handoffToTeam`, `handoffToNeo`, `snooze` and `resolve`. Success returns HTTP 204 with an empty body. |
| Action request | `staffId` | UUID? | Required for `assign`. Select an active staff ID in this tenant. |
| Action request | `until` | timestamp? | Required for `snooze`. Supply a future timestamp with a timezone offset. |

## Subscription objects

| Object | Property | Type | Meaning |
| - | - | - | - |
| Registration request | `displayName` | string | Required owner-facing label, up to 150 characters. |
| Registration request | `webhookUrl` | string | Optional public HTTPS callback URL, up to 500 characters. Embedded credentials and URL fragments are rejected. |
| Registration request | `actingStaffId` | UUID? | Required for write permissions. Active staff ID in this tenant. The integration acts as this operator on writes. |
| Registration, permission update and list entry | `configuredPermissions` | string\[] | Saved future module selections, such as `inventory:adjust`. These confer no active grants. On update, omission preserves the current selection and an empty array clears it. |
| Registration request and list entry | `permissions` | string\[] | Granted Inbox scope names. The list exposes effective permissions for legacy keys. |
| Registration request and list entry | `eventTypes` | string\[] | Selected Inbox webhook topics. Omitting this on combined registration selects all four supported topics. A key without an endpoint lists an empty array. |
| Subscription list entry | `actingStaffId` | UUID? | Operator used for write actions. |
| Registration response | `subscriptionId` | UUID | ID to use in the subscription management routes. |
| Registration response | `apiKey` | string | Integration key used in the `X-Neobiz-Api-Key` header. Returned once at registration. |
| Registration or rotation response | `webhookSecret` | string? | Null on key-only registration. Signing secret for verifying callbacks. Rotation returns the new secret. |
| Subscription list entry | `id` | UUID | Same value as the `subscriptionId` returned at registration. The list is a JSON array. |
| Subscription list entry | `displayName` | string | Owner-facing label supplied at registration. |
| Subscription list entry | `webhookUrl` | string? | Configured callback destination, or null for a key-only integration. |
| Subscription list entry | `isActive` | boolean | Whether the subscription is enabled. Revocation sets it to false. |
| Subscription list entry | `webhookReady` | boolean | The active key has read access, a configured endpoint and a signing secret. A pending first attachment can be retried with the webhook update operation. |
| Subscription list entry | `createdAt` | timestamp | Time the subscription credential was issued. |
| Subscription list entry | `revokedAt` | timestamp? | Time of revocation. Null while the subscription has never been revoked. |
| API key replacement | `apiKey` | string | New one-time secret for `X-Neobiz-Api-Key`. The previous key immediately stops authenticating. |
| Test response | `eventId` | UUID | ID of the queued `subscription.test` event. Match it to the ID in the signed callback to confirm receipt. |

## Error object

For responses with an error object, use the HTTP status together with these fields. Some responses, including a resource lookup returning 404, have an empty body.

| Property | Type | Meaning |
| - | - | - |
| `error` | string | Machine-readable error code, such as `REQUEST_ID_REUSED`, `WindowClosed`, or `ALREADY_CLAIMED`. |
| `message` | string, optional | Human-readable detail when supplied, such as the reason an integration key was rejected. |
| `messageId` | UUID?, optional | On a rejected or failed reply, the stored message ID if a message was recorded. Use it to check the outcome before sending a replacement. |

Partner rate-limit errors return a JSON `error` and a `Retry-After` HTTP header containing the minimum wait in whole seconds. `RATE_LIMIT_EXCEEDED` (429) means the ingress, shared read or write budget, or local outage read allowance is exhausted. `RATE_LIMIT_UNAVAILABLE` (503) means the shared budget is unavailable for a write, or the host has zero fallback read allowance. In both cases the requested operation has not run. [Request limits and retries](https://docs.neobiz.id/integrations/inbox-api.md#request-limits-and-retries)


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