Support

Documentation API

Intégrez Smartly Assistant dans vos systèmes avec notre API REST complète.

Prise en main

Clé API

Obtenez votre clé API depuis le tableau de bord développeur. Deux modes : sk_test_... pour les tests et sk_live_... pour la production.

URL de base

Base URL : https://api.smartlyassistant.com/api/v1. Toutes les requêtes doivent utiliser HTTPS. Le endpoint sandbox est accessible sur sandbox.smartlyassistant.com.

Authentification

Utilisez le header Authorization: Bearer sk_live_.... Les tokens expirent après 24h. Utilisez le refresh token pour renouveler automatiquement.

Démarrage rapide

recherche-vols.sh
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 }
  }
}

Endpoints disponibles

MéthodeEndpoint
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

Kits de développement (SDK)

🐍

Python

v3.2.1
pip install smartlyassistant-sdk
🟢

Node.js

v2.8.0
npm install @smartlyassistant/sdk

Java

v1.5.3
Maven: com.smartlyassistant:sdk
🔵

Go

v1.1.0
go get github.com/smartlyassistant/sdk-go

Limites de requêtes

PlanRequêtes/minBurstFonctionnalités
Gratuit60100Endpoints publics, Sandbox
Pro300500Tous endpoints, Support prioritaire
Enterprise1 000+2 000+Dédicacé, SLA 99.99%, On-premise

Prêt à intégrer Smartly Assistant ?

Commencez avec notre sandbox gratuit. 10 000 requêtes/mois incluses, sans carte bancaire requise.