Skip to content
Support

Agents virtuels ​

Choisir l'agent virtuel d'un entretien.

Chaque appel porte votre clé et l'id du recruteur : voir Authentification et clés. Les listes, les erreurs et les quotas suivent les Conventions. Les descriptions ci-dessous sont celles du code : elles sont en anglais, comme les identifiants techniques.

Les exemples lisent votre clé, l'id du recruteur et les identifiants dans des variables d'environnement : CLE, RECRUTEUR_ID, puis AGENT_ID, INTERVIEW_ID… Une réponse d'exemple montre les champs principaux : l'API peut en renvoyer d'autres. Tous ces appels sont aussi dans la collection Postman.

Lister les agents virtuels ​

GET /partner/agents

List virtual agents

Paginated: page from 1, pageSize up to 100. See « Listes » in the conventions.

Paramètres

NomEmplacementTypeRequisDescription
pagequeryintegernonDéfaut : 1.
pageSizequeryintegernonDéfaut : 20.
searchquerystringnon
statusqueryactive · inactive · allnonDéfaut : active.
organizationIdquerystring (uuid)non
categoryIdsquerystring (uuid)[]nonComma-separated
skillIdquerystringnon
clientNamequerystringnon
createdByIdquerystring (uuid)non
cityquerystringnon
purposequeryrecruitment · questionnairenon
sortquerytitle · citynonWithout it, virtual agents are grouped by category, then by title
orderqueryasc · descnonDéfaut : asc.

Réponses

CodeDescription
200
400Invalid request: details lists the fields at fault. Also an unsupported X-API-Version.
401Missing, revoked or expired API key, or missing or unknown acting user.
403Unknown API key, or the acting user may not act with this key or lacks the role.
404Not found, or not in the organizations of your key.
429Quota of the key exceeded: the Retry-After header gives the seconds to wait.
500Unexpected error: quote the requestId to the support.

Exemple

sh
curl "https://api.smart-interview.ai/partner/agents" \
  -H "x-api-key: $CLE" \
  -H "x-acting-user-id: $RECRUTEUR_ID"
php
<?php
$curl = curl_init('https://api.smart-interview.ai/partner/agents');
curl_setopt_array($curl, [
    CURLOPT_HTTPHEADER => [
        'x-api-key: ' . getenv('CLE'),
        'x-acting-user-id: ' . getenv('RECRUTEUR_ID'),
    ],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($curl);
echo curl_getinfo($curl, CURLINFO_RESPONSE_CODE), PHP_EOL, $response, PHP_EOL;
js
const response = await fetch('https://api.smart-interview.ai/partner/agents', {
  headers: {
    'x-api-key': process.env.CLE,
    'x-acting-user-id': process.env.RECRUTEUR_ID,
  },
});
console.log(response.status, await response.json());
python
import os

import requests

response = requests.get(
    "https://api.smart-interview.ai/partner/agents",
    headers={
        "x-api-key": os.environ["CLE"],
        "x-acting-user-id": os.environ["RECRUTEUR_ID"],
    },
)
print(response.status_code, response.json())

Réponse 200 :

json
{
  "data": [
    {
      "id": "6f1c2a9e-3b7d-4e58-9a21-7c4d8e0b5f13",
      "title": "Commis de cuisine",
      "purpose": "recruitment",
      "clientName": null,
      "city": "Lyon",
      "language": "FR",
      "active": true,
      "interviewDuration": "10",
      "category": {
        "id": "c7b3e9a2-1f6d-4c8b-9e4a-3d5f7b2c1a68",
        "name": "Hôtellerie & restauration"
      },
      "createdAt": "2026-10-20T08:30:00.000Z",
      "updatedAt": "2026-11-02T09:15:00.000Z",
      "deletedAt": null,
      "interviewCounts": {
        "done": 12,
        "pending": 3
      }
    }
  ],
  "page": 1,
  "pageSize": 20,
  "total": 1,
  "hasMore": false,
  "purposeCounts": {
    "all": 1,
    "recruitment": 1,
    "questionnaire": 0
  }
}

Lire un agent virtuel ​

GET /partner/agents/{id}

Get agent by id

Paramètres

NomEmplacementTypeRequisDescription
idpathstringoui

Réponses

CodeDescription
200Return agent by id
400Invalid request: details lists the fields at fault. Also an unsupported X-API-Version.
401Missing, revoked or expired API key, or missing or unknown acting user.
403Unknown API key, or the acting user may not act with this key or lacks the role.
404Not found, or not in the organizations of your key.
429Quota of the key exceeded: the Retry-After header gives the seconds to wait.
500Unexpected error: quote the requestId to the support.

Exemple

sh
curl "https://api.smart-interview.ai/partner/agents/$AGENT_ID" \
  -H "x-api-key: $CLE" \
  -H "x-acting-user-id: $RECRUTEUR_ID"
php
<?php
$curl = curl_init('https://api.smart-interview.ai/partner/agents/' . getenv('AGENT_ID'));
curl_setopt_array($curl, [
    CURLOPT_HTTPHEADER => [
        'x-api-key: ' . getenv('CLE'),
        'x-acting-user-id: ' . getenv('RECRUTEUR_ID'),
    ],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($curl);
echo curl_getinfo($curl, CURLINFO_RESPONSE_CODE), PHP_EOL, $response, PHP_EOL;
js
const response = await fetch(`https://api.smart-interview.ai/partner/agents/${process.env.AGENT_ID}`, {
  headers: {
    'x-api-key': process.env.CLE,
    'x-acting-user-id': process.env.RECRUTEUR_ID,
  },
});
console.log(response.status, await response.json());
python
import os

import requests

response = requests.get(
    f"https://api.smart-interview.ai/partner/agents/{os.environ['AGENT_ID']}",
    headers={
        "x-api-key": os.environ["CLE"],
        "x-acting-user-id": os.environ["RECRUTEUR_ID"],
    },
)
print(response.status_code, response.json())

Réponse 200 :

json
{
  "id": "6f1c2a9e-3b7d-4e58-9a21-7c4d8e0b5f13",
  "title": "Commis de cuisine",
  "purpose": "recruitment",
  "clientName": null,
  "city": "Lyon",
  "language": "FR",
  "active": true,
  "interviewDuration": "10",
  "category": {
    "id": "c7b3e9a2-1f6d-4c8b-9e4a-3d5f7b2c1a68",
    "name": "Hôtellerie & restauration"
  },
  "createdAt": "2026-10-20T08:30:00.000Z",
  "updatedAt": "2026-11-02T09:15:00.000Z",
  "deletedAt": null
}

Documentation d'intégration Smart Interview.