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
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
page | query | integer | non | Défaut : 1. |
pageSize | query | integer | non | Défaut : 20. |
search | query | string | non | |
status | query | active · inactive · all | non | Défaut : active. |
organizationId | query | string (uuid) | non | |
categoryIds | query | string (uuid)[] | non | Comma-separated |
skillId | query | string | non | |
clientName | query | string | non | |
createdById | query | string (uuid) | non | |
city | query | string | non | |
purpose | query | recruitment · questionnaire | non | |
sort | query | title · city | non | Without it, virtual agents are grouped by category, then by title |
order | query | asc · desc | non | Défaut : asc. |
Réponses
| Code | Description |
|---|---|
200 | |
400 | Invalid request: details lists the fields at fault. Also an unsupported X-API-Version. |
401 | Missing, revoked or expired API key, or missing or unknown acting user. |
403 | Unknown API key, or the acting user may not act with this key or lacks the role. |
404 | Not found, or not in the organizations of your key. |
429 | Quota of the key exceeded: the Retry-After header gives the seconds to wait. |
500 | Unexpected error: quote the requestId to the support. |
Exemple
curl "https://api.smart-interview.ai/partner/agents" \
-H "x-api-key: $CLE" \
-H "x-acting-user-id: $RECRUTEUR_ID"<?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;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());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 :
{
"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
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
id | path | string | oui |
Réponses
| Code | Description |
|---|---|
200 | Return agent by id |
400 | Invalid request: details lists the fields at fault. Also an unsupported X-API-Version. |
401 | Missing, revoked or expired API key, or missing or unknown acting user. |
403 | Unknown API key, or the acting user may not act with this key or lacks the role. |
404 | Not found, or not in the organizations of your key. |
429 | Quota of the key exceeded: the Retry-After header gives the seconds to wait. |
500 | Unexpected error: quote the requestId to the support. |
Exemple
curl "https://api.smart-interview.ai/partner/agents/$AGENT_ID" \
-H "x-api-key: $CLE" \
-H "x-acting-user-id: $RECRUTEUR_ID"<?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;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());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 :
{
"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
}
