canonical: https://jentic.com/apis/dbsecureapi/dbsecureapi

# DbSecure API

DbSecure is Larcier Group's identity provider, exposing a small OAuth 2.0 surface for issuing, inspecting, and revoking access tokens used by Larcier's legal information products. The API supports the client credentials flow with HTTP Basic at the token endpoint, then bearer tokens for follow-on calls. It is a minimal three-endpoint surface focused purely on token lifecycle and userinfo retrieval, not full identity management.

## For AI agents

Mint, introspect, and revoke OAuth 2.0 access tokens for Larcier Group's DbSecure identity provider so an agent can authenticate against downstream Larcier services.

## Scope

Does not handle user signup, password resets, MFA enrolment, or directory management - use for OAuth 2.0 token lifecycle against Larcier DbSecure only.

## Capabilities

- Exchange client credentials for an OAuth 2.0 access token at `/oauth2/token`
- Retrieve the user record associated with a bearer token via `/oauth2/info`
- Revoke an issued access token through `/oauth2/revoke`
- Authenticate the token endpoint with HTTP Basic using client_id and client_secret
- Pass bearer tokens in the Authorization header for protected userinfo and revocation calls

## Use cases

### Server-to-server token issuance for Larcier clients

Backend services that consume Larcier legal data products need short-lived access tokens before calling protected endpoints. DbSecure issues these via the OAuth 2.0 client credentials grant at `/oauth2/token`, authenticated with HTTP Basic over the client_id and client_secret. Tokens are bearer-format and the response carries the standard expiry, making rotation straightforward for scheduled jobs and integration workers.

Example prompt: POST to `/oauth2/token` with grant_type=client_credentials and an HTTP Basic header, then store the returned access_token and expires_in for reuse.

### Userinfo lookup for downstream authorisation

When a Larcier-integrated app receives a bearer token, it can call `/oauth2/info` to retrieve the user record that the token represents. This is used for mapping the upstream Larcier identity into a local session, applying entitlements, or auditing which user performed an action. The endpoint requires the Bearer scheme with the issued access token in the Authorization header.

Example prompt: POST to `/oauth2/info` with Authorization: Bearer {access_token} and parse the returned user object into the local session.

### Token revocation on logout or compromise

When a user signs out of a Larcier-integrated workflow or a token is suspected of leakage, the issuing system must revoke it explicitly. DbSecure exposes `/oauth2/revoke` for this purpose, immediately invalidating the access token so any subsequent userinfo or downstream call fails. This is the recommended path for compliance-sensitive deployments where token lifetime alone is insufficient.

Example prompt: POST to `/oauth2/revoke` with the token to invalidate and confirm the 200 response before clearing local session state.

### AI agent authenticating to Larcier through Jentic

An AI agent that needs to query Larcier legal content can use Jentic to discover DbSecure's token endpoint, fetch credentials from the encrypted vault, and exchange them for a bearer token without ever placing the client secret in the model context. The agent then attaches the access token to follow-on calls and revokes it cleanly when the workflow finishes, keeping every credential interaction inside Jentic's your Jentic One instance.

Example prompt: Search Jentic for 'mint a DbSecure access token', execute `/oauth2/token`, attach the bearer token to the next downstream call, and revoke it via `/oauth2/revoke` when done.

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/oauth2/token` | Generate access token via client credentials |
| POST | `/oauth2/info` | Retrieve user data for a bearer token |
| POST | `/oauth2/revoke` | Revoke an issued access token |

## Key resources

- **OAuth2** — Token issuance, userinfo, and revocation endpoints under the /oauth2 path

## 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:** 66 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 93 / 100
  - Developer Experience & Jentic Compatibility: 81 / 100
  - AI-Readiness & Agent Experience: 59 / 100
  - Agent Usability: 94 / 100
  - Security: 30 / 100
  - AI Discoverability: 100 / 100
- **View full report:** https://jentic.com/apis/dbsecureapi/dbsecureapi/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 the DbSecure API by hand means learning its two-part auth: HTTP Basic with the client key and secret to mint a token, then a Bearer token on later calls, all against the Larcier sandbox host. Through Jentic you install once, import the DbSecure API from the API Directory, store the client credentials once, and your agent calls it.
- **Permission scoping:** DbSecure carries the token in the request body rather than as a resource id in the URL path, so limit the agent to the operations it needs, such as minting a token or inspecting one. Because you pick the operations, token revocation is not included unless you add it.
- **Credential handling:** Your DbSecure client key and client secret are stored once, encrypted, by your own Jentic One instance and used to build the Basic and Bearer headers at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'mint a DbSecure access token', and Jentic returns the matching /oauth2 operation with its input schema so the agent calls the right endpoint without browsing Larcier's docs.

## Related APIs

- **Auth0 Management API** — General-purpose identity platform with full user management, social logins, and enterprise SSO.
- **Okta API** — Enterprise identity and SSO platform with directory services and lifecycle management.
- **Salesforce API** — CRM that legal-tech workflows often pair with Larcier content for matter and contact management.

## FAQ

### What authentication does the DbSecure API use?

DbSecure uses two schemes. The `/oauth2/token` endpoint authenticates with HTTP Basic over your Larcier client_id and client_secret, and the `/oauth2/info` and `/oauth2/revoke` endpoints take a Bearer token in the Authorization header. Through Jentic, both credential pairs stay in the encrypted vault and never enter the agent's context window.

### Can I introspect a DbSecure token to see who it belongs to?

Yes. POST to `/oauth2/info` with Authorization: Bearer {access_token} and DbSecure returns the user record associated with that token. This is useful for mapping the Larcier identity into your local session or applying per-user entitlements.

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

The published OpenAPI spec does not document explicit rate limits for DbSecure. Treat the token endpoint as a hot path and cache access tokens until their expires_in elapses rather than minting a new token per request.

### How do I mint a DbSecure access token through Jentic?

Run pip install jentic, then search for 'mint a DbSecure access token'. Jentic returns the `/oauth2/token` operation with its input schema. Load the operation, supply grant_type=client_credentials, and execute. Jentic handles the HTTP Basic header from the stored credentials and returns the access_token directly.

### Is the DbSecure API a general-purpose user management system?

No. The spec exposes only three endpoints, all under /oauth2: token issuance, userinfo, and revocation. There are no endpoints for creating users, resetting passwords, or managing groups. DbSecure is purely a token-issuance surface for downstream Larcier products.

### How do I revoke a DbSecure token when a user logs out?

POST to `/oauth2/revoke` with the access token to invalidate. After a 200 response, any subsequent call to `/oauth2/info` with that token will fail. Pair this with clearing the local session to keep the lifecycle clean.

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

Yes. Because Jentic One is self-hosted, your own rules decide which of the three DbSecure operations the agent may call and which credentials it may use, so you can allow only minting a token at `/oauth2/token` and inspecting one at `/oauth2/info` while leaving revocation at `/oauth2/revoke` out. DbSecure passes the token in the request body rather than as a resource id in the URL path, so scoping is done at the operation level rather than by path pattern. The agent gets exactly the token-lifecycle calls you grant and nothing more.
