canonical: https://jentic.com/apis/swaggerhub.truckertools/smart-capacity---smart-routes-api

# Truckertools Smart Capacity - Smart Routes API

Specification of API to manage Smart Route in Trucker Tools Platform. The API exposes 7 endpoints.

## For AI agents

Programmatically add a smart route, get a smart route. Covers 7 operations.

## Scope

Does not handle payments, communications, or crm - use for maps and geolocation only.

## Capabilities

- Add a smart route
- Get a smart route
- Update a Smart Route
- Delete a Smart Route
- Activate a smart route
- Deactivate a smart route

## Use cases

### Maps and Geolocation Operations

Use the Smart Capacity - Smart Routes API to perform maps geolocation operations programmatically. The API provides 7 endpoints covering core functionality including add a smart route, get a smart route, update a smart route.

Example prompt: Call POST `/smartroute/create` to add a smart route

### Automated Smartroutes Management

Automate smartroutes operations by combining multiple Smart Capacity - Smart Routes API endpoints. Agents can get a smart route and then update a smart route in a single workflow.

Example prompt: Call GET `/smartRoutes/{id}` to get a smart route, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Smart Capacity - Smart Routes API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle none tokens manually.

Example prompt: Search Jentic for 'add a smart route', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/smartroute/create` | Add a smart route |
| GET | `/smartRoutes/{id}` | Get a smart route |
| PUT | `/smartRoutes/{id}` | Update a Smart Route |
| DELETE | `/smartRoutes/{id}` | Delete a Smart Route |
| GET | `/smartroute/all` | Get all smart routes |
| POST | `/smartroute/{id}/activate` | Activate a smart route |
| POST | `/smartroute/{id}/deactivate` | Deactivate a smart route |

## Key resources

- **Smartroutes** — Operations for smartRoutes
- **Smartroute** — Operations for smartroute

## Why Jentic

- **Setup:** Wiring the Smart Capacity Smart Routes API by hand means pointing at its SwaggerHub host and building your own retries across the create, update, and activate endpoints, even though it exposes no auth scheme. Through Jentic you install once, import Smart Routes from the API Directory, store the connection details once, and your agent calls it.
- **Permission scoping:** This API puts the route id in the URL path (`/smartRoutes/{id}`), so a rule can pin your agent to one smart route: it can read, update, and activate that route and nothing else. You choose the operations it may call, so destructive ones like deleting or deactivating a route are not included unless you add them.
- **Credential handling:** Any connection details for Smart Routes are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'create a smart route' or 'activate a smart route', and Jentic returns the matching Smart Routes operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Here** — Alternative maps geolocation API
- **Tomtom** — Alternative maps geolocation API
- **Googleapis** — Complementary maps geolocation API

## FAQ

### What authentication does the Smart Capacity - Smart Routes API use?

The Smart Capacity - Smart Routes API uses no authentication. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I add a smart route with the Smart Capacity - Smart Routes API?

Yes. Use the POST `/smartroute/create` endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Smart Capacity - Smart Routes API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I add a smart route through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'add a smart route'. Jentic returns the matching Smart Capacity - Smart Routes API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Smart Capacity - Smart Routes API have?

The Smart Capacity - Smart Routes API exposes 7 endpoints covering smartroutes, smartroute operations.

### Can I limit what my agent is allowed to do with the Smart Routes API?

Yes. Because you run Jentic One yourself, your own rules decide which Smart Routes operations and connection details the agent can use. Since the route id sits in the URL path at `/smartRoutes/{id}`, you can pin the agent to a single route so it only reads, updates, and activates that one route. You also pick the operations it may call, so destructive actions like DELETE `/smartRoutes/{id}` or POST `/smartroute/{id}/deactivate` stay out of reach unless you explicitly grant them.
