CaraCara API

Create a form

Create a new form template.

Create a new form template.

POST
/forms

Authorization

AuthorizationRequiredBearer <token>

Use your API key (sk_live_* or sk_test_*) as the Bearer token.

In: header

Request Body

application/jsonRequired
nameRequiredstring
slugstring
descriptionstring
fieldsarray<object>
curl -X POST "https://platform.caramedical.com/api/v1/forms" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "slug": "string",
    "description": "string",
    "fields": [
      {}
    ]
  }'

Form created.

{
  "id": "string",
  "name": "string",
  "slug": "string",
  "description": "string",
  "fields": [
    {}
  ],
  "isActive": true,
  "submissionsCount": 0,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}