Templates

Convert draft to template

POST
/template-chat/{conversation_id}/create

Charges 1 credit per shot that is not already resolved. A draft whose shots are all resolved (a template copied and left alone) costs nothing.

Authorization

token_auth
headerAuthorizationBearer <token>

Token-based authentication using access tokens.

Path Parameters

conversation_id*string

Response Body

Successful Response

application/json
  1. response
category*

The created template.

presets*array<>

Its presets, in shot order.

credits_used*Credits Used

What was actually charged: 1 per shot that needed writing.

curl -X POST "https://example.com/template-chat/string/create"
{  "category": {    "id": "string",    "name": "string",    "description": "string",    "thumbnail_url": "string",    "visibility": "shared",    "created_by": "string",    "created_at": "string",    "swatch_source": null,    "preset_count": 0,    "preset_types": [      "flat_2_model"    ],    "groups": [      "string"    ],    "preset_previews": [      {        "preset_code": "string",        "name": "string",        "preview_url": null,        "framing": null,        "angle": null      }    ]  },  "presets": [    {      "preset_code": "string",      "name": "string",      "description": "string",      "type": "flat_2_model",      "visibility": "shared",      "groups": [        "string"      ],      "categories": [        {          "id": "string",          "name": "string",          "description": "string",          "thumbnail_url": "string",          "visibility": "shared",          "created_by": "string",          "created_at": "string",          "swatch_source": null,          "preset_count": 0,          "preset_types": [            "flat_2_model"          ],          "groups": [            "string"          ],          "preset_previews": [            {              "preset_code": "string",              "name": "string",              "preview_url": null,              "framing": null,              "angle": null            }          ]        }      ],      "instruction_data": {},      "created_by": "string",      "created_at": "string",      "updated_at": "string"    }  ],  "credits_used": 0}