Skip to main content
POST
Accepts a quote, reserves its Characters and queues a SONG job. The call returns immediately; it does not wait for the song.
string
required
API key for authentication.
string
required
Unique per operation: 16–64 printable ASCII characters. Same key with the same body replays; same key with a different body is rejected with 47008.

Path

string
required
The project identifier.

Body

string
required
The quote to accept. A quote can be consumed only once.

Response

string
Project identifier.
string
The song job to poll.
string
SONG.
string
QUEUED.
string
Characters reserved for this generation, as a string.
string
Timestamp, yyyy-MM-dd'T'HH:mm:ss.
A replay re-reads the job: the field set and the status can differ from the first response. Use jobId to query the job rather than parsing the replay as if it were the original create payload.

Common errors

  • code = 47007: this quote has already been consumed. Query the existing project/job instead of submitting again.
  • code = 47006: the quote has expired. Request a new quote.
  • code = 47005: not enough Characters available.
  • code = 47008: the Idempotency-Key was reused with a different body.
  • code = 47010: another generation is already in progress for this project.
  • code = 47009: the project does not exist or is not owned by your account.