contract 2026-10-05
Endpoints

Health & contract

Check service dependencies and inspect the API index.

GET

/api/v1/health/live

Unauthenticated process liveness probe.

Requires the none — no API key required scope.

Unversioned path, original response shape: /api/health/live

Example request

Request
GET https://api.thecarapi.com/api/v1/health/live
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "status": "ok",
    "service": "car-details-api"
  },
  "contract_version": "2026-10-05"
}
GET

/api/v1/health/ready

Unauthenticated readiness probe — is the data layer reachable?

Requires the none — no API key required scope.

Unversioned path, original response shape: /api/health/ready

Example request

Request
GET https://api.thecarapi.com/api/v1/health/ready
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "status": "ready"
  }
}
GET

/api/v1/health

Return service, data-feed and schema health.

Requires the any key scope.

Unversioned path, original response shape: /api/health

Example requests

Request
GET https://api.thecarapi.com/api/v1/health
curl -H "Authorization: Bearer $API_KEY" "https://api.thecarapi.com/api/v1/health"
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "status": "healthy",
    "service": "car-details-api",
    "worker_pid": 41,
    "typesense": {
      "enabled": true,
      "healthy": true
    },
    "public_auction_feed": {
      "enabled": true,
      "fresh": true
    }
  },
  "contract_version": "2026-10-05"
}
GET

/api/v1/contract

Paging limits and live-price capability of this deployment, and where its OpenAPI document is.

Requires the any key scope.

Unversioned path, original response shape: /api/contract

Example requests

Request
GET https://api.thecarapi.com/api/v1/contract
curl -H "X-API-Key: $API_KEY" "https://api.thecarapi.com/api/v1/contract"
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "version": "2026-10-05",
    "live_prices": {
      "enabled": true,
      "sites": [
        "openlane"
      ],
      "ttl_seconds": 120
    },
    "limits": {
      "max_limit": 100,
      "max_offset": 5000
    },
    "openapi": "/api/v1/openapi.json"
  }
}

What you get back

data.versionstring

The contract version this deployment serves. Matches contract_version on every response.

data.limits.max_limitinteger

The page-size ceiling for your key. Clamp your own paging to it rather than discovering it by being clamped.

data.limits.max_offsetinteger

The offset cap on the capped endpoints (catalog, archive, top-offers, classifieds listings). /api/v1/vehicles has none.

data.live_pricesobject

Whether this deployment reads a running auction’s bid when its detail is requested, which sources it covers, and how long a refreshed price stays current ({ enabled, sites, ttl_seconds }). Read it at startup rather than hardcoding it. The whole block is absent where the feature does not exist at all.

data.openapistring

The path of the OpenAPI document for /api/v1, which lists every field of every response.

GET

/api/v1/me

What the key you sent may do: scopes, sources, fields and quotas.

Requires the any key scope.

Unversioned path, original response shape: /api/me

Example requests

Request
GET https://api.thecarapi.com/api/v1/me
curl -H "X-API-Key: $API_KEY" "https://api.thecarapi.com/api/v1/me"
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "key": {
      "prefix": "lc_live_7f3a",
      "name": "Production",
      "status": "active",
      "sandbox": false,
      "expires_at": null,
      "scopes": [
        "search",
        "auctions",
        "catalog"
      ],
      "allowed_sites": [
        "openlane",
        "encar"
      ],
      "allowed_fields": [],
      "allowed_origins": [],
      "ip_restricted": false,
      "rate_limits": {
        "minute": 60,
        "day": 10000
      },
      "max_page_size": 100,
      "usage": {
        "minute": {
          "used": 3,
          "limit": 60,
          "remaining": 57,
          "reset": 1791193260
        },
        "day": {
          "used": 412,
          "limit": 10000,
          "remaining": 9588,
          "reset": 1791244800
        }
      }
    }
  },
  "contract_version": "2026-10-05"
}

What you get back

data.key.prefix / data.key.name / data.key.statusstring

Which key this is. The prefix is the first characters of the key, as the portal shows it; the secret itself is never returned.

data.key.sandboxboolean

True for a sandbox key. Search, single cars, batches and the brand, model, fuel, gearbox and source lists are answered from a 320-car sample inventory with filters and paging applied; other endpoints return a fixed sample.

data.key.expires_atstring | null

When the key stops working, or null for no expiry.

data.key.scopesstring[]

Scope groups and literal URL rules granted. * is every route.

data.key.allowed_sitesstring[]

Source slugs the key is confined to. Empty means every public source.

data.key.allowed_fieldsstring[]

Field groups granted. Empty means the default set.

data.key.allowed_origins / data.key.ip_restrictedstring[] / boolean

Browser origins the key may be used from (empty means any), and whether an IP allowlist applies.

data.key.rate_limitsobject

Configured request ceilings per minute, hour, day and month. A period that is missing is unlimited.

data.key.max_page_sizeinteger

The largest limit this key may ask for.

data.key.usageobject

What has been used in the current window of each limited period: { used, limit, remaining, reset }. Empty for a key with no limits.

GET

/api/v1/

Return the human-readable API index and service version.

Requires the any key scope.

Unversioned path, original response shape: /

Example requests

Request
GET https://api.thecarapi.com/
curl -H "X-API-Key: $API_KEY" "https://api.thecarapi.com/"
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "service": "Car Details API",
    "version": "2.0.0",
    "typesense": {
      "enabled": true,
      "running": true
    },
    "openapi": "/api/v1/openapi.json"
  }
}