# \BetaConversationsApi
All URIs are relative to *https://api.mistral.ai*
[**agents_api_v1_conversations_append**](BetaConversationsApi.md#agents_api_v1_conversations_append) | **POST** /v1/conversations/{conversation_id} | Append new entries to an existing conversation.
[**agents_api_v1_conversations_append_stream**](BetaConversationsApi.md#agents_api_v1_conversations_append_stream) | **POST** /v1/conversations/{conversation_id}#stream | Append new entries to an existing conversation.
[**agents_api_v1_conversations_delete**](BetaConversationsApi.md#agents_api_v1_conversations_delete) | **DELETE** /v1/conversations/{conversation_id} | Delete a conversation.
[**agents_api_v1_conversations_get**](BetaConversationsApi.md#agents_api_v1_conversations_get) | **GET** /v1/conversations/{conversation_id} | Retrieve a conversation information.
[**agents_api_v1_conversations_history**](BetaConversationsApi.md#agents_api_v1_conversations_history) | **GET** /v1/conversations/{conversation_id}/history | Retrieve all entries in a conversation.
[**agents_api_v1_conversations_list**](BetaConversationsApi.md#agents_api_v1_conversations_list) | **GET** /v1/conversations | List all created conversations.
[**agents_api_v1_conversations_messages**](BetaConversationsApi.md#agents_api_v1_conversations_messages) | **GET** /v1/conversations/{conversation_id}/messages | Retrieve all messages in a conversation.
[**agents_api_v1_conversations_restart**](BetaConversationsApi.md#agents_api_v1_conversations_restart) | **POST** /v1/conversations/{conversation_id}/restart | Restart a conversation starting from a given entry.
[**agents_api_v1_conversations_restart_stream**](BetaConversationsApi.md#agents_api_v1_conversations_restart_stream) | **POST** /v1/conversations/{conversation_id}/restart#stream | Restart a conversation starting from a given entry.
[**agents_api_v1_conversations_start**](BetaConversationsApi.md#agents_api_v1_conversations_start) | **POST** /v1/conversations | Create a conversation and append entries to it.
[**agents_api_v1_conversations_start_stream**](BetaConversationsApi.md#agents_api_v1_conversations_start_stream) | **POST** /v1/conversations#stream | Create a conversation and append entries to it.
## agents_api_v1_conversations_append
> models::ConversationResponse agents_api_v1_conversations_append(conversation_id, conversation_append_request)
Append new entries to an existing conversation.
Run completion on the history of the conversation and the user entries. Return the new created entries.
### Parameters
**conversation_id** | **String** | ID of the conversation to which we append entries. | [required] |
**conversation_append_request** | [**ConversationAppendRequest**](ConversationAppendRequest.md) | | [required] |
### Return type
[**models::ConversationResponse**](ConversationResponse.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_append_stream
> models::ConversationEvents agents_api_v1_conversations_append_stream(conversation_id, conversation_append_stream_request)
Append new entries to an existing conversation.
Run completion on the history of the conversation and the user entries. Return the new created entries.
### Parameters
**conversation_id** | **String** | ID of the conversation to which we append entries. | [required] |
**conversation_append_stream_request** | [**ConversationAppendStreamRequest**](ConversationAppendStreamRequest.md) | | [required] |
### Return type
[**models::ConversationEvents**](ConversationEvents.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: text/event-stream, application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_delete
> agents_api_v1_conversations_delete(conversation_id)
Delete a conversation.
Delete a conversation given a conversation_id.
### Parameters
**conversation_id** | **String** | ID of the conversation from which we are fetching metadata. | [required] |
### Return type
(empty response body)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_get
> models::ResponseV1ConversationsGet agents_api_v1_conversations_get(conversation_id)
Retrieve a conversation information.
Given a conversation_id retrieve a conversation entity with its attributes.
### Parameters
**conversation_id** | **String** | ID of the conversation from which we are fetching metadata. | [required] |
### Return type
[**models::ResponseV1ConversationsGet**](Response_V1_Conversations_Get.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_history
> models::ConversationHistory agents_api_v1_conversations_history(conversation_id)
Retrieve all entries in a conversation.
Given a conversation_id retrieve all the entries belonging to that conversation. The entries are sorted in the order they were appended, those can be messages, connectors or function_call.
### Parameters
**conversation_id** | **String** | ID of the conversation from which we are fetching entries. | [required] |
### Return type
[**models::ConversationHistory**](ConversationHistory.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_list
> Vec<models::ResponseV1ConversationsListInner> agents_api_v1_conversations_list(page, page_size, metadata)
List all created conversations.
Retrieve a list of conversation entities sorted by creation time.
### Parameters
**page** | Option<**i32**> | | |[default to 0]
**page_size** | Option<**i32**> | | |[default to 100]
**metadata** | Option<[**models::AnyOfLessThanMapCommaNullGreaterThan**](Models__AnyOfLessThanMapCommaNullGreaterThan.md)> | | |
### Return type
[**Vec<models::ResponseV1ConversationsListInner>**](Response_V1_Conversations_List_inner.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_messages
> models::ConversationMessages agents_api_v1_conversations_messages(conversation_id)
Retrieve all messages in a conversation.
Given a conversation_id retrieve all the messages belonging to that conversation. This is similar to retrieving all entries except we filter the messages only.
### Parameters
**conversation_id** | **String** | ID of the conversation from which we are fetching messages. | [required] |
### Return type
[**models::ConversationMessages**](ConversationMessages.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_restart
> models::ConversationResponse agents_api_v1_conversations_restart(conversation_id, conversation_restart_request)
Restart a conversation starting from a given entry.
Given a conversation_id and an id, recreate a conversation from this point and run completion. A new conversation is returned with the new entries returned.
### Parameters
**conversation_id** | **String** | ID of the original conversation which is being restarted. | [required] |
**conversation_restart_request** | [**ConversationRestartRequest**](ConversationRestartRequest.md) | | [required] |
### Return type
[**models::ConversationResponse**](ConversationResponse.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_restart_stream
> models::ConversationEvents agents_api_v1_conversations_restart_stream(conversation_id, conversation_restart_stream_request)
Restart a conversation starting from a given entry.
Given a conversation_id and an id, recreate a conversation from this point and run completion. A new conversation is returned with the new entries returned.
### Parameters
**conversation_id** | **String** | ID of the original conversation which is being restarted. | [required] |
**conversation_restart_stream_request** | [**ConversationRestartStreamRequest**](ConversationRestartStreamRequest.md) | | [required] |
### Return type
[**models::ConversationEvents**](ConversationEvents.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: text/event-stream, application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_start
> models::ConversationResponse agents_api_v1_conversations_start(conversation_request)
Create a conversation and append entries to it.
Create a new conversation, using a base model or an agent and append entries. Completion and tool executions are run and the response is appended to the conversation.Use the returned conversation_id to continue the conversation.
### Parameters
**conversation_request** | [**ConversationRequest**](ConversationRequest.md) | | [required] |
### Return type
[**models::ConversationResponse**](ConversationResponse.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## agents_api_v1_conversations_start_stream
> models::ConversationEvents agents_api_v1_conversations_start_stream(conversation_stream_request)
Create a conversation and append entries to it.
Create a new conversation, using a base model or an agent and append entries. Completion and tool executions are run and the response is appended to the conversation.Use the returned conversation_id to continue the conversation.
### Parameters
**conversation_stream_request** | [**ConversationStreamRequest**](ConversationStreamRequest.md) | | [required] |
### Return type
[**models::ConversationEvents**](ConversationEvents.md)
### Authorization
[ApiKey](../README.md#ApiKey)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: text/event-stream, application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)