chatformdocs
API referenceV1

Serve a form on one of the organization's domains

`domainId` is one of `GET /v1/domains`; null puts the form back on chatform.in. A form is served only on the domain it is attached to, and a domain that is not `active` yet serves nothing until it is.

PUT
/v1/forms/{id}/domain

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

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/forms/string/domain" \  -H "Content-Type: application/json" \  -d '{    "domainId": "string"  }'
{  "formId": "string",  "domainId": "string"}