Skip to content

POST /register

Register a new Fleet Management Organization (FMO) and receive an API key.

This endpoint does not require authentication.

Request

POST /api/v1/register
Content-Type: application/json

Body Parameters

FieldTypeRequiredDescription
companyNamestringYesYour company name
contactEmailstringYesPrimary contact email (must be valid)
contactPhonestringNoContact phone number
companyAbnstringNoAustralian Business Number

Example Request

bash
curl -X POST https://app.quotefox.au/api/v1/register \
  -H "Content-Type: application/json" \
  -d '{
    "companyName": "Fleet Corp Pty Ltd",
    "contactEmail": "api@fleetcorp.com.au",
    "contactPhone": "+61400000000",
    "companyAbn": "12345678901"
  }'

Response

json
{
  "apiKey": "qfx_a3b2c4d5e6f7890123456789abcdef0123456789abcdef0123456789abcdef",
  "message": "Store this key securely. It cannot be retrieved again.",
  "rateLimitPerHour": 100
}

WARNING

The API key is returned once only. Store it securely — it cannot be retrieved again. If lost, contact support for a replacement.

Code Examples

python
import requests

response = requests.post(
    "https://app.quotefox.au/api/v1/register",
    json={
        "companyName": "Fleet Corp Pty Ltd",
        "contactEmail": "api@fleetcorp.com.au"
    }
)

data = response.json()
api_key = data["apiKey"]
print(f"Store this key securely: {api_key}")
javascript
const response = await fetch(
  "https://app.quotefox.au/api/v1/register",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      companyName: "Fleet Corp Pty Ltd",
      contactEmail: "api@fleetcorp.com.au",
    }),
  }
);

const data = await response.json();
console.log("Store this key securely:", data.apiKey);
php
$ch = curl_init("https://app.quotefox.au/api/v1/register");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    "companyName" => "Fleet Corp Pty Ltd",
    "contactEmail" => "api@fleetcorp.com.au",
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = json_decode(curl_exec($ch), true);
echo "Store this key securely: " . $response["apiKey"];

QuoteFox API Documentation