API Documentation

Review the JWT-authenticated account routes and the separate read-only API-key integration surface before production agency connectivity is available.

Overview

The BorderPro API returns JSON. Account endpoints use JWT authentication, while /integration/* endpoints use an API key that is either read-only or has filing access. With filing access, approved accounts file ACE trips to CBP and read back CBP's replies; ACI filing to CBSA is not yet available. The base URL is https://borderpro.ai/api/v1.

Authentication

Obtain a JWT token by posting account credentials to the login endpoint. Include the token as a Bearer header on account requests. Company admins can then create integration keys, read-only or with filing access; those keys are sent directly in X-API-Key and are never exchanged for a JWT.

# Request
POST /api/v1/auth/login
Content-Type: application/json

{
  "email": "[email protected]",
  "password": "your-password"
}

# Abbreviated response
{
  "success": true,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "user": {"id": 123, "role": "dispatcher"}
  }
}

# JWT account request
Authorization: Bearer <token>

# Integration request
GET /api/v1/integration/manifests
X-API-Key: <key>

Key Endpoints

Endpoint Description Auth
GET /manifests List company-scoped stored records JWT
POST /manifests Create an ACE or ACI local draft record JWT
GET /manifests/:id Read a local record and its stored workflow state JWT
GET /rns List RNS rows already stored for the account; not a live agency feed JWT
GET /trucks List saved truck profiles JWT
GET /drivers List saved driver profiles JWT
GET /billing/usage Read the account's stored usage and tier values JWT
POST /api-keys Create a company-scoped integration key; secret returned once JWT admin
GET /integration/manifests Read company-scoped manifest summaries X-API-Key
POST /integration/manifests Create or update a trip (draft); add "file": true to file it in the same call X-API-Key (filing)
POST /integration/manifests/:id/file File a draft this key created X-API-Key (filing)
GET /integration/rns Read company-scoped stored RNS rows; not a live agency feed X-API-Key

This is a verified route summary, not a complete production API contract. Check the response returned by your account. A filing call on an approved ACE account sends a real manifest to CBP, so test with drafts first. Create an account to get started.

Build on the BorderPro API

ACE eManifest filing to CBP is live for approved BorderPro accounts. ACI eManifest filing to CBSA is not yet available; it opens after CBSA certification testing is complete.