Zum Inhalt springen
TransAs24
v1Stable

API Dokumentation

Integrate TransAs24 data into your own application or ERP system.

Authentication

All protected API requests require a valid API key in the HTTP header X-Api-Key.

X-Api-Key: tsa_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Manage your API keys here: API Access → Dashboard

Base URL

https://transas24.com/api/v1

All endpoints are relative to this base URL. HTTPS is required.

Endpoints

GET/api/v1/healthNo auth required

Check the API status. No API key required.

{ "status": "ok", "version": "1.0.0" }
GET/api/v1/freightsfreights:read

Returns a paginated list of all published freights.

Query Parameters

ParameterTypBeschreibung
pagenumberSeite (Standard: 1)
limitnumberEinträge pro Seite, max. 100 (Standard: 20)
originstringAbgangsort (Freitext)
destinationstringBestimmungsort (Freitext)
vehicleTypestringFahrzeugtyp (z.B. tautliner, reefer)
minWeightnumberMindestgewicht in kg
maxWeightnumberMaximalgewicht in kg

Response Example

{
  "items": [
    {
      "id": "clx1abc2def3",
      "title": "Stahltransport Berlin → Warschau",
      "originCity": "Berlin",
      "originCountry": "DE",
      "destCity": "Warschau",
      "destCountry": "PL",
      "weight": 18000,
      "vehicleType": "tautliner",
      "loadingDate": "2026-06-15T08:00:00Z",
      "status": "PUBLISHED"
    }
  ],
  "total": 1240,
  "page": 1,
  "limit": 20
}
GET/api/v1/freights/:idfreights:read

Returns details of a single freight by its ID.

POST/api/v1/freightsfreights:write

Creates a new freight listing. Requires the freights:write scope.

Request Body

ParameterTypBeschreibung
titlestringFrachtbezeichnung (Pflicht)
originCitystringAbgangsstadt (Pflicht)
originCountrystringAbgangsland ISO-2 (Pflicht)
destCitystringZielstadt (Pflicht)
destCountrystringZielland ISO-2 (Pflicht)
weightnumberGewicht in kg
vehicleTypestringFahrzeugtyp
loadingDatestringLadedatum (ISO 8601)
deliveryDatestringLieferdatum (ISO 8601)
pricenumberPreis in EUR (optional)
notesstringZusätzliche Hinweise (optional)
GET/api/v1/carrierscarriers:read

Returns a paginated list of verified carriers.

{
  "items": [
    {
      "id": "clx4xyz5abc6",
      "companyName": "Mustermann Spedition GmbH",
      "country": "DE",
      "vehicleTypes": ["tautliner", "reefer"],
      "rating": 4.8,
      "verified": true
    }
  ],
  "total": 340,
  "page": 1,
  "limit": 20
}

Rate Limits

1.000

Requests per day per API key (reset at UTC midnight)

If exceeded, HTTP 429 is returned. The X-RateLimit-Remaining header shows remaining requests.

Response Format

All API responses are in JSON format with UTF-8 encoding.

Content-Type: application/json; charset=utf-8

Error Codes

Error responses follow a consistent JSON schema.

ParameterTypBeschreibung
401UnauthorizedAPI-Key fehlt oder ungültig
403ForbiddenFehlende Scope-Berechtigung
404Not FoundRessource nicht gefunden
422Validation ErrorUngültige Eingabedaten
429Too Many RequestsRate-Limit überschritten (1.000 req/Tag)
500Internal Server ErrorServerfehler — bitte erneut versuchen

Error Response Example

{
  "statusCode": 422,
  "error": "Validation Error",
  "message": "originCity is required"
}