API reference
API: Inquiry form
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /v1/embed/inquiry/:key | A center's inquiry form, for its own website to show in a frame (only the websites it named may) (no sign-in) | — |
| POST | /v1/embed/inquiry/:key | Send an inquiry to a center from its website form (and book a tour, when it offers them) (no sign-in) | — |
| GET | /v1/embed/inquiry/:key/tours | The tour times a center offers on its inquiry form in the next three weeks (times and places left only) (no sign-in) | — |
Examples
GET /v1/embed/inquiry/$KEY
A center's inquiry form, for its own website to show in a frame (only the websites it named may). No sign-in, so it sends no key.
curl -s "https://api.tendbrook.com/v1/embed/inquiry/$KEY"const res = await fetch(`https://api.tendbrook.com/v1/embed/inquiry/${key}`, {
method: "GET",
});
const data = await res.json();POST /v1/embed/inquiry/$KEY
Send an inquiry to a center from its website form (and book a tour, when it offers them). No sign-in, so it sends no key.
curl -s -X POST "https://api.tendbrook.com/v1/embed/inquiry/$KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.tendbrook.com/v1/embed/inquiry/${key}`, {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();GET /v1/embed/inquiry/$KEY/tours
The tour times a center offers on its inquiry form in the next three weeks (times and places left only). No sign-in, so it sends no key.
curl -s "https://api.tendbrook.com/v1/embed/inquiry/$KEY/tours"const res = await fetch(`https://api.tendbrook.com/v1/embed/inquiry/${key}/tours`, {
method: "GET",
});
const data = await res.json();Request and response schemas: https://www.tendbrook.com/openapi.json. All resources: API reference.