Dify Conversations API

Operations related to managing conversations. 6 operation(s) from the Dify Service API.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /conversations List an end user's conversations · List Conversations #
Ask an LLM
“How do I show a user their past chat conversations, most recent first?”
“Can I sort a user's conversation list by a different field?”
Tell an agent
List the conversations for end user {user}.
Show the {limit} most recently active conversations for {user}.
GET /messages Read a conversation's message history · List Conversation Messages #
Ask an LLM
“What messages were exchanged in a given conversation?”
“Can I page back through older messages in a chat thread?”
Tell an agent
Show the message history of conversation {conversation_id}.
Load the messages in conversation {conversation_id} older than message {first_id}.
GET /conversations/{conversation_id}/variables List the variables stored in a conversation · List Conversation Variables #
Ask an LLM
“Which conversation variables has my chatflow stored for this chat?”
“Can I look up a single conversation variable by its name?”
Tell an agent
List the stored variables in conversation {conversation_id}.
Get the variable named {variable_name} in conversation {conversation_id}.
POST /conversations/{conversation_id}/name Rename or auto-title a conversation · Rename Conversation #
Ask an LLM
“Can I give a conversation a custom title shown in the chat list?”
“Is there a way to have the app auto-generate a conversation's name from its messages?”
Tell an agent
Rename conversation {conversation_id} to {name}.
Auto-generate a title for conversation {conversation_id}.
PUT /conversations/{conversation_id}/variables/{variable_id} Change a conversation variable's value · Update Conversation Variable #
Ask an LLM
“How do I overwrite the value of a conversation variable mid-chat?”
“Does a new variable value have to match the variable's existing type?”
Tell an agent
Set variable {variable_id} in conversation {conversation_id} to {value}.
Update conversation {conversation_id}'s variable {variable_id} with the new value {value}.
DELETE /conversations/{conversation_id} Delete a conversation · Delete Conversation #
Ask an LLM
“How do I delete a chat conversation a user no longer wants?”
“Can I remove a conversation on behalf of a specific end user?”
Tell an agent destructive · confirm first
Delete conversation {conversation_id}.
Remove conversation {conversation_id} belonging to user {user}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dify:dify-conversations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dify-conversations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dify Service Conversations API
  description: REST API for Dify applications and knowledge bases. Application endpoints authenticate with an app API key; knowledge endpoints authenticate with a dataset API key.
  version: 1.0.0
servers:
- url: https://{api_base_url}
  description: Base URL of the Dify Service API. For self-hosted deployments, replace it with your own API base URL.
  variables:
    api_base_url:
      default: api.dify.ai/v1
      description: Host and path of the API base URL, without the `https://` prefix.
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (36 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/dify/refs/heads/main/openapi/dify-conversations-api-openapi.yml