p996.nl - API Documentation

Overview

Welcome to the p996.nl API documentation. Here you will find all the information you need to interact with our API.

Authentication

To authenticate, you will need to include your API key in the request headers. Example:

{
    "Secret-Key": "your_api_key"
}

Endpoints

Login

POST /api/login

Authenticate and get a session token.

{
    "apiKey": "your_api_key"
}

Upload Image

POST /upload

Upload an image to the server.

POST /upload
Headers:
    Secret-Key: your_api_key
Form Data:
    file: [binary]

Get Images

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 Image

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