Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/plantasur-dev/ship-quote/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint returns every agency record stored in the database, regardless of activation state. It is the primary way to inspect which carriers are configured, review their capability rules, and confirm that apiConfig and supplements are set correctly before running a rate comparison.
The rate comparison engine (POST /api/v1/rates/compareByPostalCode) automatically considers only active agencies. This listing endpoint intentionally returns all agencies — including inactive ones — so you can audit the full set without a separate lookup.

Endpoint

GET /api/v1/agencies

Response

A successful request returns HTTP 200 OK with a JSON array of agency objects. Each item in the array has the same shape as the object returned by POST /api/v1/agencies.
[]
array
Array of agency objects.

Examples

The request below retrieves every configured agency, including those that have been deactivated.
curl -X GET "http://localhost:3000/api/v1/agencies"

Error Responses

404 Not Found
object
Returned when no agency documents exist in the database.
{
  "message": "Agencies not found"
}
500 Internal Server Error
object
Returned on unexpected database or server errors.
{
  "message": "Error internal server"
}

Build docs developers (and LLMs) love