Skip to content

API reference

API: Inquiry form

Markdown version

MethodPathWhat it doesScope
GET/v1/embed/inquiry/:keyA 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/:keySend 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/toursThe 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.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.