Skip to main content
GET
/
projects
/
{projectId}
/
messages
Get all messages for a project
curl --request GET \
  --url https://local.withsutro.com/projects/{projectId}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'x-sutro-api-client: <api-key>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "content": [
        {
          "type": "text",
          "text": "<string>"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "metadata": {
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Builder authentication and authorization

x-sutro-api-client
string
header
required

A unique identifier for the API Client making a request

Path Parameters

projectId
string
required

Response

List of messages for the project

items
object[]
metadata
object

Metadata for a paginated response