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

# Mark a conversation unread

> Flags one thread for follow-up: its unread counter becomes at least 1; the other thread's counter is left as it is. `kind` (dm | comment) picks the thread, dm by default.

**Required permission:** `salesbot:conversations:write`



## OpenAPI

````yaml /api-reference/messaging.openapi.json post /conversations/{contact}/unread
openapi: 3.1.0
info:
  title: Messaging API
  version: 1.0.0
  description: >-
    Contacts, conversations, messages, broadcasts, automations and media for one
    workspace. No workspace ID appears in any URL: a workspace API key selects
    its own workspace, and a personal access token names it in the `X-Workspace`
    header.


    A key or token acts as the person who created it, with that person's
    channels and role. When your plan doesn't include this API, every call
    except GET /account answers 403 with `code: plan_feature_missing` (see the
    `PlanFeatureMissing` schema).
servers:
  - url: https://app.onlysocial.io/api/v1
    description: OnlySocial
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Account
    description: >-
      No workspace id appears in any /api/v1 URL. A workspace API key selects
      its own workspace; a personal access token names it in the `X-Workspace`
      header.


      A workspace API key acts as the member who created it, and a personal
      access token acts as its owner. The API shows and changes only what that
      person could in the dashboard: a member limited to some channels sees only
      the contacts and conversations on those channels, a role that sees only
      its own assigned conversations sees only those in the conversation and
      message endpoints, and a role that hides phone numbers or email addresses
      gets them masked. A contact or conversation that person cannot see answers
      404.
  - name: Automations
    description: >-
      Read + activate/pause only. Authoring a node graph stays in the builder,
      which owns its own validation.
  - name: Broadcasts
    description: >-
      The send pipeline is never invoked directly: marking a broadcast scheduled
      is what lets the sweep's single Scheduled→Sending claim keep it
      un-double-sendable.
  - name: Channels
    description: >-
      Read-only: connecting a channel is an OAuth flow that happens in the
      dashboard. A whitelabel partner can also start one with the separate
      partner API; see [Channel Connect](/partner/channel-connect).
  - name: Contacts
    description: >-
      custom_fields is a flat {key: value} map. An empty map is returned as {}
      so client-side property access is always safe.


      When the person behind the key has a role that hides phone numbers or
      email addresses, `phone`, `email` and the WhatsApp or SMS `handle` come
      back masked (for example `••••••••3456` and `j•••@example.com`), and
      searching with `q` matches those fields only by their whole value. Sending
      a masked value back in an update leaves the stored value unchanged.
  - name: Conversations & Messages
    description: >-
      There is no Conversation model: a conversation is a Contact with messages,
      and the rollup fields are denormalised columns on it.
  - name: Media
    description: >-
      Upload requests are multipart, not JSON — do not set Content-Type:
      application/json on media.store.
  - name: Segments
    description: Segments are the audience type broadcasts target.
  - name: Tags
    description: >-
      Contacts are tagged by NAME (see contacts.tags.add), so tag names stay
      unique.
paths:
  /conversations/{contact}/unread:
    post:
      tags:
        - Conversations & Messages
      summary: Mark a conversation unread
      description: >-
        Flags one thread for follow-up: its unread counter becomes at least 1;
        the other thread's counter is left as it is. `kind` (dm | comment) picks
        the thread, dm by default.


        **Required permission:** `salesbot:conversations:write`
      operationId: conversations.unread
      parameters:
        - name: contact
          in: path
          required: true
          schema:
            type: string
          description: The contact ID.
        - name: X-Workspace
          in: header
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            The workspace UUID. Required with a personal access token. A
            workspace API key can leave it out; if sent, it must be the key's
            own workspace.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                kind:
                  type: string
                  example: dm
      responses:
        '200':
          description: Success
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A workspace API key (`Authorization: Bearer osk_...`), or a personal
        access token created with permissions, sent with `X-Workspace`.
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same key or token in the `x-api-key` header.

````

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