Overview
AudioBookRequest provides a RESTful API for managing users and audiobook requests. The API uses Bearer token authentication with API keys that can be generated through the web interface.
How to Create an API Key
Follow these steps to create an API key for accessing the AudioBookRequest API:
Step 1: Access the Web Interface
- Open your web browser and navigate to your AudioBookRequest instance
- Log in with your username and password
Step 2: Navigate to Account Settings
- Once logged in, click on the Settings menu
- Select Account from the settings options
Step 3: Create a New API Key
- In the Account settings page, look for the API Keys section
- Click on Create New API Key or similar button
- Enter a descriptive name for your API key (e.g., “Mobile App”, “Automation Script”, “Home Assistant Integration”)
- Click Generate or Create
Step 4: Copy and Store Your API Key
- Important: The API key will only be displayed once for security reasons
- Copy the generated API key immediately and store it in a secure location
- If you lose the key, you’ll need to generate a new one
Step 5: Use Your API Key
Include your API key in the Authorization header of your API requests:
Authorization: Bearer <your-api-key>
Example using cURL:
curl -H "Authorization: Bearer your-api-key-here" \
http://localhost:8000/api/users/me
API Documentation
For a SwaggerUI documentation with interactive testing capabilities:
- Set the environment variable
ABR_OPENAPI_ENABLED=true - Head to
<your-domain>/docs.