API Overview
Introduction
This is the API documentation for api.truckwash.dk. The communication with the API is done via HTTP requests and responses in JSON format.
What you can do using this API
Method | Endpoint | Description |
|---|---|---|
POST | /numberplatescans | Register a new scan of a license plate. |
Authentication
The API has two types of authentication
API Key: You can authenticate using an API key. The API key must be included in the
Authorizationheader of each request. This is used for server-to-server communication.SESSION: You can authenticate using a session token. The session token must be included in the
Authorizationheader of each request.
Base URL
The API has only one public base URL:
Production:
https://api.truckwash.dk
Rate Limiting
There is a rate limit of 100 requests per minute for each API key. If you exceed this limit, you will receive a 429 Too Many Requests response.
Error Handling
The API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted), and codes in the 5xx range indicate an error with the API's servers.