Intégrez Smartly Assistant dans vos systèmes avec notre API REST complète.
Obtenez votre clé API depuis le tableau de bord développeur. Deux modes : sk_test_... pour les tests et sk_live_... pour la production.
Base URL : https://api.smartlyassistant.com/api/v1. Toutes les requêtes doivent utiliser HTTPS. Le endpoint sandbox est accessible sur sandbox.smartlyassistant.com.
Utilisez le header Authorization: Bearer sk_live_.... Les tokens expirent après 24h. Utilisez le refresh token pour renouveler automatiquement.
curl -X GET "https://api.smartlyassistant.com/api/v1/flights" \
-H "Authorization: Bearer sk_live_abc123..." \
-H "Content-Type: application/json" \
-d '{
"origin": "DSS",
"destination": "ABJ",
"date": "2025-03-15",
"passengers": 1
}'
// Réponse 200 OK
{
"status": "success",
"data": {
"flights": [
{
"id": "FL-2847",
"airline": "Air Sénégal",
"flight_number": "HC301",
"departure": "2025-03-15T08:30:00Z",
"arrival": "2025-03-15T10:15:00Z",
"origin": "DSS",
"destination": "ABJ",
"price": { "amount": 185000, "currency": "XOF" },
"seats_available": 42
}
],
"meta": { "total": 12, "page": 1, "per_page": 10 }
}
}| Méthode | Endpoint |
|---|---|
| GET | /api/v1/flights |
| POST | /api/v1/baggage/tracking |
| POST | /api/v1/checkin |
| POST | /api/v1/payments/charge |
| GET | /api/v1/users/:id |
| POST | /api/v1/notifications/send |
| GET | /api/v1/analytics/dashboard |
| POST | /api/v1/webhooks/subscribe |
pip install smartlyassistant-sdknpm install @smartlyassistant/sdkMaven: com.smartlyassistant:sdkgo get github.com/smartlyassistant/sdk-go| Plan | Requêtes/min | Burst | Fonctionnalités |
|---|---|---|---|
| Gratuit | 60 | 100 | Endpoints publics, Sandbox |
| Pro | 300 | 500 | Tous endpoints, Support prioritaire |
| Enterprise | 1 000+ | 2 000+ | Dédicacé, SLA 99.99%, On-premise |
Commencez avec notre sandbox gratuit. 10 000 requêtes/mois incluses, sans carte bancaire requise.