iNaturalist · Example Payload

Get Messages

BiodiversityNatureCitizen ScienceWildlifeObservationsTaxaEcology

Get Messages is an example object payload from iNaturalist, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryparametersexampleResponse

Example Payload

Raw ↑
{
  "operationId": "get-messages",
  "method": "GET",
  "path": "/messages",
  "summary": "Retrieve messages for the authenticated user. This does not mark them as read.",
  "parameters": [
    {
      "$ref": "#/parameters/page"
    },
    {
      "name": "box",
      "in": "query",
      "type": "string",
      "description": "Whether to view messages the user has received (default) or messages the user has sent",
      "default": "inbox",
      "enum": [
        "inbox",
        "sent",
        "any"
      ]
    },
    {
      "name": "q",
      "in": "query",
      "type": "string",
      "description": "Search query for subject and body"
    },
    {
      "name": "user_id",
      "in": "query",
      "type": "string",
      "description": "User ID or username of correspondent to filter by"
    },
    {
      "name": "threads",
      "in": "query",
      "type": "boolean",
      "default": false,
      "description": "Groups results by `thread_id`, only shows the latest message per\nthread, and includes a `thread_messages_count` attribute showing the\ntotal number of messages in that thread. Note that this will not\nwork with the `q` param, and it probably should only be used with\n`box=any` because the `thread_messages_count` will be inaccurate when\nyou restrict it to `inbox` or `sent`.\n"
    }
  ],
  "exampleResponse": null
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/get-messages"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.