Skip to content
ShopAssist Docs
APIAPI referenceConversations

Get Conversation

ApiConversation & { messages: ApiMessage[] } (note messages excluded).

GET/v1/stores/{store_id}/conversations/{conversation_id}Scope conversations:read

`ApiConversation & { messages: ApiMessage[] }` (`note` messages excluded).

Parameters

Parameters of Get Conversation
NameInTypeDescription
store_idrequiredpathstring
conversation_idrequiredpathstring

Example request

curl -X GET "https://api.shopassist.coec.dk/v1/stores/sto_01j8000000e008000000000000/conversations/conv_01j8000000e008000000000000" \
  -H "Authorization: Bearer $SHOPASSIST_API_KEY"

Response 200 (ApiConversationDetail)

Response of Get Conversation
FieldTypeDescription
assigned_user_idrequiredstring | nullpattern `^usr_[0-9a-hjkmnp-tv-z]{26}$`
channelrequired"widget" | "playground" | "preview" | "demo" | "api"
closed_atrequiredstring | nullformat date-time
csat_scorerequiredinteger | null
handoff_requested_atrequiredstring | nullformat date-time
handoff_staterequired"none" | "requested" | "live" | "delivered_offline" | "failed" | "resolved"
idrequiredstringpattern `^conv_[0-9a-hjkmnp-tv-z]{26}$`
identity_levelrequired"guest" | "order_lookup" | "order_otp" | "customer"
is_testrequiredboolean
last_message_atrequiredstring | nullformat date-time
localerequiredstring | null
message_countrequiredinteger≥ 0
messagesrequiredApiMessage[]
messages[].authorrequiredMessageAuthorWho wrote a message.
messages[].author.display_namerequiredstring | null
messages[].author.typerequired"shopper" | "ai" | "human" | "system"
messages[].blocksrequiredUiBlock[]
messages[].created_atrequiredstringformat date-time
messages[].idrequiredstringpattern `^msg_[0-9a-hjkmnp-tv-z]{26}$`
messages[].is_ai_generatedrequiredboolean
messages[].rolerequired"shopper" | "assistant" | "agent" | "system"
messages[].seqrequiredinteger≥ 0
messages[].textrequiredstring
moderequired"ai" | "human_requested" | "human"
platform_customer_idrequiredstring | nullOnly for identity_level = customer
resolutionrequired"resolved_ai" | "handed_off" | "abandoned" | "unknown" | null
shopperrequiredShopperViewShopper identity as shown on lists (masked for agent/viewer, 06 §5.3).
shopper.emailrequiredstring | null
shopper.is_maskedrequiredboolean
shopper.is_verifiedrequiredboolean
shopper.namerequiredstring | null
started_atrequiredstringformat date-time
statusrequired"open" | "closed"
store_idrequiredstringpattern `^sto_[0-9a-hjkmnp-tv-z]{26}$`
tagsrequiredstring[]
{
  "assigned_user_id": "usr_01j8000000e008000000000000",
  "channel": "widget",
  "closed_at": "2026-09-28T10:15:30.123Z",
  "csat_score": 1,
  "handoff_requested_at": "2026-09-28T10:15:30.123Z",
  "handoff_state": "none",
  "id": "conv_01j8000000e008000000000000",
  "identity_level": "guest",
  "is_test": true,
  "last_message_at": "2026-09-28T10:15:30.123Z",
  "locale": "da-DK",
  "message_count": 0,
  "messages": [
    {
      "author": {
        "display_name": "string",
        "type": "shopper"
      },
      "blocks": [
        {
          "as_of": "2026-09-28T10:15:30.123Z",
          "id": "b1",
          "items": [
            {
              "actions": {
                "add_to_cart": true,
                "check_store_stock": true,
                "notify_back_in_stock": false
              },
              "as_of": "2026-09-28T10:15:30.123Z",
              "availability": {
                "as_of": "2026-09-28T10:15:30.123Z",
                "label": "Only 2 left",
                "quantity": 2,
                "status": "low_stock"
              },
              "badges": [
                "New"
              ],
              "default_variant_id": "var_01j8000000e008000000000001",
              "image": {
                "alt": "City bike",
                "height": 600,
                "url": "https://cdn.shopify.com/s/files/1/demo/bike-1.jpg",
                "width": 800
              },
              "options": [
                {
                  "name": "Size",
                  "values": [
                    {
                      "is_available": true,
                      "value": "M"
                    },
                    {
                      "is_available": false,
                      "value": "L"
                    }
                  ]
                }
              ],
              "price": {
                "amount": "4999",
                "currency": "DKK",
                "display": "4.999,00 kr."
              },
              "product_id": "prd_01j8000000e008000000000001",
              "rating": {
                "average": 4.6,
                "count": 128
              },
              "subtitle": "Nordic Bikes",
              "title": "Nordic City Bike 7-speed",
              "url": "https://nordicbikes.example/products/city-bike?utm_source=shopassist&utm_medium=chat",
              "variants": [
                {
                  "availability": {
                    "as_of": "2026-09-28T10:15:30.123Z",
                    "label": "Only 2 left",
                    "quantity": 2,
                    "status": "low_stock"
                  },
                  "cart_ref": {
                    "variant_gid": "gid://shopify/ProductVariant/4711"
                  },
                  "options": {
                    "Size": "M"
                  },
                  "price": {
                    "amount": "4999",
                    "currency": "DKK",
                    "display": "4.999,00 kr."
                  },
                  "title": "M",
                  "variant_id": "var_01j8000000e008000000000001"
                }
              ]
            }
          ],
          "layout": "carousel",
          "title": "City bikes in stock",
          "type": "products"
        }
      ],
      "created_at": "2026-09-28T10:15:30.123Z",
      "id": "msg_01j8000000e008000000000000",
      "is_ai_generated": true,
      "role": "shopper",
      "seq": 0,
      "text": "string"
    }
  ],
  "mode": "ai",
  "platform_customer_id": "string",
  "resolution": "resolved_ai",
  "shopper": {
    "email": "string",
    "is_masked": true,
    "is_verified": true,
    "name": "string"
  },
  "started_at": "2026-09-28T10:15:30.123Z",
  "status": "open",
  "store_id": "sto_01j8000000e008000000000000",
  "tags": [
    "string"
  ]
}

Errors

Every error uses the error envelope; the code field is stable.

  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 422 Unprocessable Content
  • 429 Too Many Requests

Last updated on