Einstein Generation

Represents a generative AI content generation result from Einstein GPT, including the generated text, token usage, and content quality assessment.

Artificial IntelligenceComputer-VisionCRMMachine-LearningNatural Language ProcessingPredictive AnalyticsSalesforce

Properties

Name Type Description
id string Unique generation identifier.
generationId string ID used for submitting feedback on this generation.
prompt string The resolved prompt that was sent to the model.
generatedText string The AI-generated content.
modelId string ID of the model used for generation.
promptTemplateId string ID of the prompt template used, if any.
contentQuality object Content quality and safety assessment.
tokenUsage object Token usage statistics for the generation.
finishReason string Reason the generation stopped.
createdDate string Timestamp when the generation was created.
View JSON Schema on GitHub

JSON Schema

salesforce-einstein-generation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-search/salesforce-einstein/json-schema/salesforce-einstein-generation-schema.json",
  "title": "Einstein Generation",
  "description": "Represents a generative AI content generation result from Einstein GPT, including the generated text, token usage, and content quality assessment.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique generation identifier."
    },
    "generationId": {
      "type": "string",
      "description": "ID used for submitting feedback on this generation."
    },
    "prompt": {
      "type": "string",
      "description": "The resolved prompt that was sent to the model."
    },
    "generatedText": {
      "type": "string",
      "description": "The AI-generated content."
    },
    "modelId": {
      "type": "string",
      "description": "ID of the model used for generation."
    },
    "promptTemplateId": {
      "type": "string",
      "description": "ID of the prompt template used, if any."
    },
    "contentQuality": {
      "type": "object",
      "description": "Content quality and safety assessment.",
      "properties": {
        "scanToxicity": {
          "type": "object",
          "properties": {
            "isDetected": {
              "type": "boolean",
              "description": "Whether toxic content was detected."
            },
            "categories": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "categoryName": {
                    "type": "string",
                    "description": "Name of the toxicity category."
                  },
                  "score": {
                    "type": "number",
                    "description": "Toxicity score for this category."
                  }
                }
              }
            }
          }
        }
      }
    },
    "tokenUsage": {
      "type": "object",
      "description": "Token usage statistics for the generation.",
      "properties": {
        "promptTokens": {
          "type": "integer",
          "description": "Number of tokens in the prompt."
        },
        "completionTokens": {
          "type": "integer",
          "description": "Number of tokens in the generated response."
        },
        "totalTokens": {
          "type": "integer",
          "description": "Total tokens used."
        }
      }
    },
    "finishReason": {
      "type": "string",
      "description": "Reason the generation stopped.",
      "enum": ["stop", "length", "content_filter"]
    },
    "createdDate": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the generation was created."
    }
  },
  "required": ["generationId", "generatedText"]
}

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-einstein-generation"
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.