The Build object
idstringrequiredbld_ followed by 26 characters.
statusstringrequiredbuilding: still going. ready: method is what it made. requires_auth: it waits for a connected account on the site and goes on by itself once there is one. unsupported: it ended without a method; reason says why.
buildingreadyrequires_authunsupported
kindstringrequirednew: a new method (based_on when it was started from another). change: a change of the method in based_on, which improves its version in place when the contract stays, else makes its next version. repair: Fous repairing a version of your method.
newchangerepair
effectstringWhat the method does: read gets data; write does something on the site, which the build does once for real.
readwrite
querystringrequiredThe request the builder works on; a follow-up’s also carries the request it goes on from.
askedstringrequiredThe person’s own words.
imagesarray of objectThe images sent with the request.
Show child attributesHide child attributes
urlstringrequiredGET it with your key.
platformstringqueueobjectA change waiting for the one running on the same method (one change at a time per method, repairs first): how many are ahead of it.
Show child attributesHide child attributes
aheadintegerrequired
eventsarray of objectrequiredWhat the build said as it worked, oldest first.
Show child attributesHide child attributes
atstringrequiredkindstringrequirednote: what the builder found or decided, in its own words. status: what it is doing (the latest is the live line).
notestatus
messagestringrequired
messagesarray of objectWhat the person sent to the build, oldest first.
Show child attributesHide child attributes
atstringrequiredtextstringrequiredimagesarray of objectShow child attributesHide child attributes
urlstringrequiredGET it with your key.
seenbooleanrequiredThe builder took it in. One it did not take in went on to the next build (next), unless the build had done its action on the site.
followsstringThe build of the same thread this one goes on from.
nextstringThe next build of the thread: messages this one did not take in went on there.
reasonstringWhy it ended as it did, in a plain sentence; for a version your organization is not on, what it changes and how to switch.
outcomeobjectOnce ended, what the build made: improved (the version revised in place, for everyone using it), new_version, new_method, already_done (the version already does this; free) or repaired.
Show child attributesHide child attributes
typestringrequiredimprovednew_versionnew_methodalready_donerepaired
versioninteger
may_have_runbooleanA write build ended unsure whether its action reached the site: check there before asking again.
based_onobjectThe method and version it changes or was started from.
Show child attributesHide child attributes
idstringrequiredslugstringrequirednamestringrequiredversionintegerThe version, when one is meant.
methodMethodperformedbooleanA write build did the action once, for real.
resultobjectperformed: what the site answered.
Show child attributesHide child attributes
dataJSON value
estimateobjectWhile building: how long recent builds took. low_seconds to high_seconds is the middle half; median_seconds is the middle one.
Show child attributesHide child attributes
low_secondsintegerhigh_secondsintegermedian_secondsintegersamplesinteger
created_atstringrequiredcompleted_atstring
List builds
Your organization’s 50 newest builds of the past 30 days, newest first, with the repairs of its methods; dismissed ones are left out. Free.
Build a method
Builds a method for one capability, on the site you name or on the sources that answer it best (merged when several have it), usually in about a minute (a site that is harder to read can take a few). A build makes a new method of your organization, public unless you send visibility private (anyone can find and run a public one, with their own accounts): search is where existing methods are found. With method it changes that method (any public one, or your own; @N starts from one version, else the latest): a change that keeps its inputs and outputs improves the version in place, for everyone using it, free, and only when it still answers the saved inputs at least as well; one that changes them makes the next version; a different capability, visibility private on another organization’s method, or a change by a non-owner to a method that signs in or acts makes a method of your own, based on it. One change at a time runs per method (queue says how many are ahead); a request the version already does ends at once with outcome already_done, free. Steer it with POST /v1/builds/{id}/messages. A public build is free within the plan’s monthly allowance, then 100 credits; a private one always costs 100 credits; a build that makes no new method is free.
Request body
Required, JSON.
querystringrequiredWhat the method should read or do, in plain words.
platformstringThe website (a domain); without it the builder picks the sources.
inputobjectValues to build with: the first test input. A write build does the action once for real, with these values or made-up ones.
input_schemaobjectThe inputs you want the method to take, as a JSON Schema object.
output_schemaobjectThe fields you want back, as a JSON Schema object.
methodstringA method id or slug to change (@N: from that version): improved in place, its next version, or a method of your own from it.
imagesarray of objectUp to 4 pictures that show what you mean (PNG, JPEG, WebP or GIF), 2.5 MB in all: each {"url"} (a public https address Fous reads) or {"media_type", "data"} (base64).
visibilitystringRequired for a new method (without method). public: anyone can find and run it, with their own accounts. private: only your organization, for 100 credits; on another organization’s method it makes a method of your own. A new method made from one of your private methods is private unless you send public.
publicprivate
connectionsarray of stringThe connections (logins or API keys, on any sites) the build may use: on each site it signs in to, the one of that site; an empty list builds without any. Without it, the site’s default login.
Returns
A Build object.
- 200The same request already waits for a connected account (requires_auth); it goes on by itself once there is one.
- 202Building: a new build, the same request already running (joined), or the change already running on that method, which takes this request as a message. Poll GET /v1/builds/{id}. The same Build, with status "building".
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | Invalid body or schema |
| 402 | insufficient_credits | Allowance used and not enough credits |
| 403 | forbidden | Only owners and admins build |
| 404 | not_found | No method to start from, or no such version of it |
| 413 | invalid_request | The body is over 4 MB |
| 422 | not_buildablerequest_refused | No website, app, account or API is involved (not_buildable), or the request check turned it away (request_refused, with its verdict as reason) |
| 429 | rate_limited | Too many requests for the plan this minute |
| 503 | service_unavailable | The builder or billing is briefly unavailable; nothing was charged |
Get a build
The build: its status, what it said as it worked (events), the messages sent to it, and the method once ready. requires_auth means the site needs a connected account first. Free.
Path parameters
idstringrequired
Query parameters
waitintegerdefault0Seconds to hold the answer while it is still running, 0 to 60.
afterintegerThe number of events you have: a wait ends as soon as there are more.
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such build |
Dismiss a build
Takes a finished build off the list; the method it made stays. A build waiting for a connected account ends. Free.
Path parameters
idstringrequired
Returns
- 200Dismissed.
The answer has these fields:
idstringdismissedboolean
Cancel a build
Cancels a build that is still going: it ends with the reason "Stopped." and nothing is charged for it. A write build that already sent its action says so. Free.
Path parameters
idstringrequired
Message a build
Sends a message to a build, checked like a build request. A running build takes it at its next step (202 with the same build; seen turns true once it has). After the build ended, the message starts the next build of the thread: a change to the method it made, or the request again with the message (a new build whose follows names this one, priced as a build).
Path parameters
idstringrequired
Request body
Required, JSON.
textstringrequiredYour message, in plain words.
imagesarray of objectUp to 4 pictures that go with it, 2.5 MB in all: each {"url"} (a public https address) or {"media_type", "data"} (base64).
Returns
A Build object.
- 200The next build of the thread waits for a connected account (requires_auth).
- 202The running build takes it at its next step, or the next build of the thread started. The same Build, with status "building".
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | Invalid body |
| 402 | insufficient_credits | Allowance used and not enough credits |
| 403 | forbidden | Only owners and admins change builds |
| 404 | not_found | No such build |
| 413 | invalid_request | The body is over 4 MB |
| 422 | not_buildablerequest_refused | No website, app, account or API is involved (not_buildable), or the request check turned it away (request_refused, with its verdict as reason) |
| 429 | rate_limited | Too many requests for the plan this minute |
| 503 | service_unavailable | The builder or billing is briefly unavailable; nothing was charged |
Get a build image
An image sent with a build request or a message, by its position (the url in images names it). Free.
Path parameters
idstringrequiredpositionintegerrequired
Returns
The file, as image/*.
- 200The image.
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such image |