Backend API
Submit book for character extraction
Submits a book file for background processing. The backend downloads the file from the provided URL, validates it (.txt / .md only), queues a background job via Redis, and returns immediately with a 202 Accepted.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/character/processing" \ -H "Content-Type: application/json" \ -d '{ "book_id": "49cf97ac-d4b0-4fb1-a148-592152017f4d", "file_url": "http://example.com", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5" }'{
"status": "accepted",
"data": {
"book_id": "49cf97ac-d4b0-4fb1-a148-592152017f4d",
"job": {},
"queued": true
}
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}