Partner API Documentation

Complete integration guide for fleet operators

Production Ready

Endpoints

POST/fleet-register

Register a new fleet partner and receive an API key

Authentication

None (public endpoint)

Request Body

{
  "name": "ABC Recovery Services",
  "fleet_size": 15,
  "coverage_areas": [
    "London",
    "Manchester"
  ],
  "capabilities": [
    "towing",
    "recovery",
    "roadside"
  ],
  "contact_email": "contact@abcrecovery.com",
  "contact_phone": "07700900123"
}

Response

{
  "success": true,
  "partner_id": "uuid-here",
  "api_key": "art_live_xxxxxxxxxx",
  "message": "Partner registered successfully"
}

cURL Example

curl -X POST "https://rohzayllygnhxacxvyfs.supabase.co/functions/v1/fleet-register" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "ABC Recovery Services",
  "fleet_size": 15,
  "coverage_areas": [
    "London",
    "Manchester"
  ],
  "capabilities": [
    "towing",
    "recovery",
    "roadside"
  ],
  "contact_email": "contact@abcrecovery.com",
  "contact_phone": "07700900123"
}'

Authentication

Use your API key in the x-api-key header for all authenticated requests.

Rate Limits

1000 requests per hour. Contact support for higher limits.

Support

Need help? Contact our technical support team 24/7.

Error Codes

400

Bad Request

Invalid request parameters

401

Unauthorized

Invalid or missing API key

403

Forbidden

Insufficient permissions

404

Not Found

Resource not found

429

Too Many Requests

Rate limit exceeded

500

Internal Server Error

Server error occurred

Talk with Us