Skip to content

API reference

Project chats

List conversations associated with a project for workspace views. Use the conversation resource to inspect individual messages.

How it fits together

  1. 01List conversations in a project

Select an action to see its complete inputs, request, response, and status codes.

List conversations in a project

GET/api/v1/tenancy/projects/{project_id}/chats
Production base URLhttps://api.mahvashai.ir
AuthenticationUser access JWT
ResponseMahvash product envelope

Parameters

The table shows the accepted inputs for this endpoint. Examples use placeholders and illustrate a safe integration pattern.

NameLocationTypeRequiredSupportDetails
project_idPathstringRequiredMahvash extensionProject UUID.
searchQuerystringOptionalMahvash extensionCase-insensitive search over chat titles.
statusQuerystringOptionalMahvash extensionFilter by chat lifecycle status.
pageQueryintegerOptionalMahvash extensionOne-based page number when bounded pagination is requested.
page_sizeQueryintegerOptionalMahvash extensionPage size from 1 through 100 when bounded pagination is requested.
X-Request-IDHeaderstringOptionalMahvash extensionClient-supplied correlation ID. Echoed on every response; replaced when absent or malformed.
X-Mahvash-ProjectHeaderstringOptionalMahvash extensionProject slug or ID within the caller's organization. Narrows the request principal; it can never widen it.

Request

curl -X GET 'https://api.mahvashai.ir/api/v1/tenancy/projects/<project_id>/chats' \
  -H "Authorization: Bearer $MAHVASH_USER_JWT"

Response

{
  "status": 0,
  "data": "<value>"
}

Illustrative response shape; actual fields depend on the operation and model.

Status codes

HTTPDetails
200List conversations in a project.
401Authentication credentials are missing or invalid.
403The principal is not allowed to perform this request.
404No such resource is visible to this principal.
429A quota or rate limit was exceeded.
500An internal error occurred.