canonical: https://jentic.com/apis/solas.id/solas

# Solas Id PPTM-SOLAS API

The PPTM-SOLAS API runs an equipment maintenance reporting system (Sistem Pelaporan Pemeliharaan Peralatan): operators file a repair request against a machine, supervisors assign it to engineers, and the team records repair actions, spare parts used, progress notes, and comments until the report is closed. Each request moves through statuses such as waiting, assigned, on_progress, readyForOperation, rejected, delayed, and closed. Dashboard endpoints report overall statistics, monthly report trends, engineer workload, the most-reported machines, and average resolution time, and master-data endpoints manage machines, departments, supervisors, units, priorities, users, and roles. It authenticates with Laravel Sanctum bearer tokens issued at login.

## For AI agents

File and track equipment repair requests, assign them to engineers, log repair actions, spare parts, and progress notes, and read maintenance dashboards such as engineer workload and average resolution time in PPTM-SOLAS.

## Scope

Does not monitor machine sensors, order spare parts from suppliers, or handle payroll for engineers. Use for filing, assigning, and tracking equipment maintenance reports in PPTM-SOLAS only.

## Capabilities

- File a repair request (request laporan) for a machine with the problem description, date, and time
- Move a repair request through statuses like assigned, on_progress, readyForOperation, delayed, or closed with a reason
- Assign a repair request to one or more engineers by user_ids
- Log repair actions (tindakan perbaikan) with work description, start date, service cost, and purchase request number
- Record spare parts (rincian suku cadang) used on a repair, singly or in bulk, and total their cost
- Read dashboards for engineer workload, most-reported machines, monthly report trend, and average resolution time
- Maintain the machine register (master mesin) with machine codes, names, and locations

## Use cases

### Let your agent triage maintenance requests through Jentic

A plant operations agent can file and route repair requests in PPTM-SOLAS through Jentic. It searches by intent, gets the create-request operation with its id_mesin, deskripsi_masalah, tanggal, and jam inputs, then calls the assign operation with the chosen engineers' user_ids. The Sanctum token stays on your own Jentic One instance, and a rule can keep the agent away from user and role administration.

Example prompt: Search Jentic for 'file a machine repair request', call POST /request-laporan with id_mesin, deskripsi_masalah 'Conveyor motor overheating', tanggal '2026-12-01', and jam '08:30', then call POST `/request-laporan/{id}/assign` with user_ids for two engineers

### Track repair work and parts cost

Maintenance leads need a record of what was done and what it cost. Repair actions take a uraian_pekerjaan description, tanggal_mulai_perbaikan, and optional biaya_jasa, spare parts take nama_barang, jumlah, and harga and can be posted in bulk, and the total-cost endpoint sums parts for a detail report, which gives an agent what it needs to write a repair summary.

Example prompt: Call POST /tindakan-perbaikan with id_detail_laporan, uraian_pekerjaan, and tanggal_mulai_perbaikan, then POST `/rincian-suku-cadang/bulk` for the parts used, and finish with GET `/rincian-suku-cadang/total-cost/{detailLaporanId}`

### Report on maintenance performance

Managers reviewing the maintenance team can have an agent pull the dashboard endpoints: overall statistics, status distribution, a monthly reports trend with a months parameter, engineer workload, the most frequently reported machines, and average resolution time. Together these support a weekly report on backlog and repeat failures.

Example prompt: Call GET `/dashboard/engineer-workload`, GET `/dashboard/machine-frequency`, and GET `/dashboard/avg-resolution-time`, then summarize backlog and the machines that fail most

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/request-laporan` | Create a repair request |
| PATCH | `/request-laporan/{id}/status` | Update a repair request's status |
| POST | `/request-laporan/{id}/assign` | Assign a request to engineers |
| POST | `/tindakan-perbaikan` | Log a repair action |
| POST | `/rincian-suku-cadang/bulk` | Record spare parts in bulk |
| GET | `/task-to/my-tasks` | Get the caller's assigned tasks |
| GET | `/dashboard/engineer-workload` | Get engineer workload |
| POST | `/auth/login` | Log in and get a token |

## Key resources

- **Request Laporan** — Repair requests: create, list with filters, update, change status, assign to engineers, and filter by status
- **Detail Laporan** — Work records for a request, including close by supervisor or admin
- **Tindakan Perbaikan** — Repair actions with work description, dates, service cost, and completion
- **Rincian Suku Cadang** — Spare parts used per detail report, bulk entry, and total cost
- **Comments and Catatan Progress** — Comments and progress notes attached to a detail report
- **Task Assignment** — Task assignments by request, by user, and the caller's own tasks
- **Dashboard** — Statistics, report trends, status distribution, engineer workload, machine frequency, and resolution time
- **Master data** — Machines, departments, supervisors, units, priorities, engineer types, users, and roles

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 43 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 89 / 100
  - Developer Experience & Jentic Compatibility: 59 / 100
  - AI-Readiness & Agent Experience: 20 / 100
  - Agent Usability: 78 / 100
  - Security: 60 / 100
  - AI Discoverability: 61 / 100
- **View full report:** https://jentic.com/apis/solas.id/solas/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring PPTM-SOLAS by hand means logging in to get a Sanctum bearer token, refreshing it before it lapses, and learning field names like id_mesin and deskripsi_masalah across its report, repair, and parts resources. Through Jentic you install once, import PPTM-SOLAS from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** PPTM-SOLAS puts record ids in the URL path (`/request-laporan/{id}/status`, `/detail-laporan/{id}/close-admin`), so a rule can pin your agent to one repair request and the operations you pick. You choose the operations it may call, so destructive ones like deleting users or roles are not included unless you add them.
- **Credential handling:** Your PPTM-SOLAS token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'assign a repair to an engineer' or 'get engineer workload', and Jentic returns the matching PPTM-SOLAS operation with its input schema so the agent calls the right endpoint without reading the Indonesian-language reference.

## Related APIs

- **Fiix CMMS API** — Maintenance management with work orders and assets
- **UpKeep Maintenance Management API** — Work orders, assets, and preventive maintenance
- **Maintenance Connection API** — Enterprise asset and maintenance management

## FAQ

### Is there a PPTM-SOLAS MCP server?

You don't need an MCP server to give your agent PPTM-SOLAS. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls it. Operations are looked up by intent when needed, so the agent never loads all of the maintenance, dashboard, and master-data operations into its context.

### Can I limit what my agent is allowed to do with PPTM-SOLAS?

Yes. For example, allow only POST /request-laporan, GET /request-laporan, and PATCH `/request-laporan/{id}/status`: the agent can file and update repair requests but cannot create users, change roles, or delete machines from the register, and every call is logged. Because request ids sit in the URL path, you can go narrower and limit status changes to one request id.

### What authentication does the PPTM-SOLAS API use?

The PPTM-SOLAS API uses bearer authentication per its OpenAPI spec, with tokens issued by Laravel Sanctum. You call POST `/auth/login` with a password and either an email or username to get a token, then send it as Authorization: Bearer. POST `/auth/refresh` renews it and POST `/auth/logout-all` revokes it on every device. Through Jentic the token is stored encrypted by your own Jentic One instance and injected at call time.

### Which statuses can a PPTM-SOLAS repair request have?

PATCH `/request-laporan/{id}/status` accepts the spec's enum of draft, waiting, assigned, on_progress, inspeksiKalibrasi, pengujianUlang, readyForOperation, rejected, delayed, and closed. A rejected or delayed status takes an alasan field with the reason, and GET `/request-laporan/statuses` lists the available values.

### How do I record spare parts for a repair?

POST /rincian-suku-cadang takes id_detail_laporan, nama_barang, jumlah, and harga, with an optional unit and note, and POST `/rincian-suku-cadang/bulk` adds several at once. GET `/rincian-suku-cadang/total-cost/{detailLaporanId}` returns the total parts cost for that detail report.

### How do I file a repair request through Jentic?

Install Jentic One, add PPTM-SOLAS from the Jentic API Directory, store your Sanctum token, and have your agent search for 'file a machine repair request'. Jentic returns POST /request-laporan with its required id_mesin, deskripsi_masalah, tanggal, and jam inputs, and the agent calls it. To run it on your own infrastructure, install Jentic One from its GitHub repo.
