# Jurisprudencia Tst — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and retrieve judicial decisions from Brazil's Superior Labor Court with filters by date, court body, and keywords to access decision summaries, outcomes, and full texts. Quickly find relevant labor law precedents and court rulings to support legal research and case analysis.

**Category:** Government & Public Data | **Website:** [jurisprudencia.tst.jus.br/](https://jurisprudencia.tst.jus.br/) | **Docs:** [parse.bot/marketplace/aa19bb38-544d-44bd-b5da-6cd4be50cab0/jurisprudencia-tst-jus-br-api](https://parse.bot/marketplace/aa19bb38-544d-44bd-b5da-6cd4be50cab0/jurisprudencia-tst-jus-br-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/jurisprudencia-tst/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get decision detail

Retrieve detailed information for a specific TST decision by its unified process number. Returns the full inteiro teor text, ementa, dispositivo, parties, and auto-generated summary. Optional date range and judicial body filters narrow the search when the process number has multiple associated decisions.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date_end` | string | No | End date to narrow search (YYYY-MM-DD) |
| `date_start` | string | No | Start date to narrow search (YYYY-MM-DD) |
| `orgao_sigla` | string | No | Judicial body sigla to narrow search. Accepted values: CSJT, OE, PLENO, SDC, SDI1, SDI2, SDIPLENA, SESEAD, T1, T2, T3, T4, T5, T6, T7, T8 |
| `process_number` | string | Yes | Process number in unified format (e.g., '0010535-70.2022.5.03.0078') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jurisprudencia-tst/get-decision-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date_end":"<string>","date_start":"<string>","orgao_sigla":"<string>","process_number":"<string>"}'
```

### List orgaos judicantes

List all available judicial bodies (órgãos judicantes) at TST, with their numeric codes and siglas. Use the sigla values as filters in search_decisions and get_decision_detail.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jurisprudencia-tst/list-orgaos-judicantes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search decisions

Full-text search over TST jurisprudence decisions with flexible filters. Supports general query terms (OR logic), exact phrase, ementa-scoped and dispositivo-scoped terms, exclusion terms, judicial body filtering, date ranges, and document type filtering. Paginates via integer page counter. Each decision includes ementa, dispositivo, auto-generated summary, and optionally the full inteiro teor text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date_end` | string | No | End date in YYYY-MM-DD format |
| `date_start` | string | No | Start date in YYYY-MM-DD format |
| `dispositivo_term` | string | No | Search within dispositivo |
| `ementa_term` | string | No | Search within ementa |
| `exact_term` | string | No | Exact phrase search |
| `exclude_term` | string | No | Terms to exclude from results |
| `include_full_text` | string | No | Include full inteiro teor text (true/false) |
| `orgao_sigla` | string | No | Judicial body sigla. Accepted values: CSJT, OE, PLENO, SDC, SDI1, SDI2, SDIPLENA, SESEAD, T1, T2, T3, T4, T5, T6, T7, T8 |
| `page` | integer | No | Page number (1-indexed) |
| `page_size` | integer | No | Results per page (max 50) |
| `query` | string | No | General search terms (OR logic) |
| `tipos` | string | No | Document types, comma-separated (default: ACORDAO) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jurisprudencia-tst/search-decisions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date_end":"<string>","date_start":"<string>","dispositivo_term":"<string>","ementa_term":"<string>","exact_term":"<string>","exclude_term":"<string>","include_full_text":"<string>","orgao_sigla":"<string>","page":"<integer>","page_size":"<integer>","query":"<string>","tipos":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.