Docs
Sites APIConversion

One form

A form by id. A form on no property of this website, a disabled form and a malformed id are all a 404. Tags: `forms:{property_id}`.

GET/api/sites/v1/forms/{form}

A form by id. A form on no property of this website, a disabled form and a malformed id are all a 404. Tags: forms:{property_id}.

Authorization

websiteToken
AuthorizationBearer <token>

A Sanctum token scoped to one website.

In: header

Path Parameters

form*string

The form's id.

Header Parameters

X-Resi-Website?string

Website id. Overrides Host resolution for builds running where Host is meaningless. The token must still be scoped to this website.

If-None-Match?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/sites/v1/forms/string"
{  "data": {    "id": "string",    "key": "string",    "name": "string",    "type": "string",    "fields": [      {        "key": "string",        "type": "string",        "label": "string",        "placeholder": "string",        "required": true,        "width": "string",        "options": [          "string"        ],        "settings": {}      }    ],    "tour_types": [      {}    ],    "settings": {      "disclaimer": "string",      "redirect_url": "string",      "success_message": "string",      "submit_button_label": "string"    },    "properties": [      {        "id": "string",        "slug": "string",        "name": "string"      }    ],    "submit_path": "string"  },  "meta": {    "cache": {      "tags": [        "string"      ],      "ttl": 0    }  }}