GET |
- v2/models Kotlin |
+ v2/models |
- |
Get the available models. |
{
@@ -154,23 +144,16 @@ output: any|null
|
GET |
- v2/status Kotlin |
+ v2/status |
- |
Get system information. |
{
- "user": string
+ "user": string
} |
GET |
- v2/available Kotlin |
+ v2/available |
- |
Check if enqueing a new generation is possible. |
{
@@ -179,8 +162,8 @@ output: any|null
|
GET |
- v2/history Kotlin |
- URL: amount : number (optional) |
+ v2/history |
+ URL: amount : number (optional, default 30) |
Get previous generations associated with this account. |
{
"count": number,
@@ -189,7 +172,8 @@ output: any|null
"id": string,
"model": string,
"version": string,
- "author": string,
+ "authorId": string,
+ "authorName": string,
"time": string,
"timeTs": number,
"audioUrl": string?,
@@ -202,14 +186,15 @@ output: any|null
|
GET |
- v2/history/:id Kotlin |
+ v2/history/:id |
- |
Get a specific generation from its ID. |
{
"id": string,
"model": string,
"version": string,
- "author": string,
+ "authorId": string,
+ "authorName": string,
"time": string,
"timeTs": number,
"audioUrl": string?,
@@ -220,14 +205,15 @@ output: any|null
|
DELETE |
- v2/history/:id Kotlin |
+ v2/history/:id |
- |
Remove a specific generation from your history using its ID. |
{
"id": string,
"model": string,
"version": string,
- "author": string,
+ "authorId": string,
+ "authorName": string,
"time": string,
"timeTs": number,
"audioUrl": string?,
@@ -247,11 +233,63 @@ output: any|null
|
POST |
- v2/handoff Kotlin |
+ v2/handoff |
JSON token : string |
Get an interactive access token from a client handoff token. Used only during development. |
{
"token": string
+} |
+
+
+ GET |
+ v2/admin/available |
+ - |
+ Check if this account has access to administrator tools. |
+ {
+ "available": boolean
+} |
+
+
+ GET |
+ v2/admin/history |
+ URL: amount : number (optional, default 30) |
+ Get all previous unreviewed generations. |
+ {
+ "count": number,
+ "history": [
+ {
+ "id": string,
+ "model": string,
+ "version": string,
+ "authorId": string,
+ "authorName": string,
+ "time": string,
+ "timeTs": number,
+ "audioUrl": string?,
+ "graphUrl": string?,
+ "input": string,
+ "status": generation-status,
+ }
+ ]
+} |
+
+
+ DELETE |
+ v2/admin/history/:id |
+ - |
+ Mark a generation as reviewed using its ID. |
+ {
+ "id": string,
+ "model": string,
+ "version": string,
+ "authorId": string,
+ "authorName": string,
+ "time": string,
+ "timeTs": number,
+ "audioUrl": string?,
+ "graphUrl": string?,
+ "input": string,
+ "status": generation-status,
} |