Dust Community Icon

API Endpoint Inquiry: Listing Conversations Created via API

·
·

Hello Dust team, Quick API question, is there an endpoint that I might have missed for listing conversations created via the API? If we forget to save the conversation identifier, there’s no way to find it again. The only trick I’ve found is to create the conversation manually through the website and then continue via the API using that identifier (but this doesn’t work with n8n where it’s not possible to pass a conversation identifier). Thanks for your help.

  • Avatar of David Ebbo
    David Ebbo
    ·
    ·

    GET {{baseUrl}}/api/v1/w/:wId/assistant/conversations is supposed to list all conversations for the authenticated user, but it doesn't seem to be usable when using an API Key (which I think is not associated with a specific user). So it fails with: Getting conversations is only available when authenticated as a user. https://github.com/dust-tt/dust/pull/11510 looks related. Philippe Rolet is there a way to list conversations using an API key?

  • Avatar of Philippe Rolet
    Philippe Rolet
    ·
    ·

    Hello both, Hope you're doing well. TLDR: no, there isn't. An API client should indeed store the conversation sId to reuse (also note that at the time the GET /conversations, while accessible, is not documented or supported). Have a nice evening.

  • Avatar of Samy
    Samy
    ·
    ·

    Ok, no conversation listing. My trick of creating the conversation beforehand helps solve the problem (if I’m using the full API) but not with n8n (with the dust node) since it’s not possible to configure a conversation identifier (because you need to put the assistant identifier instead). A solution?

  • Avatar of Philippe Rolet
    Philippe Rolet
    ·
    ·

    Unfortunately, I can't help with that as I am not familiar with n8n. The tools I'm aware of that seem similar to it, such as PipeDream, would allow for custom API calls, gathering return values and reusing them.