latestOpenAPI 3.0.02026-08-10135177718.4 KB

f739db716aaf

Messages

Retrieve messages in a thread

get/messages/{id}

Path parameters

idinteger required

ID of the record

Query parameters

fieldsstring

Headers

X-HTTP-Method-Overridestring

Response

An array of messages.

total_resultsinteger required
pageinteger required
per_pageinteger required
thread_idinteger
flaggable_message_idinteger

Example response

{
  "results": [
    {
      "from_user": {
        "site": {
          "id": 1,
          "icon_url": "https://static.inaturalist.org/sites/1-logo_square.png",
          "locale": "en",
          "name": "iNaturalist",
          "site_name_short": "iNat",
          "url": "https://www.inaturalist.org"
        }
      },
      "to_user": {
        "site": {
          "id": 1,
          "icon_url": "https://static.inaturalist.org/sites/1-logo_square.png",
          "locale": "en",
          "name": "iNaturalist",
          "site_name_short": "iNat",
          "url": "https://www.inaturalist.org"
        }
      }
    }
  ],
  "reply_to_user": {
    "site": {
      "id": 1,
      "icon_url": "https://static.inaturalist.org/sites/1-logo_square.png",
      "locale": "en",
      "name": "iNaturalist",
      "site_name_short": "iNat",
      "url": "https://www.inaturalist.org"
    }
  }
}