File size: 1,538 Bytes
387d030
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# RapidAPI β€” add the 3 new connector endpoints

The gateway only forwards endpoints defined in your RapidAPI API. Add these so
buyers can reach them. Two ways:

## Option A (fastest): re-import the OpenAPI
RapidAPI Provider β†’ your API β†’ **Definitions / Import** β†’ import from URL:
    https://shaankar39-revai-api.hf.space/openapi.json
This already contains ALL endpoints (old + new). Or upload the trimmed file
`new_endpoints.openapi.json` (just the 3 new ones).

## Option B: add each manually
Provider β†’ your API β†’ **Endpoints β†’ Create REST Endpoint**.

### 1) Universal connector  (recommended default)
- Name: Predict Smart
- Method: **POST**
- Path: **/v1/predict/smart**
- Header: `Content-Type: application/json`
- Body (JSON):
  {"data":[{"account_id":"ACME","signup_date":"2024-01-10","last_seen":"2026-05-10","plan":"Monthly","missed_payments":3,"nps":2}],"model_type":"churn"}

### 2) CSV upload
- Name: Predict CSV
- Method: **POST**
- Path: **/v1/predict/csv**
- Body type: **multipart/form-data**, fields:
    file        (type: file)    β€” the customer's CSV
    model_type  (type: text)    β€” "churn" or "lead"
    model_id    (type: text, optional)

### 3) Stripe connector
- Name: Connect Stripe
- Method: **POST**
- Path: **/v1/connect/stripe**
- Header: `Content-Type: application/json`
- Body (JSON):
  {"stripe_key":"rk_live_...","limit":100,"model_type":"churn"}

After adding, hit **Send** on each in Studio to confirm 200 (the smart/csv ones
work immediately; stripe needs a real read-only key).