---
schema_version: "1"
id: 853c8ec207323c8f5256f687bbc820403c0472f54ff225e9fe2dca5dd560309a
title: Access Predictive Endpoints with REST
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce/guides/models/models-api/access-predictive-endpoints-with-rest.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce/guide/access-predictive-endpoints-with-rest.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f396887d0fde8f753a2427327a53f1372f7554b602ad1f6ce4044f749df4ed60
products:
  - Agentforce Developer Guide
  - Agentforce and Einstein Generative AI
---
# Access Predictive Endpoints with REST

The predictive endpoints of the Models API are REST-only. Authenticate with the same JWT flow used by the generative endpoints, then `POST` to the predictive endpoint for the capability you need.

## Authenticate

Predictive endpoints use the same JWT authentication flow as the generative REST endpoints. To create an external client app, generate a JWT, and set up your authorization header, see [Authenticate to the Models API](https://developer.salesforce.com/docs/ai/agentforce/guide/models-api-authentication.md).

## Call a Predictive Endpoint

Predictive endpoints follow this shape:

```
POST /einstein/platform/v1/models/{modelApiName}/{method}
```

Where `{method}` is one of:

| Capability           | Endpoint Path           | Predicts                          |
| -------------------- | ----------------------- | --------------------------------- |
| Regression           | `/regression`           | A continuous numeric value.       |
| Forecast             | `/forecast`             | Future values of a time series.   |
| Classification       | `/classification`       | A probability per class.          |
| Multi-Outcome        | `/multi-outcome`        | Several outcomes for each record. |
| Topic Classification | `/topic-classification` | Caller-supplied topics for texts. |
| Sentiment Detection  | `/sentiment-detection`  | Sentiment for a batch of texts.   |

## See Also

- [Predict with Models API](https://developer.salesforce.com/docs/ai/agentforce/guide/predict-with-models-api.md)
- [Access Models API with REST](https://developer.salesforce.com/docs/ai/agentforce/guide/access-models-api-with-rest.md)
