AlphaAlpha Docs

Public Contact Form

Public endpoints for contact form submissions

Get widget info

GET
/public/contact-form/{tenantCode}/{widgetSlug}
AuthorizationBearer <token>

In: header

Path Parameters

tenantCode*string
widgetSlug*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/public/contact-form/string/string"
{
  "description": "string",
  "fields": [
    {
      "label": "string",
      "name": "string",
      "required": true,
      "sortOrder": 0,
      "type": "TEXT"
    }
  ],
  "name": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Submit contact form

POST
/public/contact-form/{tenantCode}/{widgetSlug}/submit
AuthorizationBearer <token>

In: header

Path Parameters

tenantCode*string
widgetSlug*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 POST "http://localhost:18080/api/v1/public/contact-form/string/string/submit" \  -H "Content-Type: application/json" \  -d '{    "fields": {      "property1": "string",      "property2": "string"    }  }'
{
  "confirmationMessage": "string",
  "submissionId": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}