{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Einstein GPT API",
    "version": "58.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.salesforce.com/services/oauth2/authorize",
      "accessTokenUrl": "https://login.salesforce.com/services/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Generations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein Generate content from a prompt",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/generations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates AI content using a prompt template. Provide a prompt template ID and field values to generate personalized content."
        },
        {
          "info": {
            "name": "Salesforce Einstein Complete a prompt",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/completions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends a raw prompt to the configured LLM and returns the completion. This provides direct access to the language model without using a template."
        },
        {
          "info": {
            "name": "Salesforce Einstein Generate a chat response",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/chat/generations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates a conversational AI response using a chat-based prompt with message history context."
        }
      ]
    },
    {
      "info": {
        "name": "Prompt Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein List prompt templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/templates",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Number of templates to return per page."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page token for pagination."
              }
            ]
          },
          "docs": "Returns a list of all prompt templates in the org."
        },
        {
          "info": {
            "name": "Salesforce Einstein Create a prompt template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/templates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new prompt template for content generation."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get a prompt template",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/templates/:templateId",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the prompt template."
              }
            ]
          },
          "docs": "Returns details of a specific prompt template."
        },
        {
          "info": {
            "name": "Salesforce Einstein Update a prompt template",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/templates/:templateId",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the prompt template."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing prompt template."
        },
        {
          "info": {
            "name": "Salesforce Einstein Delete a prompt template",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/prompt/templates/:templateId",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the prompt template."
              }
            ]
          },
          "docs": "Deletes a prompt template."
        }
      ]
    },
    {
      "info": {
        "name": "Models",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein List available models",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/models"
          },
          "docs": "Returns a list of available generative AI models that can be used for content generation."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get model details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/models/:modelId",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the generative AI model."
              }
            ]
          },
          "docs": "Returns details of a specific generative AI model."
        }
      ]
    },
    {
      "info": {
        "name": "Feedback",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein Submit feedback on generated content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/llm/feedback",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submits feedback on AI-generated content to improve future generation quality."
        }
      ]
    }
  ],
  "bundled": true
}