{"components":{"schemas":{"ApiKeyCreated":{"description":"POST /api-keys 201 response. The api_key appears ONLY here, once; only its SHA-256 hash is stored.","properties":{"agent_name":{"type":"string"},"api_key":{"description":"Format: aft_live_<32 hex characters>. Shown once — store it now.","type":"string"},"created":{"format":"date-time","type":"string"},"header":{"example":"X-AFT-API-Key","type":"string"},"note":{"type":"string"},"verify_url":{"format":"uri","type":"string"}},"required":["api_key","agent_name"],"type":"object"},"ApiKeyMe":{"description":"GET /api-keys/me response — verify a key in one tiny call.","properties":{"agent_name":{"type":"string"},"created":{"format":"date-time","type":"string"},"requests_made":{"description":"Counted uses of the key (keyed submissions + this endpoint).","type":"integer"}},"required":["agent_name","created","requests_made"],"type":"object"},"ApiKeyRequest":{"description":"POST /api-keys body. The honeypot field (website) mirrors the other endpoints: filled = success-shaped 201 with an unstored key.","properties":{"agent_name":{"description":"Your agent or product name. Stamped on keyed submissions.","type":"string"},"contact_email":{"description":"A real contact address. Disposable/throwaway domains are refused.","format":"email","type":"string"},"use_case":{"description":"Optional: what the key will be used for.","type":"string"},"website":{"description":"Honeypot — leave empty.","type":"string"}},"required":["agent_name","contact_email"],"type":"object"},"AreasResponse":{"properties":{"cities":{"items":{"$ref":"#/components/schemas/City"},"type":"array"},"city_page_pattern":{"example":"https://www.askfortask.com/ca/{service}/toronto/","type":"string"},"countries":{"items":{"$ref":"#/components/schemas/Country"},"type":"array"},"note":{"type":"string"},"quote_form":{"format":"uri","type":"string"},"service_area":{"example":"Toronto and the surrounding area, Ontario, Canada","type":"string"}},"required":["countries","service_area","cities","city_page_pattern","note","quote_form"],"type":"object"},"City":{"properties":{"name":{"example":"Toronto","type":"string"},"province":{"example":"Ontario","type":"string"},"status":{"description":"Toronto reads \"pilot — quote requests open\"; other live cities read \"served — quote requests open\".","example":"pilot — quote requests open","type":"string"}},"required":["name","province","status"],"type":"object"},"ContextResponse":{"description":"GET /context — everything an agent needs to decide and submit in one small response (~1,050 tokens). Cacheable: ETag + Cache-Control, If-None-Match honoured with 304.","properties":{"api_key":{"properties":{"get":{"type":"string"},"header":{"type":"string"},"why":{"type":"string"}},"type":"object"},"areas":{"type":"string"},"cities":{"items":{"type":"string"},"type":"array"},"company":{"type":"string"},"docs":{"format":"uri","type":"string"},"mcp":{"description":"The hosted MCP server endpoint.","format":"uri","type":"string"},"offer":{"type":"string"},"services":{"items":{"$ref":"#/components/schemas/ContextService"},"type":"array"},"status":{"properties":{"auth":{"type":"string"},"method":{"type":"string"},"url":{"type":"string"},"webhook":{"type":"string"}},"type":"object"},"submit":{"properties":{"method":{"type":"string"},"optional":{"items":{"type":"string"},"type":"array"},"required":{"items":{"type":"string"},"type":"array"},"returns":{"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"required":["company","offer","services","areas","submit","status","mcp"],"type":"object"},"ContextService":{"description":"One service in the context pack: slug, name, a one-line what-it-is, and a starting-price summary from the cited price table.","properties":{"from":{"description":"First row of the service's cited price table: \"<item>: <price>\". Indicative only — the quote is the 3 vendor bids.","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"what":{"type":"string"}},"required":["slug","name","what","from"],"type":"object"},"Country":{"properties":{"code":{"example":"ca","type":"string"},"name":{"example":"Canada","type":"string"},"url":{"format":"uri","type":"string"}},"required":["code","name","url"],"type":"object"},"HoneypotResponse":{"description":"Success-shaped 200 returned when the honeypot field (website) is filled. Nothing is stored; no reference or token is issued.","properties":{"message":{"type":"string"},"status":{"example":"received","type":"string"}},"required":["status","message"],"type":"object"},"PriceRow":{"description":"One row of a cited price table. price is a display string (e.g. a range), not a number.","properties":{"detail":{"type":"string"},"item":{"type":"string"},"price":{"type":"string"}},"required":["item","detail","price"],"type":"object"},"PricingResponse":{"properties":{"name":{"example":"Commercial Cleaning","type":"string"},"note":{"type":"string"},"pricing":{"$ref":"#/components/schemas/PricingTable"},"quote_url":{"format":"uri","type":"string"},"service":{"example":"commercial-cleaning","type":"string"},"url":{"format":"uri","type":"string"}},"required":["service","name","url","pricing","note","quote_url"],"type":"object"},"PricingTable":{"description":"A cited indicative price table. source names the published source of the figures; the figures are market data, not a rate card and not a quote.","properties":{"currency":{"example":"CAD","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/PriceRow"},"type":"array"},"source":{"type":"string"}},"required":["currency","rows","source"],"type":"object"},"QuoteBid":{"description":"Vendor identity is structurally anonymised: vendor is always a label (Vendor A/B/C), never a real company name. Exactly one bid per pack has recommended = true.","properties":{"detail":{"description":"What the bid covers, in scope terms.","type":"string"},"price":{"description":"Display price string, e.g. a monthly figure with currency.","example":"C$850 / month","type":"string"},"recommended":{"type":"boolean"},"vendor":{"enum":["Vendor A","Vendor B","Vendor C"],"type":"string"}},"required":["vendor","price","detail","recommended"],"type":"object"},"QuotePack":{"properties":{"bids":{"items":{"$ref":"#/components/schemas/QuoteBid"},"maxItems":3,"minItems":1,"type":"array"},"currency":{"example":"CAD","type":"string"},"issued_at":{"format":"date","type":"string"},"next_action":{"description":"How the buyer accepts, e.g. reply to the quote email.","type":"string"},"recommendation":{"description":"Why the flagged bid is the pick, in factual terms.","type":"string"},"valid_until":{"description":"Prices are firm until this date (14-day validity).","format":"date","type":"string"}},"required":["issued_at","valid_until","currency","bids","recommendation","next_action"],"type":"object"},"QuoteRequest":{"description":"The POST /quote-request body — the web form's field shape. Lengths are maximum characters kept; longer values are truncated, except notes/message, where over 5,000 characters is rejected (aftc_notes_too_long). message is an alias for notes; if both are sent, notes wins.","properties":{"address":{"description":"Street address of the facility.","maxLength":200,"type":"string"},"budget":{"description":"Budget band, only if the buyer volunteers one.","maxLength":80,"type":"string"},"callback_url":{"description":"Optional webhook URL. Must be https and resolve to public IPs (private/loopback/link-local hosts are dropped silently — a bad callback_url never blocks the submission). When the request's status reaches quotes_ready or closed, the status payload is POSTed here once (one retry after 15 minutes) with header X-AFT-Signature: sha256=<HMAC-SHA256 of the body, keyed with SHA-256 of the access_token>.","format":"uri","type":"string"},"city":{"description":"City where the facility is.","maxLength":80,"type":"string"},"company":{"description":"Company or facility name.","maxLength":160,"type":"string"},"email":{"description":"Must be a valid email address. The quotes are delivered here.","format":"email","type":"string"},"expiry":{"description":"Current contract expiry, YYYY-MM.","maxLength":20,"type":"string"},"facility":{"description":"Facility type, e.g. Office, Medical / Dental, Warehouse / Industrial, Retail, Restaurant, Retirement / Care Home, School, Gym / Fitness, Property Management (multi-site), Other.","maxLength":120,"type":"string"},"facilityDetail":{"description":"Branch detail for the facility type (scope specifics, areas in scope).","maxLength":160,"type":"string"},"frequency":{"description":"e.g. \"One-time\", \"2–3× per week\", \"5× per week\", \"Scheduled program (varies)\".","maxLength":80,"type":"string"},"locations":{"description":"e.g. \"1 location\", \"2 – 5 locations\".","maxLength":60,"type":"string"},"message":{"description":"Alias for notes. If both are sent, notes wins.","maxLength":5000,"type":"string"},"name":{"description":"The buyer's contact name.","maxLength":120,"type":"string"},"notes":{"description":"Free text: access hours, special requirements. Over 5,000 characters is rejected with aftc_notes_too_long (not truncated).","maxLength":5000,"type":"string"},"phone":{"description":"If present, must contain at least 7 digits (include the area code).","maxLength":40,"type":"string"},"postal":{"description":"Postal / ZIP code.","maxLength":12,"type":"string"},"provider":{"description":"Current provider, if any.","maxLength":160,"type":"string"},"service":{"description":"A slug from GET /services, or \"multiple\" for more than one service.","maxLength":60,"type":"string"},"serviceDetail":{"description":"Service-specific scope detail (coverage areas, unit counts, phases).","maxLength":160,"type":"string"},"situation":{"description":"One of unhappy, comparing, none, inhouse.","maxLength":60,"type":"string"},"sqft":{"description":"Size band, e.g. \"5,000 – 10,000\".","maxLength":60,"type":"string"},"start":{"description":"e.g. \"ASAP\", \"This month\", \"Just benchmarking prices\".","maxLength":80,"type":"string"},"website":{"description":"Leave empty. Honeypot: a filled value returns a success-shaped 200 and stores nothing.","type":"string"}},"required":["service","name","email","city"],"type":"object"},"QuoteRequestCreated":{"description":"POST /quote-request 201 response. access_token appears ONLY here, once — except on a duplicate response (duplicate: true), where it is null and the token from the first response still applies.","properties":{"access_token":{"description":"48 hex characters. Shown once; stored hashed server-side; required for GET /quote-request/{reference}.","type":"string"},"city":{"type":"string"},"duplicate":{"description":"Present and true when this exact payload was already received inside the 15-minute idempotency window: the response carries the ORIGINAL reference and nothing new was created.","type":"boolean"},"message":{"type":"string"},"note":{"description":"Present on duplicate responses: explains the dedupe and the access_token handling.","type":"string"},"promise":{"example":"3 quotes within 24 hours","type":"string"},"reference":{"example":"AFT-000123","type":"string"},"service":{"type":"string"},"status":{"example":"received","type":"string"},"status_url":{"example":"https://www.askfortask.com/wp-json/askfortask/v1/quote-request/AFT-000123","format":"uri","type":"string"},"webhook_registered":{"description":"Present and true when a valid callback_url was stored: the status payload will be POSTed to it at quotes_ready/closed.","type":"boolean"}},"required":["reference","access_token","status","status_url","promise","service","city","message"],"type":"object"},"QuoteStatus":{"properties":{"city":{"example":"Toronto","type":"string"},"message":{"type":"string"},"quotes":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/QuotePack"}]},"reference":{"example":"AFT-000123","type":"string"},"service":{"example":"commercial-cleaning","type":"string"},"status":{"enum":["received","in_progress","quotes_ready","closed","cancelled"],"type":"string"},"submitted_at":{"format":"date-time","type":"string"}},"required":["reference","status","service","city","submitted_at","quotes","message"],"type":"object"},"Service":{"properties":{"description":{"type":"string"},"includes":{"items":{"type":"string"},"type":"array"},"name":{"example":"Commercial Cleaning","type":"string"},"pricing":{"$ref":"#/components/schemas/PricingTable"},"quote_url":{"format":"uri","type":"string"},"slug":{"description":"The identifier used by GET /pricing and POST /quote-request.","example":"commercial-cleaning","type":"string"},"term":{"description":"The contract term framing for this service, as published on its page.","type":"string"},"url":{"format":"uri","type":"string"}},"required":["slug","name","url","description","term","includes","pricing","quote_url"],"type":"object"},"ServicesResponse":{"properties":{"areas_url":{"format":"uri","type":"string"},"company":{"example":"AskforTask","type":"string"},"for_ai":{"format":"uri","type":"string"},"how_it_works":{"type":"string"},"offer":{"example":"3 quotes within 24 hours. One contract. One invoice. Zero vendor chasing.","type":"string"},"quote_form":{"format":"uri","type":"string"},"services":{"items":{"$ref":"#/components/schemas/Service"},"type":"array"}},"required":["company","offer","how_it_works","services","areas_url","quote_form","for_ai"],"type":"object"},"WpError":{"description":"The standard WordPress REST error envelope, returned by every error response in this API.","properties":{"code":{"description":"Machine-readable error code, e.g. aftc_validation_failed.","example":"aftc_validation_failed","type":"string"},"data":{"additionalProperties":true,"description":"Error metadata. Always carries the HTTP status; WordPress may add further keys.","properties":{"status":{"example":400,"type":"integer"}},"type":"object"},"message":{"description":"Human-readable explanation. For aftc_validation_failed, every failure is listed in this one string.","example":"name is required.","type":"string"}},"required":["code","message","data"],"type":"object"}},"securitySchemes":{"AftAccessToken":{"description":"The one-time access_token returned by POST /quote-request. Stored hashed server-side; cannot be recovered if lost.","in":"header","name":"X-AFT-Access-Token","type":"apiKey"},"AftApiKey":{"description":"Optional API key from POST /api-keys. Raises the POST /quote-request limit to 60 per 10 minutes and stamps the key's agent name on submissions. Invalid keys are treated as anonymous.","in":"header","name":"X-AFT-API-Key","type":"apiKey"}}},"info":{"contact":{"name":"AskforTask","url":"https://www.askfortask.com/for-ai/"},"description":"AskforTask's public API for AI assistants and developer tools. Start with GET /context — one small response with the offer, every service and starting price, the areas served, and how to submit. Or read the services, areas and cited indicative pricing AskforTask publishes, submit a quote request in one call, and read the request back — status and, when ready, the full quote pack — with the one-time access token issued at submission.\n\nAuthentication: none for the read endpoints and for POST /quote-request (protected by validation, a honeypot field, and rate limits). GET /quote-request/{reference} requires the access_token from the POST response, sent as the X-AFT-Access-Token header (preferred) or the access_token query parameter.\n\nOptional API keys: POST /api-keys issues a key instantly, with no approval. Sent as the X-AFT-API-Key header, a key raises the POST /quote-request limit from 5 to 60 per 10 minutes and stamps your agent name on submissions. The anonymous API stays open; an invalid key is treated as anonymous, never as an error.\n\nWebhooks: POST /quote-request accepts an optional callback_url (https, public hosts only). When the request's status reaches quotes_ready or closed, the status payload is POSTed to it once (one retry), signed with X-AFT-Signature — no polling needed.\n\nIdempotency: submissions are deduplicated on the normalised email + phone + service + postal code for 15 minutes. Re-sending the identical payload returns the original reference with \"duplicate\": true — retry freely on timeouts; the API guarantees one lead per unique request inside the window.\n\nLimits: POST /quote-request — 5 per 10 minutes per IP anonymous (60 per 10 minutes with a key), plus a site-wide soft cap of 300 per hour (429 beyond it). POST /api-keys — 3 per hour per IP. Request bodies over 32 KB are rejected with 413. The read endpoints (services, areas, pricing, context) send ETag + Cache-Control and honour If-None-Match with 304.\n\nStability: the askfortask/v1 namespace is permanent and additive-only — fields are never renamed, removed, or changed in type or meaning. Pricing figures are indicative published market ranges with the source named; they are not quotes. The quote is the 3 vendor bids.\n\nHuman-readable reference: https://www.askfortask.com/for-ai/api/","title":"AskforTask API","version":"1.1.0"},"openapi":"3.1.0","paths":{"/wp-json/askfortask/v1/api-keys":{"post":{"description":"Self-serve key issuance: no approval, no email verification round-trip. The key is shown once in this response; only its SHA-256 hash is stored. Guards: 3 issuances per hour per IP (429 beyond), the honeypot field, and a disposable-email domain blocklist (400). Revocation is admin-side only — there is no public revoke endpoint.","operationId":"createApiKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}},"description":"Key issued. Store it now — it is shown once."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Validation failed, or a disposable email domain was used."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Request body over 32 KB."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Issuance limit: 3 keys per hour per IP."}},"summary":"Get an API key (optional, instant)","tags":["API keys"]}},"/wp-json/askfortask/v1/api-keys/me":{"get":{"description":"Returns the key's agent name, creation time and counted usage. The one endpoint where a missing or invalid key is an error (401) — verifying the key is its whole job.","operationId":"getApiKeyMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyMe"}}},"description":"The key is valid."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Key missing (aftc_key_required) or invalid/revoked (aftc_key_invalid)."}},"security":[{"AftApiKey":[]}],"summary":"Verify your API key","tags":["API keys"]}},"/wp-json/askfortask/v1/areas":{"get":{"description":"Countries and cities live today, with a per-city status. Toronto is the pilot city; its per-service pages follow city_page_pattern. Requests from outside the listed cities are waitlisted and quoted first when their city opens.","operationId":"listAreas","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreasResponse"}}},"description":"Countries, service area and cities.","headers":{"Cache-Control":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}}}},"304":{"description":"Not modified — send If-None-Match with the ETag from your last fetch and an unchanged resource costs nothing."}},"summary":"List where AskforTask operates today","tags":["Discovery"]}},"/wp-json/askfortask/v1/context":{"get":{"description":"ONE small response (~1,050 tokens) with everything an agent needs to decide and submit without crawling: the offer, all 10 services (slug, name, one-line what-it-is, starting-price summary), areas served, the submit endpoint with its required fields, the status endpoint shape, and the MCP URL. Sends ETag + Cache-Control (public, max-age=3600); send If-None-Match and an unchanged pack costs a 304.","operationId":"getContext","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextResponse"}}},"description":"The context pack.","headers":{"Cache-Control":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}}}},"304":{"description":"Not modified — your cached copy is current."}},"summary":"The context pack — start here","tags":["Discovery"]}},"/wp-json/askfortask/v1/pricing":{"get":{"description":"Returns the full cited price table for a single service. Figures are indicative published market ranges, with the source named — not a quote.","operationId":"getPricing","parameters":[{"description":"A service slug from GET /services.","in":"query","name":"service","required":true,"schema":{"example":"commercial-cleaning","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingResponse"}}},"description":"The service's cited price table.","headers":{"Cache-Control":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}}}},"304":{"description":"Not modified — send If-None-Match with the ETag from your last fetch and an unchanged resource costs nothing."},"404":{"content":{"application/json":{"example":{"code":"aftc_unknown_service","data":{"status":404},"message":"Unknown service. GET /wp-json/askfortask/v1/services lists every valid slug."},"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Unknown service slug (code aftc_unknown_service)."}},"summary":"One service's full cited price table","tags":["Discovery"]}},"/wp-json/askfortask/v1/quote-request":{"post":{"description":"Submit a quote request in the web form's field shape. The request is stored privately, routed to at most 3 vetted vendors, and the normalised bids (Quote A/B/C) are emailed to the buyer. Required: service, name, email, city — send what the buyer gave you for the rest; do not fabricate values for empty fields.\n\nIdempotency: re-sending the identical payload (same normalised email + phone + service + postal code) within 15 minutes returns the ORIGINAL reference with \"duplicate\": true and creates nothing — retry freely on timeouts. Beyond the window, do not resubmit the same job to check on it; use GET /quote-request/{reference} with the returned access_token instead.\n\nWebhook: send callback_url (https, public hosts only) and the status payload is POSTed to it when quotes are ready — no polling.\n\nGuards: a filled honeypot field (website) returns a success-shaped 200 and stores nothing; submissions are limited to 5 per 10 minutes per IP — 60 per 10 minutes with a valid X-AFT-API-Key — plus a site-wide soft cap of 300 per hour (429 beyond); bodies over 32 KB get a 413.","operationId":"requestQuotes","parameters":[{"description":"Optional API key from POST /api-keys. Raises the limit to 60 submissions per 10 minutes and stamps the key's agent name on the submission. Invalid keys are treated as anonymous.","in":"header","name":"X-AFT-API-Key","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"city":"Toronto","company":"Example Properties Inc.","email":"jordan@example.com","facility":"Office","frequency":"5× per week","message":"Two washrooms, kitchen, boardroom. Access after 6 pm via loading dock.","name":"Jordan Lee","service":"commercial-cleaning","sqft":"5,000 – 10,000","start":"This month"},"schema":{"$ref":"#/components/schemas/QuoteRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"message":"Thank you — your request is in. Expect 3 quotes within 24 hours.","status":"received"},"schema":{"$ref":"#/components/schemas/HoneypotResponse"}}},"description":"Honeypot response: returned when the website field is filled. Success-shaped, but nothing is stored and no reference is issued."},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequestCreated"}}},"description":"Request stored. The response carries the reference and the one-time access_token — store both; the token cannot be recovered or re-issued."},"400":{"content":{"application/json":{"examples":{"notesTooLong":{"summary":"Message too long","value":{"code":"aftc_notes_too_long","data":{"status":400},"message":"The message field is limited to 5,000 characters."}},"validation":{"summary":"Validation failures","value":{"code":"aftc_validation_failed","data":{"status":400},"message":"service must be one of the slugs from GET /services, or \"multiple\". name is required."}}},"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Validation failed (code aftc_validation_failed, failures listed in message) or the notes/message field exceeded 5,000 characters (code aftc_notes_too_long)."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Request body over 32 KB."},"429":{"content":{"application/json":{"example":{"code":"aftc_rate_limited","data":{"status":429},"message":"Too many requests from this address. Please wait a few minutes, or use the form at https://www.askfortask.com/ca/get-quotes/"},"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Rate limit: more than 5 submissions in 10 minutes from one IP (code aftc_rate_limited). Wait — do not retry in a loop."},"500":{"content":{"application/json":{"example":{"code":"aftc_store_failed","data":{"status":500},"message":"We could not store your request. Please use the form at https://www.askfortask.com/ca/get-quotes/"},"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"The request could not be stored (code aftc_store_failed). Fall back to the human quote form at https://www.askfortask.com/ca/get-quotes/."}},"summary":"Submit a quote request","tags":["Quote requests"]}},"/wp-json/askfortask/v1/quote-request/{reference}":{"get":{"description":"Requires the one-time access_token issued by POST /quote-request, sent as the X-AFT-Access-Token header (preferred) or the access_token query parameter. Unknown reference and wrong token return the identical 404 so references cannot be probed. Poll no more than once every 15 minutes per reference.","operationId":"getQuoteStatus","parameters":[{"in":"path","name":"reference","required":true,"schema":{"example":"AFT-000123","pattern":"^AFT-[0-9]{6}$","type":"string"}},{"description":"Alternative to the header. The header is preferred.","in":"query","name":"access_token","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteStatus"}}},"description":"The request's current status; quotes is null until status is quotes_ready."},"401":{"content":{"application/json":{"example":{"code":"aftc_token_required","data":{"status":401},"message":"An access token is required. Send the access_token from the POST /quote-request response as the X-AFT-Access-Token header."},"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"No access token supplied (code aftc_token_required)."},"404":{"content":{"application/json":{"example":{"code":"aftc_not_found","data":{"status":404},"message":"No request matches that reference and token."},"schema":{"$ref":"#/components/schemas/WpError"}}},"description":"Unknown reference or wrong token — deliberately identical either way (code aftc_not_found)."}},"security":[{"AftAccessToken":[]}],"summary":"Read a quote request's status and, when ready, its quote pack","tags":["Quote requests"]}},"/wp-json/askfortask/v1/services":{"get":{"description":"Every service AskforTask offers, with its page URL, description, inclusions, and the same cited indicative pricing table the website publishes. The slug in each entry is the identifier used by GET /pricing and POST /quote-request — never invent a slug; copy it from this response.","operationId":"listServices","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicesResponse"}}},"description":"The full service list.","headers":{"Cache-Control":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}}}},"304":{"description":"Not modified — send If-None-Match with the ETag from your last fetch and an unchanged resource costs nothing."}},"summary":"List every service, with cited indicative pricing","tags":["Discovery"]}}},"servers":[{"description":"Production","url":"https://www.askfortask.com"}],"tags":[{"description":"Optional self-serve API keys.","name":"API keys"},{"description":"Read the offer: services, areas, cited pricing.","name":"Discovery"},{"description":"Submit a quote request and read it back.","name":"Quote requests"}]}