chatformdocs
API referenceV1

Create a draft form from a template

Creates a draft, exactly as `POST /v1/forms` does. Publish it when you are ready. The form lands in the organization's first workspace, which is not something an API key can choose: `/v1` exposes no workspace endpoint.

POST
/v1/templates/{slug}/use

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

slug*string

Query Parameters

workspace?string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/templates/string/use"
{  "id": "string",  "title": "string",  "slug": "string",  "status": "string",  "published": true,  "created_at": 0,  "updated_at": 0}