Saaml Operations delivers across Saudi Arabia. Book your shipment in a chat.Send a shipment
    Back to Developers
    API Reference · v1.0

    Last-Mile API — Partner Integration Guide

    Create and manage last-mile shipments that SAAML auto-dispatches to its captain fleet, over authenticated HTTPS JSON APIs — auth, lookups, shipments, labels, tracking, and webhooks.

    Overview

    Section 1 of 13

    SAAML exposes HTTPS JSON APIs so your systems can create and manage last-mile shipments that SAAML auto-dispatches to its captain fleet. A typical integration is four steps:

    1. 1

      Get your company secret

      SAAML provisions it for your account during onboarding. There is no login or token exchange — the secret itself is the credential.

    2. 2

      Authorize every call

      Send Authorization: Bearer <company_secret> on all requests. Every request is scoped to your tenant.

    3. 3

      Create shipments

      POST /api/shipment/lastmile/new returns a waybill and dispatches to an eligible captain automatically.

    4. 4

      Track

      Poll GET /api/tracking, or receive status webhooks pushed to your server.

    Automatic captain dispatch. SAAML assigns and dispatches the captain automatically — you submit the shipment details and SAAML handles allocation based on location and availability.
    Building Quick Commerce (≤60 min) instead? See the Quick Commerce API guide.