API Documentation

Werehouse's API allows programmatic access to certain areas of the application from other software. Currently, there is only one API endpoint available.

Authentication

Obtain an API key from your account page. You must supply this API key as a Bearer token in the Authorization HTTP header in your requests.

For example:

$ curl -sSLv -H "Authorization: Bearer api_AaAaAaAaAaAaAaAaAaAaAaAaAaAa" "https://werehouse.s0ph0s.dog/some_endpoint"

The HTTP header should look like this:

Authorization: Bearer api_AaAaAaAaAaAaAaAaAaAaAaAaAaAa

POST /enqueue

This endpoint allows you to enqueue images or links in the queue for your account.

Parameters

or

Supported image types are:

Responses

Example Usage

Enqueueing a link:

$ curl -sS \
    --json '{"link":"https://www.furaffinity.net/view/1"}' \
    -H "Authorization: Bearer api_AaAaAaAaAaAaAaAaAaAaAaAaAaAa" \
    "https://werehouse.s0ph0s.dog/enqueue" 
 {"ok":true} 

Enqueueing an image:

$ curl -sS \
    --json '{"image_b64":"/9j/4AAQSkZ…", "content_type": "image/jpeg"}' \
    -H "Authorization: Bearer api_AaAaAaAaAaAaAaAaAaAaAaAaAaAa" \
    "https://werehouse.s0ph0s.dog/enqueue" 
 {"error":"corrupt base64 data"}