TheDocumentation Index
Fetch the complete documentation index at: https://docs.whisul.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /jobs/{job_id} endpoint returns the current state of a music generation job. Poll this endpoint after calling POST /generate to determine when your song is ready. While the job is running, the result field is null. When the job completes, result contains the audio URL, cover artwork, BPM, duration, and descriptive tags.
Base URL: https://whisul.com/api
Request
Authentication
Every request must include your API key as a Bearer token in theAuthorization header.
Path parameters
The UUID of the generation job returned by
POST /compose. Example: 81fa5ff7-6197-4c24-8062-c0ff8b62d58d.Example request
Response
200 OK
Returned for both running and completed jobs.Job is running
When the job is still being processed,result is null and finished_at is not present.
Job is completed
When generation finishes,status becomes "completed" and the result object is populated.
Response fields
The current state of the job. One of
running, completed, or failed. See the job status lifecycle for details.The original prompt string submitted with
POST /compose.null while the job is running or if the job failed. Populated when status is "completed".null for running and completed jobs. May contain an error message when status is "failed".The timestamp when the job began processing, in
YYYY-MM-DD HH:MM:SS format (UTC).The timestamp when the job finished, in
YYYY-MM-DD HH:MM:SS format (UTC). Only present when status is "completed" or "failed".Error codes
| Status | Meaning | What to do |
|---|---|---|
200 OK | The request succeeded. The job may be running or completed — check the status field. | Read the status field to determine next steps. |
404 Not Found | No job exists with the provided job_id. | Confirm you are using the correct job_id returned by POST /compose. |
500 Internal Server Error | An unexpected server-side error occurred. | Wait briefly and retry. If the issue persists, contact Whisul support. |