Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Run a takes plugin's tool for you (the Gallery's Save as new)

POST
/v1/studio/plugins/{plugin}/tools/{tool}
curl --request POST \
--url http://localhost:8300/v1/studio/plugins/example/tools/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "input": {} }'

Every user, on their own takes. The plugin as GET /plugins/{plugin} has it, and a tool of its manifest with no risk flag; else 404. Studio signs a pass for the caller and a new call id, as studio.plugins.pass does, and POSTs <url>/tools/<tool> {input} with the call’s headers (30 s, no redirects). 200: take_ids only those studio vouches for (the caller’s takes with source tool this plugin made under this call id, as a chat line’s), line the plugin’s. The plugin’s 422 is a 422 with its detail; any other failure (no answer, too slow, a non-2xx) is a 502 with a plain detail (its detail, else <title> did not answer).

plugin
required
string

A plugin’s name (its folder; unknown or malformed = 404)

tool
required
string
/^[a-z][a-z0-9_]{0,23}$/
Media typeapplication/json

A tool’s input, as its manifest’s input schema has it (the plugin checks it: 422)

object
input
required
object
<= 16 properties
key
additional properties
any

Example generated

{
"input": {}
}

What it made

Media typeapplication/json
object
take_ids
required

The new takes studio vouches for (Undo deletes them)

Array<string>
<= 8 items unique items
line
required

The plugin’s line (Trimmed · Shot 3), else <title> · <tool>

string
<= 300 characters

Example generated

{
"take_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"line": "example"
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The plugin failed: {"detail"} in plain words

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}