Welcome to the p996.nl API documentation. Here you will find all the information you need to interact with our API.
To authenticate, you will need to include your API key in the request headers. Example:
{
"Secret-Key": "your_api_key"
}
POST /api/login
Authenticate and get a session token.
{
"apiKey": "your_api_key"
}
POST /upload
Upload an image to the server.
POST /upload
Headers:
Secret-Key: your_api_key
Form Data:
file: [binary]
GET /api/images/<user>
Retrieve a list of images for a specific user.
GET /api/images/{user}?page=1&limit=10
Headers:
Secret-Key: your_api_key
DELETE /api/images/delete/<user>/<filename>
Delete a specific image for a user.
DELETE /api/images/delete/{user}/{filename}
Headers:
Secret-Key: your_api_key