Skip to content

Instantiate Gallery Recipe

POST
/api/templates/gallery/{slug}/instantiate
curl --request POST \
--url http://localhost:8000/api/templates/gallery/example/instantiate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example" }'

Create a workbook from a recipe in the caller’s workspace.

Delegates to the workbooks router’s create_workbook (the single workbook-creation path) so row snapshotting, automations events and the response shape stay identical to a hand-built workbook.

slug
required
Slug
string
x-workspace-id
Any of:
string
Media typeapplication/json
InstantiateRecipeRequest

Optional overrides when creating a workbook from a recipe.

object
name
Any of:
string
>= 1 characters <= 255 characters
Examplegenerated
{
"name": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}