canonical: https://jentic.com/apis/sesc-rs.com.br/sesc-rs

# Sesc Rs APICatraca

The APICatraca API checks whether a person may pass through a SESC-RS turnstile and records the access event once they do. Each call carries an AcessoIN object naming the client identifier, the equipment identifier, the read type, the direction of passage, and the access timestamp. The Valida operation returns whether entry is permitted along with the person's name, person type, and a message, Registra logs the passage and reports success, and ValidaRegistra performs the check and the registration in one request. The spec points at a SESC-RS development host, so confirm the production base URL with SESC-RS before relying on it.

## For AI agents

Validate turnstile access for a SESC-RS client and register the passage, using the client identifier, equipment identifier, direction, and access time.

## Scope

Does not handle membership sign-up, payments, or class scheduling. Use for validating and registering SESC-RS turnstile access only.

## Capabilities

- Check whether a client identifier is permitted through a given turnstile with the Valida operation
- Record a turnstile passage with its equipment identifier, direction, and DataHoraAcesso timestamp via Registra
- Validate and register an access in a single request with ValidaRegistra
- Read the person's Nome and TipoPessoa returned with an access decision to show at the gate
- Surface the Mensagem text returned with a denial so staff can see why entry was refused

## Use cases

### Agent-assisted gate checks through Jentic

An AI agent connected through Jentic can answer front-desk questions such as whether a client may enter a SESC-RS unit. It calls the Valida operation with the client identifier and the turnstile's equipment identifier, reads the Permitido flag and the Mensagem text, and reports the decision without recording a passage. Jentic handles the OAuth 2.0 password-flow token so the agent never holds the credential.

Example prompt: Call POST /Valida with AcessoIN containing IdentificadorCliente '123456', IdentificadorEquipamento 'CATRACA-01', TipoLeitura 1, SentidoEquipamento 1, and DataHoraAcesso '2026-11-23T09:00:00Z', then report the Permitido and Mensagem values

### Turnstile entry with single-call validation and logging

A turnstile controller that needs one round trip per scan uses ValidaRegistra: it sends the client identifier, equipment identifier, read type, direction, and timestamp, and receives the same access decision fields as Valida, with the passage registered in the same request. This keeps the gate response fast while still producing an access record.

Example prompt: Call POST /ValidaRegistra with AcessoIN for IdentificadorCliente '123456' at IdentificadorEquipamento 'CATRACA-02' with SentidoEquipamento 2 and the current DataHoraAcesso, then return Permitido and Nome

### Recording passages after an offline period

When a turnstile has admitted people without reaching the server, the queued passages can be sent afterwards with Registra. Each call carries the original DataHoraAcesso so the access log reflects when the person actually passed, and the Sucesso flag confirms the record was stored.

Example prompt: For each queued passage, call POST /Registra with AcessoIN containing IdentificadorCliente, IdentificadorEquipamento, TipoLeitura, SentidoEquipamento, and the original DataHoraAcesso, and collect any calls where Sucesso is false

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/Valida` | Check whether a client may pass a turnstile |
| POST | `/ValidaRegistra` | Validate and register an access in one call |
| POST | `/Registra` | Register a turnstile passage |

## Key resources

- **Access request (AcessoIN)** — Input object with TipoLeitura, IdentificadorCliente, IdentificadorEquipamento, SentidoEquipamento, and DataHoraAcesso
- **Access decision** — Response with Permitido, Nome, TipoPessoa, and Mensagem returned by Valida and ValidaRegistra
- **Registration result** — Response with Sucesso and Mensagem returned by Registra

## 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:** 0 / 100
- **Maturity:** Non-Ready
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 23 / 100
  - Agent Usability: 94 / 100
  - Security: 30 / 100
  - AI Discoverability: 0 / 100
- **View full report:** https://jentic.com/apis/sesc-rs.com.br/sesc-rs/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 APICatraca by hand means running its OAuth 2.0 password flow against the SESC-RS token URL, refreshing the token, and building the nested AcessoIN payload yourself. Through Jentic you install once, import APICatraca from the API Directory, store the credential once, and your agent calls it.
- **Permission scoping:** APICatraca carries the client and turnstile identifiers inside the request body, so rules bound which operations your agent may call, not which client or gate. Limit the agent to the operations it needs, such as Valida, and Registra is not included unless you add it.
- **Credential handling:** Your SESC-RS credential 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 'check turnstile access' or 'record a gate entry', and Jentic returns the matching APICatraca operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Seam Connect** — Unified API for smart locks and access control systems
- **Verkada API** — Building security platform covering cameras and access control
- **Mindbody API** — Client, class, and membership management for gyms and wellness businesses

## FAQ

### What authentication does the APICatraca API use?

Per its OpenAPI spec, APICatraca uses an OAuth 2.0 scheme named oAuthGXGAM with the password flow, a token URL at `/oauth/access_token` on the SESC-RS development host, and the fullcontrol scope. All three operations declare this scheme. Through Jentic, the credential is stored encrypted by your own Jentic One instance and the token is attached at call time.

### Can I check access without recording a passage?

Yes. The Valida operation returns the access decision (Permitido, Nome, TipoPessoa, Mensagem) without a separate registration step. Use ValidaRegistra when you want the check and the record in one call, or Registra to record a passage on its own.

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

The OpenAPI spec does not specify rate limits. Check with SESC-RS at https://www.sesc-rs.com.br for current limits and for the production base URL, since the spec points at a development host.

### Is there an APICatraca MCP server?

You don't need an MCP server to give your agent APICatraca. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls Valida, Registra, or ValidaRegistra as it needs them.

### How do I validate a turnstile entry through Jentic?

Search Jentic for 'check turnstile access for a client', load the POST /Valida operation, and execute it with an AcessoIN object holding the IdentificadorCliente, IdentificadorEquipamento, TipoLeitura, SentidoEquipamento, and DataHoraAcesso. The agent then reads Permitido to decide. To run it on your own infrastructure, install Jentic One from its GitHub repo.

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

Yes. For a front-desk assistant, write a rule that allows only the Valida operation: the agent can answer whether a client may enter, but it cannot write passages to the access log through Registra or ValidaRegistra. Every call it makes is logged for review.
