Documentation & API Reference

TechService Form (forms.techservice.ng) collects website form submissions without your own backend. One shared script; each form is identified by a tsf attribute.

Quickstart

  1. Create an account and sign in.
  2. Open My Forms → create a form. Copy the form ID (e.g. dj84Xsud0).
  3. Add the shared embed script once, and set tsf="YOUR_FORM_ID" on each form.
  4. Submissions appear under Submissions in the dashboard.
Optional: enable email notifications in Settings to get alerts on each new submission.

Form builder, share link & inline embed

Create fields in the dashboard Form Builder (/new). You do not need to write HTML for the form itself.

Shareable link

Every form gets a public page:

https://forms.techservice.ng/f/YOUR_FORM_ID

Send that URL to users (WhatsApp, email, social). Submissions land in your dashboard.

Inline embed (no HTML form markup)

Drop a container and the shared script on any website. The script loads the field schema and renders the form:

<div tsf-embed="YOUR_FORM_ID"></div>
<script src="https://forms.techservice.ng/script"></script>

You can place several tsf-embed divs on one page (different form IDs). Styles are injected automatically.

Schema API

GET /api/form/:form_id returns the public field definition used by the embed renderer (CORS open).

Embed your own HTML form

Prefer full control of markup? Load one script and mark your form with tsf. The builder is optional.

<!-- Load once per page -->
<script src="https://forms.techservice.ng/script"></script>

<!-- Contact form -->
<form tsf="dj84Xsud0">
  <label>Name <input name="name" required></label>
  <label>Email <input name="email" type="email" required></label>
  <button type="submit">Send</button>
</form>

<!-- Another form on the same page -->
<form tsf="anotherFormId">
  <input name="company" required>
  <button type="submit">Request quote</button>
</form>
PieceRole
https://forms.techservice.ng/script Shared client script. Binds every form[tsf] on the page.
tsf="FORM_ID" Your form’s public ID. Required. The script POSTs to /api/push_form/FORM_ID.
Field name attributes Become keys in the stored JSON submission.
Do not put the form ID in the script URL. Use /script only, and put the ID on the form: tsf="…".

Success message & redirect

When you create a form you can set a success message and an optional redirect URL. After a successful submit, the script shows the message and, if a redirect is set, navigates after a short delay.

POST /api/push_form/:form_id

Submit programmatically (AJAX, mobile apps, server-to-server) with a JSON body of field name → value pairs. Same endpoint the embed script uses.

ItemValue
MethodPOST
URLhttps://forms.techservice.ng/api/push_form/YOUR_FORM_ID
Content-Typeapplication/json
BodyJSON object, e.g. {"name":"Ada","email":"ada@example.com"}
CORSOpen for browser embeds (Access-Control-Allow-Origin: *)
fetch("https://forms.techservice.ng/api/push_form/dj84Xsud0", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    name: "Ada",
    email: "ada@example.com",
    message: "Hello"
  })
}).then(r => r.json()).then(console.log);

Limits: field count and value length are capped; submit traffic is rate-limited.

Response shape

Success:

{
  "status": true,
  "data": {
    "message": "Form submitted successfully.",
    "redirect": "https://yoursite.com/thank-you"
  }
}

Error:

{
  "status": false,
  "data": { "message": "Human-readable error" }
}

Dashboard & auth

PathDescription
/authLogin & register
/dashboardOverview
/formsList your forms (copy form IDs here)
/newCreate a form
/submissionsAll submissions
/submissions/:form_idSubmissions for one form
/settingsProfile, notifications, password
/logoutEnd session

Auth API

Security notes

More: Privacy Policy · Terms of Service · TechService.ng