canonical: https://jentic.com/apis/sinthoma.com.br/sinthoma

# Sinthoma — superfície pública para agentes (Conector MCP)

The Sinthoma API gives a psychologist's AI assistant read-only access to their own Sinthoma clinical records through one authenticated JSON-RPC 2.0 connector endpoint over Streamable HTTP. Through it, the assistant can list recent patients by last session, search one patient's records for a term and get back literal excerpts with the session and date they came from, and build a preparation briefing for a patient's next session. Searching records and preparing sessions require the patient's consent to AI use, every read is audited, and nothing is written to the record. The rest of the public surface is unauthenticated discovery: OAuth protected-resource and authorization-server metadata, a server card, and the OpenAPI document itself.

## For AI agents

Read a psychologist's own Sinthoma records with their consent: list recent patients, search one patient's notes for literal excerpts, and prepare a briefing for the next session. Read-only and audited.

## Scope

Does not handle scheduling, billing, writing or editing records, or access to any other professional's patients. Use for read-only, consented access to a psychologist's own Sinthoma records only.

## Capabilities

- List the psychologist's patients ordered by most recent session with the listar_pacientes_recentes tool, returning only name, last session date, and session count
- Search one patient's records for a literal term with buscar_registros_do_paciente and get back verbatim excerpts with their session and date
- Prepare a briefing for a patient's next session with preparar_sessao, using the same mechanism as the Sinthoma app
- Connect with a personal sinth_ token or OAuth 2.0 with PKCE (S256), using scopes pacientes:ler, sessoes:ler, preparo:ler, and offline_access
- Discover the connector and its auth requirements from public RFC 9728 protected-resource metadata, RFC 8414 authorization-server metadata, and the server card

## Use cases

### A psychologist's assistant connected through Jentic

A psychologist who uses Sinthoma can let their own AI assistant read their records through Jentic without pasting the personal sinth_ token into the assistant. Jentic stores the token in the psychologist's own Jentic One instance and calls the Sinthoma connector endpoint with it, so the assistant can list recent patients or prepare a session briefing while the token stays out of its context. Access stays read-only and is audited on the Sinthoma side.

Example prompt: Search Jentic for 'list my recent patients', then POST `/api/mcp` with a JSON-RPC tools/call request for listar_pacientes_recentes with arguments {"limite": 5}, and return the names and last session dates

### Session preparation

Before an appointment, a psychologist can ask their assistant for a briefing on the patient. The preparar_sessao tool takes a paciente_id and builds the briefing with the same mechanism the Sinthoma app uses; it requires the patient's consent to AI use and the preparo:ler scope.

Example prompt: POST `/api/mcp` with a JSON-RPC tools/call request for preparar_sessao with paciente_id '3f2b8c1e-0000-4000-8000-000000000001', and return the briefing text

### Finding what was written in a patient's record

When a psychologist wants to recall exactly what they noted, the buscar_registros_do_paciente tool searches one patient at a time for a literal term, with no wildcards, and returns verbatim excerpts with the session and date they came from. It does not summarise or interpret, which keeps the psychologist's own words intact.

Example prompt: POST `/api/mcp` with a JSON-RPC tools/call request for buscar_registros_do_paciente with paciente_id '3f2b8c1e-0000-4000-8000-000000000001', termo 'insônia', and limite 5, and list the excerpts with their dates

### Client setup from public discovery metadata

A developer wiring a client for Sinthoma can configure it entirely from the public discovery endpoints. The authorization-server metadata gives the authorize, token, and register endpoints and confirms PKCE S256 is mandatory, the protected-resource metadata describes the connector, and the server card gives its name, description, version, and remote address. None of these require authentication.

Example prompt: GET /.well-known/oauth-authorization-server and GET /.well-known/oauth-protected-resource/api/mcp, then report the authorize and token URLs, the supported scopes, and the PKCE method

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/api/mcp` | Authenticated connector endpoint (JSON-RPC 2.0) |
| GET | `/.well-known/oauth-authorization-server` | Authorization server metadata |
| GET | `/.well-known/oauth-protected-resource` | Protected resource metadata |
| GET | `/.well-known/mcp` | Server card by domain discovery |
| GET | `/openapi.json` | OpenAPI document for the public surface |

## Key resources

- **Connector endpoint** — Authenticated JSON-RPC 2.0 endpoint over Streamable HTTP exposing three read-only tools: listar_pacientes_recentes, buscar_registros_do_paciente, and preparar_sessao
- **OAuth discovery metadata** — Public protected-resource metadata (RFC 9728) and authorization-server metadata (RFC 8414)
- **Server card and OpenAPI document** — Public server card with name, description, version, and remote address, and the OpenAPI document with a versioned alias

## 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:** 78 / 100
- **Maturity:** AI-Ready
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 74 / 100
  - Agent Usability: 94 / 100
  - Security: 75 / 100
  - AI Discoverability: 69 / 100
- **View full report:** https://jentic.com/apis/sinthoma.com.br/sinthoma/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 Sinthoma by hand means creating a personal sinth_ token in the app or running OAuth with PKCE S256 and consent, then speaking JSON-RPC 2.0 over Streamable HTTP with an initialize, tools/list, and tools/call sequence. Through Jentic you install once, import Sinthoma from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Every Sinthoma tool call goes to one connector endpoint with the tool name and patient id in the request body, so Jentic rules bound which operations your agent may call, not which tool or which patient. Pair the rule with narrow Sinthoma OAuth scopes when you want the assistant limited to listing patients.
- **Credential handling:** Your Sinthoma 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 'list my recent patients' or 'prepare a session briefing', and Jentic returns the Sinthoma connector operation with its JSON-RPC input schema so the agent sends a well-formed request without reading the Portuguese-language docs.

## Related APIs

- **DrChrono API** — Electronic health record API with patients, appointments, and clinical notes
- **athenahealth API** — Practice management and EHR API for medical practices
- **Anthropic Messages API** — Language model API an assistant can use to work with the excerpts Sinthoma returns

## FAQ

### What authentication does the Sinthoma API use?

Per its OpenAPI spec, the connector endpoint POST `/api/mcp` accepts either a personal bearer token starting with sinth_, which the psychologist creates in Sinthoma under Settings then Connector, or OAuth 2.0 authorization code with PKCE (S256) and the professional's consent, with scopes pacientes:ler, sessoes:ler, preparo:ler, and offline_access. The personal token cannot be created through the API. The eight discovery and document endpoints are public and need no credential. Through Jentic, the token is stored encrypted by your own Jentic One instance and injected at execution time, so it never enters the agent's prompt, logs, or context.

### Is there a Sinthoma MCP server?

Yes - Sinthoma's public surface is itself an MCP server: POST `/api/mcp` is a stateless Streamable HTTP, JSON-RPC 2.0 endpoint, and its server card is published at /.well-known/mcp. You can also connect it through Jentic: your sinth_ token is injected at call time by your self-hosted instance instead of living in an MCP config file, your rules decide which operations the agent may call, and connecting the next API is an import rather than another install and config.

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

Yes, at two levels. In Jentic, write a rule that allows only POST `/api/mcp` and the public metadata reads; because the tool name travels in the JSON-RPC request body, the rule bounds the operation, not which of the three tools is called. To narrow tools, use Sinthoma's own OAuth scopes: grant pacientes:ler alone and the assistant can list recent patients but cannot read excerpts or prepare sessions.

### What are the rate limits for the Sinthoma API?

The OpenAPI spec does not give numeric limits. It says each tool has a quota per token and that the connector endpoint returns 429 when that quota is used up. Check Sinthoma's connector documentation at https://sinthoma.com.br/conector for current quotas.

### How do I prepare a session briefing with the Sinthoma API through Jentic?

Add the Sinthoma API to Jentic One from the Jentic directory and store your personal sinth_ token. Your agent searches for 'prepare a session briefing', and calls POST `/api/mcp`: first initialize, then tools/list, then tools/call for preparar_sessao with the patient's paciente_id. The patient must have consented to AI use. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can my agent change a patient's record through the Sinthoma API?

No. The spec states that all three tools are read-only, every read is audited, and nothing writes to the record. List results return only name, last session date, and session count, never CPF, phone, email, or billing data.
