canonical: https://jentic.com/apis/obat.fr/obat

# Obat Fr Projet - Client Import API

The Obat Client Import API imports customer records into Obat Sales from a CSV file. It lists existing clients, analyzes an uploaded CSV and flags each row as new, duplicate, or invalid, and then creates the selected clients from that analysis. The flow lets a user review the analysis and choose which rows to import before any client is created.

## For AI agents

List existing Obat clients, analyze a CSV of clients and flag each row as new, duplicate, or invalid, and create the selected clients in Obat Sales.

## Scope

Does not handle invoicing, quotes, or project management in Obat. Use for importing client records from CSV only.

## Capabilities

- List the existing client records in Obat Sales
- Analyze an uploaded CSV and flag each row as new, duplicate, or invalid
- Create the selected clients in Obat Sales from the reviewed analysis

## Use cases

### AI Agent Client Import

An AI agent connected through Jentic imports a batch of clients into Obat Sales: it analyzes the uploaded CSV, reads which rows are new, and confirms those rows to create the clients. The analyze-then-confirm flow means the agent never creates records blindly from a raw file.

Example prompt: Analyze a client CSV, then confirm the new rows to create them in Obat Sales

### Duplicate Detection Before Import

Before importing, a system uploads a CSV and reads the analysis that flags each row as new, duplicate, or invalid, so duplicates and bad rows are caught before any client is created. This keeps the Obat client list clean.

Example prompt: Upload a CSV and read which rows are flagged as duplicate or invalid

### Existing Client Review

An agent lists the clients already in Obat Sales to decide which CSV rows are genuinely new before importing. This gives context for the import decision without leaving the API.

Example prompt: List the existing clients to decide which CSV rows to import

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/client/list` | List existing clients |
| POST | `/client/import` | Analyze a CSV file of clients |
| POST | `/client/send` | Confirm and create the selected clients |

## Key resources

- **Clients** — List existing client records in Obat Sales
- **Import** — Analyze a CSV and confirm which clients to create

## 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:** 72 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 80 / 100
  - AI-Readiness & Agent Experience: 61 / 100
  - Agent Usability: 94 / 100
  - Security: 50 / 100
  - AI Discoverability: 63 / 100
- **View full report:** https://jentic.com/apis/obat.fr/obat/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 Obat Client Import API by hand means obtaining the Obat JWT cookie, uploading the CSV, and sequencing analysis before the confirm step yourself. Through Jentic you install once, import it from the API Directory, store the credential once, and your agent calls it.
- **Permission scoping:** The Obat Client Import API carries the CSV file and the selected rows in the request body, so rules bound which operations your agent may call, not which clients it creates. You choose the operations it may use, such as listing clients and analyzing a CSV, so confirming and creating clients is not included unless you add it.
- **Credential handling:** Your Obat JWT 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 'import clients from a CSV' or 'list existing clients', and Jentic returns the matching Obat operation with its input schema so the agent calls the right endpoint without reading the reference docs.

## Related APIs

- **Salesforce** — Salesforce manages contacts and offers bulk import of client records.
- **Insightly** — Insightly is a CRM that stores and imports contact records.
- **Airtable** — Airtable holds the client data an agent prepares before import.

## FAQ

### What authentication does the Obat Client Import API use?

It authenticates with an Obat JWT passed in the `jwt_payload` cookie, as declared in its OpenAPI spec. Through Jentic that credential is stored encrypted by your own Jentic One instance and injected at call time, so it never appears in the agent's prompt or logs.

### Can I detect duplicate clients before importing with the Obat Client Import API?

Yes. The import operation analyzes an uploaded CSV and flags each row as new, duplicate, or invalid, so you can review the analysis and choose which rows to create before any client is added.

### What are the rate limits for the Obat Client Import API?

The OpenAPI spec does not specify rate limits for the Obat Client Import API. Check your Obat account documentation for any limits before running large client imports.

### Can I limit what my agent is allowed to do with the Obat Client Import API?

Yes. Write a rule that allows only the client-list and CSV-analysis operations, so the agent can review existing clients and check an import file but cannot confirm and create new clients, and every call it makes is logged.

### How do I import clients with the Obat Client Import API through Jentic?

Search Jentic for 'import clients from a CSV', add the Obat Client Import API from the directory, and store your Obat credential once. Your agent analyzes the CSV and confirms the rows to import. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there an Obat Client Import API MCP server?

You don't need an MCP server to give your agent the Obat Client Import API. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls the list, analyze, and confirm operations. That keeps extra tool definitions out of the agent's context.
