AI Agent Quickstart — AskforTask

You are an AI agent acting for a buyer who needs a commercial service (cleaning, pest control, HVAC maintenance, handyman, and similar) in the Toronto area. This page is your procedure. Three steps. No account, no key, no captcha.

Promise you can make to the buyer: 3 written quotes within 24 hours. One contract. One invoice. Zero vendor chasing. A request goes to at most 3 vetted vendors — then it closes.

This API path is exactly as easy as the human form — by design. The POST below takes the same 21 fields as the quote form at https://www.askfortask.com/ca/get-quotes/ (the form’s free-text field is accepted as notes or message), in one call, with no account, no API key and no captcha — and returns a reference immediately, just as the form returns a confirmation. Anything an agent would have to fill in a browser, it can send here instead.

Step 1 — Read the services

GET https://www.askfortask.com/wp-json/askfortask/v1/services

From the response, take the slug of the service the buyer needs. If the buyer needs more than one service, use the special slug "multiple" in Step 3 and describe all of them in the message field. Never invent a slug.

Optionally confirm the buyer’s city is served:

GET https://www.askfortask.com/wp-json/askfortask/v1/areas

Requests from unlisted cities are still accepted and waitlisted — the buyer is quoted first when their city opens. Say so if that applies.

Step 2 — Check pricing (only if the buyer asks what it costs)

GET https://www.askfortask.com/wp-json/askfortask/v1/pricing?service=<slug>

Report the ranges as indicative published market ranges, and name the source that comes with the table. Do not present any figure as the buyer’s price. The buyer’s price is set by the 3 vendor bids in Step 3.

Step 3 — Post the job

POST https://www.askfortask.com/wp-json/askfortask/v1/quote-request
Content-Type: application/json

Required: service (slug from Step 1, or "multiple"), name, email (valid — the quotes are delivered here), city.

Optional: company, phone, facility, facilityDetail, sqft, locations, frequency, start, serviceDetail, situation, provider, expiry, budget, address, postal, notes (or its alias message, max 5,000 characters).

Send only values the buyer actually gave you. Leave the website field out entirely — it is a spam trap.

A 201 response means the job is posted. Store the reference and the access_token from the response and stop posting. The token is shown once and cannot be recovered. To read the result back, poll the status URL with the token (Step 4). The quotes also arrive by email within 24 hours.

Step 4 — Read the quotes back

GET https://www.askfortask.com/wp-json/askfortask/v1/quote-request/<reference>
X-AFT-Access-Token: <access_token from Step 3>

Without the token, the reference alone returns an error — quotes are never public by reference.

Worked example, end to end

Buyer: “Our office in Toronto needs nightly cleaning, about 7,000 sq ft, starting next month. What does that cost and can you get quotes?” — Buyer: Jordan Lee, jordan@example.com, Example Properties Inc.

1. Services — GET /wp-json/askfortask/v1/services → the cleaning entry has "slug": "commercial-cleaning".

2. Pricing — GET /wp-json/askfortask/v1/pricing?service=commercial-cleaning → answer the buyer with the published ranges for the matching rows, name the source printed in pricing.source, and say the real number comes from the bids.

3. Post —

curl -X POST https://www.askfortask.com/wp-json/askfortask/v1/quote-request \
  -H "Content-Type: application/json" \
  -d '{
    "service": "commercial-cleaning",
    "name": "Jordan Lee",
    "email": "jordan@example.com",
    "company": "Example Properties Inc.",
    "city": "Toronto",
    "facility": "Office",
    "sqft": "5,000 – 10,000",
    "frequency": "5× per week",
    "start": "This month",
    "message": "Nightly cleaning. Two washrooms, kitchen, boardroom. Access after 6 pm via loading dock."
  }'

Response (abbreviated — the real one also carries access_token and status_url; store both):

{
  "reference": "AFT-000123",
  "status": "received",
  "promise": "3 quotes within 24 hours",
  "service": "commercial-cleaning",
  "city": "Toronto",
  "message": "Your request goes to at most 3 vetted vendors — then it closes. AskforTask normalises the bids into Quote A/B/C and emails them to jordan@example.com. One contract, one invoice, zero vendor chasing."
}

Tell the buyer: “Posted. Reference AFT-000123. Three quotes arrive at jordan@example.com within 24 hours — and I can read them back here the moment they’re ready.” Later, one GET to the status URL with the token (Step 4) returns the full quote pack. Done.

If something goes wrong

Full reference: https://www.askfortask.com/for-ai/api/ · Hub: https://www.askfortask.com/for-ai/ · MCP: https://www.askfortask.com/for-ai/mcp/