API
Documentation API
L’API REST Diskovri est disponible sur /api/v1 pour consulter les prospects enrichis, suivre les exécutions des agents et lancer un enrichissement en arrière-plan.
Authentifiez vos requêtes avec X-API-Key. Les clés disposent de permissions telles que leads:read et agents:trigger.
Schéma source : https://diskovri.com/api/v1/openapi
OpenAPI 3.1.0 · version 1.3.0
Référence des endpoints
6 opérations générées à partir du schéma fourni avec cette version. Les descriptions techniques du schéma sont en anglais. Les opérations authentifiées utilisent l’en-tête X-API-Key.
/leadsList leads
Returns a paginated list of leads, scoped to the API key's workspace. Duplicates are excluded by default (`is_canonical = true OR duplicate_of IS NULL`).
- Catégorie
- Leads
- Permission requise
- leads:read
| Nom | Emplacement | Type | Obligation | Description |
|---|---|---|---|---|
| page | query | integer | Facultatif | — |
| per_page | query | integer | Facultatif | — |
| status | query | string | Facultatif | — |
| city | query | string | Facultatif | — |
| min_score | query | number | Facultatif | — |
| max_score | query | number | Facultatif | — |
| search | query | string | Facultatif | Substring match on `company_name`. |
| sort | query | string | Facultatif | — |
| order | query | string | Facultatif | — |
Réponses
200Paginated list of leads.400Response401Response403Response429Response500Response
/leads/{id}Get a lead by ID
- Catégorie
- Leads
- Permission requise
- leads:read
| Nom | Emplacement | Type | Obligation | Description |
|---|---|---|---|---|
| id | path | string (uuid) | Obligatoire | — |
Réponses
200The lead record.400Response401Response403Response404Response429Response
/agentsList agents
Returns the 18 known agents and the status of their most recent run.
- Catégorie
- Agents
- Permission requise
- agents:read
Réponses
200All agents with last-run summary.401Response403Response429Response
/agentsTrigger an agent run
Inserts a job into `job_queue`. The Python worker (or pg_notify listener) picks it up. Returns the `job_id` so callers can poll `/agents/{name}` for progress.
- Catégorie
- Agents
- Permission requise
- agents:trigger
Réponses
201Job enqueued.400Response401Response403Response429Response500Response
/agents/{name}Get agent details and recent run history
- Catégorie
- Agents
- Permission requise
- agents:read
| Nom | Emplacement | Type | Obligation | Description |
|---|---|---|---|---|
| name | path | string | Obligatoire | Agent identifier (underscored form). |
Réponses
200Agent record with the last 20 runs.400Response401Response403Response429Response500Response
/openapiOpenAPI 3.1 schema
Returns this document. No authentication required.
- Catégorie
- Meta
- Permission requise
- Endpoint public
Réponses
200OpenAPI 3.1 schema as JSON.429Response