JEV Route API
REST API and MCP service documentation generated from server-side API definitions. Responses use the shared code, msg, and data envelope.
API selector
REST API and MCP service documentation generated from server-side API definitions. Responses use the shared code, msg, and data envelope.
Routes one intent to trusted metadata for a published data API or fixed JEV preset. The routing intent is sent to TypeSafe for evaluation. Ambiguous results require clarification; routing never executes a match, generates evaluation input, or fills missing parameters. Requires an active Nexscope subscription. Each route or evaluate call deducts 1 Nexscope credit; any selected data API retains its existing billing. Route and evaluate share limits of 20 requests per user per minute, 200 requests globally per minute, and 5,000 requests globally per rolling day; each route or evaluate call counts as one request. Quota admission is sequential: per-user minute, global minute, then global rolling day; an earlier admitted counter remains incremented if a later check rejects the request.
/api/skill-api/v1/jev/routenexscope_route_apiAll run endpoints require a user API key. Send it as a bearer token in the Authorization header.
Authorization: Bearer nk-xxxxxxxxxxxxxxxxx/api/skill-api/v1/jev/routeSend a JSON request body using the parameters described below.
| Slug | jev-route |
| Headers | Authorization: Bearer nk-...Content-Type: application/json |
| Request body | API-specific JSON object. |
| Response body | Platform envelope: code, msg, data, ts, time, cost, traceId. Inspect data.status for asynchronous completion. |
| Code | Description |
|---|---|
| 200 | HTTP request completed. Check JSON code; only 0 indicates business success or acceptance. |
| 400 | Request JSON or required API parameters are invalid. |
| 401 | API key is missing, invalid, or cannot be matched to a user. |
| 5xx | API execution or upstream service failed. |
Replace YOUR_API_KEY, then run this command in your terminal.
curl -X POST 'https://api.nexscope.ai/api/skill-api/v1/jev/route' \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"intent": "Fetch Amazon product reviews by ASIN so I can analyze customer pain points",
"categorySlug": "amazon-marketplace-intelligence"
}'/api/skill-api/v1/jev/routeSend a JSON request to execute this API and receive the documented response payload.
| Method | POST |
| Path | /api/skill-api/v1/jev/route |
| Auth | Bearer API key |
| Content-Type | application/json |
| Name | Type | Required | Description |
|---|---|---|---|
intent | string | required | One routing intent. It is used only for discovery and is never converted into API or evaluation input. Example: Fetch Amazon product reviews by ASIN so I can analyze customer pain points |
categorySlug | string | optional | Optional current public catalog category, or jev-evaluation to limit discovery to the fixed presets. Example: amazon-marketplace-intelligence |
{
"intent": "Fetch Amazon product reviews by ASIN so I can analyze customer pain points",
"categorySlug": "amazon-marketplace-intelligence"
}Platform response envelope. code 0 indicates success or acceptance; data contains the business result.
{
"code": 0,
"msg": "success",
"data": {
"status": "matched",
"catalogVersion": "<catalog version>",
"policyVersion": "jev-routing-v2",
"models": [
"<resolved model>"
],
"confidence": 0.91,
"match": {
"kind": "skill_api",
"slug": "amazon-reviews-list",
"name": "Amazon Reviews List",
"method": "POST",
"endpoint": "/api/skill-api/v1/skills/amazon-reviews-list/run",
"mcpToolName": "nexscope_amazon_reviews_list",
"schemaEndpoint": "/api/skill-api/v1/skills/amazon-reviews-list",
"docsPath": "/api-docs/amazon-reviews-list?view=api"
},
"candidates": [],
"reason": "matched"
}
}Nexscope response envelope. The router returns trusted metadata and never executes the matched API or evaluation preset.
| Name | Type | Required | Description |
|---|---|---|---|
code | integer | required | Zero on success; non-zero for validation, access, quota, or availability errors. |
msg | string | required | Response message. |
data | object | required | For matched, call the returned endpoint separately after collecting its required fields. For ambiguous, ask the user to clarify and route again. For no_match, do not invent or execute a capability. |
| Code | Description |
|---|---|
| 200 | HTTP request completed. Check JSON code; only 0 indicates business success or acceptance. |
| 400 | Request JSON or required API parameters are invalid. |
| 401 | API key is missing, invalid, or cannot be matched to a user. |
| 5xx | API execution or upstream service failed. |
Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.
Connect remote agents through the standard MCP 2025-11-25 Streamable HTTP endpoint. Use OAuth 2.1 Authorization Code with PKCE, or an API key for compatibility.
POST https://api.nexscope.ai/api/skill-api/v2/mcp
MCP-Protocol-Version: 2025-11-25
Content-Type: application/jsonOAuth clients request the mcp:tools scope. The endpoint's 401 response advertises protected-resource metadata for authorization discovery.
{
"jsonrpc": "2.0",
"id": "tool-call-1",
"method": "tools/call",
"params": {
"name": "nexscope_route_api",
"arguments": {
"intent": "Fetch Amazon product reviews by ASIN so I can analyze customer pain points",
"categorySlug": "amazon-marketplace-intelligence"
}
}
}Existing API-key clients can continue using the compatibility endpoint. New integrations should use MCP v2.
GET / POST /api/skill-api/v1/mcpExecute the current API with your API key and JSON payload.
Send a real request with the same contract shown in the reference.
/api/skill-api/v1/jev/routenexscope_route_apicurl -X POST \
https://api.nexscope.ai/api/skill-api/v1/jev/route \
-H "Authorization: Bearer nk-..." \
-H "Content-Type: application/json" \
-d '{ "intent": "Fetch Amazon product reviews by ASIN so I can analyze customer pain points", "categorySlug": "amazon-marketplace-intelligence" }'No response yet. Run the request to see the response here.
data.status | string | required | Status value used by this API operation. Allowed: matched, ambiguous, no_match |
data.catalogVersion | string | required | Catalog timestamp used for this routing decision. |
data.policyVersion | string | required | Server-owned routing policy version. |
data.models | array | required | Resolved model versions used by the routing stages. |
data.models[] | string | required | Item in data models. |
data.confidence | number | null | required | Confidence value used by this API operation. Minimum: 0 Maximum: 1 |
data.match | any | required | Match value used by this API operation. |
data.candidates | array | required | Up to three clarification candidates for an ambiguous result. |
data.candidates[] | object | required | Item in data candidates. |
data.reason | string | required | Reason value used by this API operation. Allowed: matched, clarification_required, no_supported_api |
| Name | Type | Required | Description |
|---|---|---|---|
data.match | object | required | Match value used by this API operation. |
data.match.kind | string | required | Kind value used by this API operation. Constant: skill_api |
data.match.slug | string | required | Slug value used by this API operation. |
data.match.name | string | required | Name value used by this API operation. |
data.match.method | string | required | Method value used by this API operation. Constant: POST |
data.match.endpoint | string | required | Endpoint value used by this API operation. |
data.match.mcpToolName | string | required | Mcp tool name value used by this API operation. |
data.match.schemaEndpoint | string | required | Schema endpoint value used by this API operation. |
data.match.docsPath | string | required | Docs path value used by this API operation. |
| Name | Type | Required | Description |
|---|---|---|---|
data.match | object | required | Match value used by this API operation. |
data.match.kind | string | required | Kind value used by this API operation. Constant: jev_use_case |
data.match.name | string | required | Name value used by this API operation. |
| Name | Type | Required | Description |
|---|---|---|---|
data.match | null | required | Null for ambiguous and no_match responses. |
data.match.method |
string |
| required |
Method value used by this API operation. Constant: POST |
data.match.endpoint | string | required | Endpoint value used by this API operation. |
data.match.mcpToolName | string | required | Mcp tool name value used by this API operation. |
data.match.useCase | string | required | Use case value used by this API operation. |
data.match.schemaEndpoint | string | required | Schema endpoint value used by this API operation. |
data.match.schemaPointer | string | required | Schema pointer value used by this API operation. |
data.match.docsPath | string | required | Docs path value used by this API operation. |