The Transporters API managesDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/OluwagbeminiyiA/agro_pulse-API/llms.txt
Use this file to discover all available pages before exploring further.
TransporterProfile records for users with the TRANSPORTER role on the AgroPulse platform. A transporter profile extends a base User account with logistics details — the type of vehicle operated, a registration plate number, and the geographic area the transporter covers. These records are used to match transporters with delivery requests from buyers and sellers. All endpoints require a valid JWT Bearer token. The user field is automatically set to the authenticated user and must not be included in the request body.
Base path
Authentication
All endpoints require a JWT Bearer token in theAuthorization header.
The
user field is automatically set to the authenticated user when creating a record. You do not need to supply it in the request body.Endpoints
| Method | Path | Description | Auth required |
|---|---|---|---|
GET | /api/transporters/ | List transporter profiles | Yes |
POST | /api/transporters/ | Create a new transporter profile | Yes |
GET | /api/transporters/{id}/ | Retrieve a single transporter profile by UUID | Yes |
PUT | /api/transporters/{id}/ | Full update of a transporter profile | Yes |
PATCH | /api/transporters/{id}/ | Partial update of a transporter profile | Yes |
DELETE | /api/transporters/{id}/ | Delete a transporter profile | Yes |
Create a transporter profile
POST /api/transporters/
Creates a TransporterProfile linked to the authenticated user. The user field is set automatically from the Bearer token and is read-only. Provide the vehicle details and service area so the platform can match this transporter to relevant delivery requests.
Type of vehicle used for deliveries (e.g.,
Motorcycle, Pickup Truck, Van). Max 255 characters.Vehicle registration plate number (max 50 characters). Must be unique per profile.
Geographic area the transporter operates in (max 255 characters).
Example request
Example response
List transporters
GET /api/transporters/
Returns an array of transporter profiles ordered by created_at descending. Non-admin users receive only their own profile. Staff users receive all profiles.
Query parameters
Filter results by a search term matched against transporter profile fields.
Sort results by a field name. Prefix with
- for descending order (e.g., -created_at).Example request
TransporterProfile object
UUID primary key. Auto-generated on creation, never editable.
UUID of the linked
User account. Set automatically from the authenticated user. Read-only.Email address of the linked user. Read-only, derived from the
User record.Full name of the linked user. Read-only, derived from the
User record.Type of vehicle used for deliveries.
Vehicle registration plate number.
Geographic area the transporter operates in.
ISO 8601 timestamp of profile creation. Read-only.
ISO 8601 timestamp of the last update. Read-only.