# \CommentsApi
All URIs are relative to *http://localhost*
[**comments_create**](CommentsApi.md#comments_create) | **POST** /api/public/comments |
[**comments_get**](CommentsApi.md#comments_get) | **GET** /api/public/comments |
[**comments_get_by_id**](CommentsApi.md#comments_get_by_id) | **GET** /api/public/comments/{commentId} |
## comments_create
> models::CreateCommentResponse comments_create(create_comment_request)
Create a comment. Comments may be attached to different object types (trace, observation, session, prompt).
### Parameters
**create_comment_request** | [**CreateCommentRequest**](CreateCommentRequest.md) | | [required] |
### Return type
[**models::CreateCommentResponse**](CreateCommentResponse.md)
### Authorization
[BasicAuth](../README.md#BasicAuth)
### 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)
## comments_get
> models::GetCommentsResponse comments_get(page, limit, object_type, object_id, author_user_id)
Get all comments
### Parameters
**page** | Option<**i32**> | Page number, starts at 1. | |
**limit** | Option<**i32**> | Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit | |
**object_type** | Option<**String**> | Filter comments by object type (trace, observation, session, prompt). | |
**object_id** | Option<**String**> | Filter comments by object id. If objectType is not provided, an error will be thrown. | |
**author_user_id** | Option<**String**> | Filter comments by author user id. | |
### Return type
[**models::GetCommentsResponse**](GetCommentsResponse.md)
### Authorization
[BasicAuth](../README.md#BasicAuth)
### 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)
## comments_get_by_id
> models::Comment comments_get_by_id(comment_id)
Get a comment by id
### Parameters
**comment_id** | **String** | The unique langfuse identifier of a comment | [required] |
### Return type
[**models::Comment**](Comment.md)
### Authorization
[BasicAuth](../README.md#BasicAuth)
### 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)