Skip to content
Browse documentation

API reference

Enquiries

Submit a typed enquiry from a storefront — contact, product enquiry, quote request, service request, support or wholesale. Submissions land in the project's enquiry inbox and can flow into CRM.

Feature requirement: the project must have the custom_queries feature enabled, or these endpoints return 404.

  • An optional service_id links the enquiry to a published service when the services feature is also enabled.
POST/api/v1/storefront/projects/{project_slug}/queries

Submit Query

Parameters
NameTypeInDescription
project_slugstringpathRequired.
Request body · CustomQueryCreate
FieldTypeDescription
kindCustomQueryKindrequired—
full_namestringrequired—
emailstring<email>required—
phone_numberstring (nullable)optional—
subjectstring (nullable)optional—
messagestringrequired—
product_idstring (nullable)optional—
service_idstring (nullable)optional—
payloadobjectoptional—
source_urlstring (nullable)optional—
Response 201 · CustomQuerySubmitted
FieldTypeDescription
idstringrequired—
statusCustomQueryStatusrequired—
messagestringrequired—
Example request
curl -X POST "https://api.webtools.ng/api/v1/storefront/projects/your-project/queries" \
  -H "X-Project-Key: wt_pk_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "kind": "…", "full_name": "…", "email": "…", "message": "…" }'

← All resource groups