Salesforce · Schema

QueryResult

The result of a SOQL query, containing the matching records and pagination metadata.

Fortune 500Artificial IntelligenceAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Properties

Name Type Description
totalSize integer The total number of records matching the query. May be larger than the number of records in the current page if the result is paginated.
done boolean Whether all query results have been returned. If false, use nextRecordsUrl to retrieve the next page.
nextRecordsUrl string URL to retrieve the next page of results. Only present when done is false.
records array Array of SObject records matching the query. May be a partial result if the total exceeds the page size.
View JSON Schema on GitHub

JSON Schema

salesforce-rest-query-result-schema.json Raw ↑
{
  "type": "object",
  "description": "The result of a SOQL query, containing the matching records and pagination metadata.\n",
  "properties": {
    "totalSize": {
      "type": "integer",
      "description": "The total number of records matching the query. May be larger than the number of records in the current page if the result is paginated.\n",
      "example": 42
    },
    "done": {
      "type": "boolean",
      "description": "Whether all query results have been returned. If false, use nextRecordsUrl to retrieve the next page.\n",
      "example": true
    },
    "nextRecordsUrl": {
      "type": "string",
      "description": "URL to retrieve the next page of results. Only present when done is false.\n",
      "format": "uri",
      "example": "https://www.example.com"
    },
    "records": {
      "type": "array",
      "description": "Array of SObject records matching the query. May be a partial result if the total exceeds the page size.\n",
      "example": [],
      "items": {
        "type": "object",
        "description": "A Salesforce SObject record. Contains an attributes object describing the record type and URL, plus any number of field name/value pairs depending on the object type.\n",
        "properties": {
          "attributes": {
            "type": "object",
            "description": "Metadata attributes for this SObject record, including its type and REST API URL.\n",
            "example": "example_value",
            "properties": {
              "type": {
                "type": "string",
                "description": "The API name of the SObject type (e.g., Account, Contact)."
              },
              "url": {
                "type": "string",
                "description": "The REST API URL for this specific record.",
                "format": "uri"
              }
            },
            "required": [
              "type"
            ]
          },
          "Id": {
            "type": "string",
            "description": "The 18-character globally unique Salesforce record ID.",
            "example": "abc123"
          }
        },
        "required": [
          "attributes"
        ]
      }
    }
  },
  "required": [
    "totalSize",
    "done",
    "records"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "QueryResult"
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/salesforce-rest-query-result"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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