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
- Create an account and sign in.
- Open My Forms → create a form. Copy the form ID (e.g.
dj84Xsud0). - Add the shared embed script once, and set
tsf="YOUR_FORM_ID"on each form. - Submissions appear under Submissions in the dashboard.
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>
| Piece | Role |
|---|---|
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. |
/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.
| Item | Value |
|---|---|
| Method | POST |
| URL | https://forms.techservice.ng/api/push_form/YOUR_FORM_ID |
| Content-Type | application/json |
| Body | JSON object, e.g. {"name":"Ada","email":"ada@example.com"} |
| CORS | Open 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
| Path | Description |
|---|---|
/auth | Login & register |
/dashboard | Overview |
/forms | List your forms (copy form IDs here) |
/new | Create a form |
/submissions | All submissions |
/submissions/:form_id | Submissions for one form |
/settings | Profile, notifications, password |
/logout | End session |
Auth API
POST /signin— email + passwordPOST /signup— fullname, email, passwordPOST /forgot-password— email (generic success response)GET /reset-password?token=…— reset formPOST /reset-password— token + new password
Security notes
- Form IDs (
tsfvalues) are public submit identifiers — not admin secrets. - Sessions use HttpOnly cookies; use HTTPS in production.
- Rate limits apply to auth, password reset, and public submit endpoints.
- Do not put secrets in form fields that will be stored or emailed.
More: Privacy Policy · Terms of Service · TechService.ng