MarkinField documentation
Upload an OpenAPI contract, set up how to sign in, put calls together into flows, run them, and export reports. This page explains every part of the app and how to get out of trouble.
Quick start
- Try it without your own API. On Projects, choose Try the sandbox (or Try the GraphQL sandbox). It creates a project against a small practice API that is built into the app, with a test user already set up. It works straight away, before anything else is set up.
- Try a request, then open Flows. Collections lists every request: pick one and press Send to see what the API answers. In Flows, the requests are listed on the right. Click one to start a flow, or choose New flow for a ready-made create / read / update / delete lifecycle.
- Press Run. The app signs in once, runs the steps, cleans up whatever they created, and signs out. Results appear as it goes.
- Export a report for one flow or the whole run, as PDF, HTML or JSON.
For your own API, choose New project, upload the contract, enter the base URL and sign-in details, and continue from step 2. No contract file? Choose Start with one request in the same dialog and describe it; you can add the others by hand.
Projects and contracts
A project is one API. It is built from an OpenAPI 3.0 contract in JSON (.json), or from a GraphQL schema. The app reads the endpoints, the request and response shapes, which endpoints need authentication, and which endpoints create something that another endpoint can delete.
- What can be sent. Requests can take a JSON, form, multipart, text or file body, and answer with JSON, text or a file: see Kinds of body and answer. Contracts that describe them are imported as they are.
- Warnings. Anything in the contract the app cannot use (for example an unsupported reference) is listed as a warning on the project, and affected endpoints are marked blocked instead of being guessed at.
- Where it lives. Each project belongs to a workspace and has an owner. The project name in the breadcrumb switches projects.
- Read-only mode (Settings). Only
GETrequests are sent; create, update and delete steps are skipped and reported as skipped. Use it for production-like environments.
Adding requests by hand
You do not need a contract file to test a request. On the Flows page or in Collections, choose the + next to Requests and describe one:
- Method and path (always in view). Write a part that changes in braces, like
/users/{id}/orders. On Details, each one gets its own box for an example value; leave it empty and you are asked for the value when a flow needs it. The base address (likehttps://api.example.com) belongs to the environment, not the path. - Details also holds a name, a group, the query parameters (sent every time), and Needs sign-in, which sends the environment's credentials with the request and starts on when most of the project's requests need it. Once it is ticked, Sign in with chooses how: a bearer token, Basic, an API key (in a header or the query, with its name) or OAuth2. The credentials themselves are entered in the environment; see Ways to sign in.
- Body (for
POST,PUTandPATCH) can be JSON, a form, a multipart form, plain text or XML: choose the type, then write the body (fields for a form, text for the rest). Write{{name}}where you want to fill in a value later (see Values and placeholders). Files can be attached to a multipart body when you send it from Collections. - Response says what comes back, which is what lets real answers be checked. Counts as success lists the status codes to expect (it starts with the usual ones for the method, for example
200, 201forPOST). What a success answer looks like takes a kind (JSON, plain text, XML or HTML) and a sample. For JSON, the sample's fields and types are checked in real answers (untick the box to check only that it is JSON), and its fields appear in Structure and can be remembered or checked in a flow. Other answers describes an error the API can give, such as a404or a400, in the same way. Leave it all as Not described and answers are not checked.
The request is added to the project's contract, so it behaves like any other from then on: click or drag it into a flow, monitor it, load-test it. Each addition is a new version in the Contract history and can be undone straight away with Undo, or from that page. Adding requests is for project owners and workspace admins, like other contract changes. The Contract page has Download current contract, which saves the contract as it stands now, with everything you added by hand in it, as an OpenAPI file you can keep or share.
Working with GraphQL? The same dialog has a REST / GraphQL switch at the top: see GraphQL.
The list of requests in Flows can be made wider or narrower: drag the small grip between it and the flows (or focus it and use the left and right arrow keys). Double-click the grip to go back to the standard width. The width is remembered on this device.
Starting from Postman, a HAR file or curl
No contract? In New project, choose Postman, HAR or curl and paste what you have or choose a file. Each request becomes an endpoint, and from there it works like any project: set where the API runs and how it signs in, then make flows.
- A Postman collection (exported as JSON, version 2). Folders become groups,
:idand{{variable}}parts of a path become path parameters, query parameters that are switched on are kept, and a saved example response gives the endpoint its success status and the shape of its answer. The collection's own address variable (such as the base URL) becomes the project's address. - A HAR file, saved from the network tab of your browser's developer tools. Only the API calls are used (JSON or XML requests, and fetch or XHR calls), not pages, scripts or images. A real address like
/customers/123becomes/customers/{customer_id}, so repeated calls with different ids become one endpoint. - curl commands, one or several, with or without line continuations, including ones copied from your browser's “Copy as cURL”.
Secrets stay out. Authorization headers, cookies and the values of fields named like passwords, tokens or keys are never kept: a request that was signed in is marked as needing sign-in, and a password in a body becomes a {{password}} placeholder you fill in as an environment value (stored encrypted). Example answers have those values blanked. Anything it could not use, such as file fields, GraphQL bodies or methods other than GET, POST, PUT, PATCH and DELETE, is listed before you create the project, and you can still review and edit everything afterwards.
GraphQL
A GraphQL API answers every question at one address, so the app treats each query and each mutation as a request of its own. They live in the same lists as any other request: try them in Collections, put them in flows, monitor them.
- Start a project. In New project, choose GraphQL schema. Either give the API's address and it is asked for its schema once (some APIs turn this off, and some want a token even for it: there is a box for an Authorization header, used for that one request and not kept), or paste the schema in GraphQL's own language or the answer of an introspection query. Every query and mutation becomes a request with a ready-to-send operation, and its answer is described so real answers can be checked. Subscriptions keep a connection open, so they are left out, and the project says so.
- What each request holds. Its operation, its variables and the address it is sent to. An ID variable is left for you to fill in (see Values and placeholders); other variables start with a plain example. Change the operation or the variables like any other body. The request's name reads
/graphql#query.nameso that each one is different, but it is always sent to the API's own address. - Errors count. A GraphQL API answers
200even when the operation failed, and says so under errors. A step whose answer carries errors fails, and the message shows what they said. To check for an error on purpose, add a check on a field under/errorsto the step. - Signing in. A mutation such as login or signIn is found and offered as the way to Log in, with the token read from its answer, like a login endpoint of a REST API. Those mutations are left open; everything else is sent with the environment's credentials.
- Queries read, mutations change. Read-only mode and monitors treat a query as safe and a mutation as a change. Load tests send only
GETrequests, so they are not offered for GraphQL requests. - By hand. Choose GraphQL in the Add a request dialog, and type one operation with its variables. You can add what the data should look like, and how it signs in. It joins the contract as a new version that can be undone, like any request added by hand.
- When the schema changes. On the Contract page, paste the new schema (or the answer of an introspection query) and choose Compare. It is compared and applied like any contract update, with what is new, what is gone and what changed. The address and the way requests sign in are kept, and a new request needs what most of the others do.
- Practice. Try the GraphQL sandbox on the dashboard creates a project against a small library of books that runs on your machine and keeps its data in memory. It has a login mutation, and a flow that adds a book, reads it back and removes it.
Environments and sign-in
An environment is a place your API runs (local, staging, production). Flows are the same everywhere; the environment supplies the base URL, headers and credentials. Choose which one to use with the selector at the top right. Manage them under Environments.
| Setting | What it does |
|---|---|
| Base URL | Where requests are sent. Must be an absolute http(s) address with no credentials, query string or fragment. |
| Default headers | Added to every request. Values can use {{placeholders}}. People who cannot manage the environment see only header names. |
| Default authentication | Log in (a login endpoint returns a token), Bearer token, Basic, API key, OAuth2 or None. See Ways to sign in. |
| Credentials | Stored encrypted. They are never shown again after saving, and members cannot see them at all. |
| Request values | Placeholders the contract could not fill in by itself. |
| One-time codes | Where to fetch codes automatically. See One-time codes. |
How signing in works
With Log in, the app calls the login endpoint once at the start of a run, keeps the token in memory, uses it for every request, and calls the logout endpoint once at the end. The token is never stored. Use Test login on the environment to check the credentials; it reports success and discards the token.
Any flow can override this with its own authentication and extra headers (flow menu ⋯ → Authentication & headers). A flow with its own login signs in and out by itself.
Ways to sign in
Choose how requests sign in on the environment (the default for the whole project), or for one flow (flow menu ⋯ → Authentication & headers). All of them are available whatever the contract says; when a contract names a way (an API key, say), it is chosen for you. The credentials are stored encrypted and never shown again.
| Way | What you enter | What is sent |
|---|---|---|
| Log in | The login request's credentials | The token the login request returns, as a bearer token. Signed in once at the start of a run, out once at the end. |
| Bearer token | The token, and the word before it if it is not Bearer (some APIs want Token) | Authorization: Bearer … |
| Basic | A username and a password | Authorization: Basic … (the two, joined and encoded). A username cannot contain a colon. |
| API key | The key, where it goes (a header or the query string), its name (like X-API-Key), and text before it if the API wants some | The key in that header, or as that query parameter. |
| OAuth2 | The client id and secret, the address that gives out tokens (a full address, or a path on the environment's address), an optional scope, and whether the client goes in a Basic header (most common) or in the body | A token is asked for with client credentials once per run and reused as a bearer token. It shows in the results as its own row. |
| None | Nothing | No Authorization header (one you wrote yourself is kept). |
Test. Test login and, for OAuth2, Test token check the credentials once and report only whether it worked. The token is discarded. The credentials, the tokens they produce and the encoded Basic value are hidden in results and reports like any other secret.
The missing-auth check a flow can run sends the request without any of these, to see that the API refuses it.
Collections
Collections is the first item in the project menu. It lists every request in the project's contract, grouped the way the contract groups them. Choose one to send it on its own, like a REST client, without building a flow, and to see what it takes and what it answers with.
Trying a request
- Build it. The tabs Parameters, Headers, Body and Options hold what can be changed. An empty box means "as usual": the value the environment already has. Tick an optional parameter to send it, or add other query values of your own. The Body tab fits what the request takes (see Kinds of body). You can edit it freely (Contract example puts the contract's own back); it is sent as you write it, even if the contract would not allow it, so you can see how the API answers bad input.
- Send (or Ctrl/⌘ + Enter) sends it on the environment chosen at the top right, signed in the way that environment says, or without signing in if you choose that under Options. Nothing is added to the run history.
- The answer. The status, the time and the size; the Body; every response Header; What was sent, with secrets hidden; and Contract checks, which say whether the answer fits what the contract describes for that status. A 404 is shown as a 404, not as a failure: judging it is up to you. Also done lists the sign-in, sign-out and cleanup that happened around it. An answer that is not JSON is shown as it is: text as text, XML indented so it can be read, an image as a picture, any other file by its type and size with a Download button.
- Values it needs. If a value has nothing yet (an empty value in the environment, or an ID that an earlier step of a flow would normally supply), you are asked for it. What you type is used for that send only and is never saved.
- Cleanup. If the request creates something the contract says how to delete, it is deleted afterwards. Turn that off under Options to keep it. If the deletion fails, Also done says so; nothing is tracked in Needs attention for a request sent from here.
- Always in view. The request's address, Send and tabs stay at the top while you scroll a long answer, and the answer's status and tabs stay just under them. The list of requests keeps its heading and search box. On a small or short screen nothing is pinned, since it would leave too little room.
- Limits. The API has 15 seconds to answer. An answer can be up to 2 MiB; text is shown up to about 500 KB, and a file is kept for showing or saving only up to 1 MiB. Files attached to a body are limited to 2 MiB in all.
- Who can send. Anyone who can run flows. Viewers can look at everything but not send. In a read-only project only
GETrequests are sent.
Kinds of body
JSON is only one way to send data. The app sends whatever the contract says a request takes:
| The contract says | You get | How it is sent |
|---|---|---|
application/json | A JSON editor, with Format | As JSON. The body is also checked against the contract's schema when it is used in a flow. |
application/x-www-form-urlencoded | One row per field: a name and a value | As name=value pairs. A name used twice is sent twice. |
multipart/form-data | Rows of name and value; a row can be a File you choose from your computer (up to 2 MiB in all) | As multipart form data, with the file's name and type. |
text/plain, application/xml, text/csv, YAML and other text | A text box (XML also has Format) | Exactly as written, with the type the contract names. |
A file: application/octet-stream, image/*, application/pdf… | A file to choose | As the file's own bytes, with its type. |
If a request lists several, JSON is used, then a form, then other text, then a file. In a flow's step, a form body is edited field by field like a JSON one, and a text body is written as it is. A file can be picked only when a request is sent from Collections; in a flow, a file is a value written as { "$file": { "name": …, "type": …, "content": <base64> } }. Load tests are for GET requests, so they never send a body.
Answers are read the same way. JSON answers are checked against the contract's schema. An answer that is text or a file is checked only for its type: a contract that promises text/plain is told when application/json comes back. What a step can remember or check with a JSON pointer works on JSON answers only.
Structure
The Structure tab shows every parameter (optional ones too) with its type and rules, the body as a tree of fields (which are required, their types, allowed values and limits, and the named shape they come from), and each response by status. Fields and Example switch between the shape and a sample of it. Used in flows lists the flows and steps that call the request.
The same structure is available from Flows: the small i beside a step's path, and beside a request in the list on the right (it appears when you point at the row), and the Structure tab of the step form. Open in Collections from there takes you to the request to send it. The + next to Requests adds a request by hand, as it does in Flows. Opening Collections chooses the first request for you, so there is always one ready to send.
Flows and steps
A flow is an ordered list of steps, each one call to a request. For example, to test that deleting a customer works: create a customer, read it, delete it, then check it is gone. Flows run one step at a time; if a step fails, the rest of that flow is blocked (not run), because they depend on it.
Three ways to make a flow
Click a request on the right, or drag it into a flow at the position you want. Add step opens the full step form.
From New flow. Builds create, read, update and delete for a resource, adding any prerequisites (for example the customer an order needs). No AI involved.
From New flow. Describe a goal, or let it find flows. It proposes; you review before anything is saved. See AI proposals.
The step form
The step form has four tabs, so each part gets the room it needs. A line at the top always shows which request the step calls.
| Tab | What is in it |
|---|---|
| Step | Which request to call; a note for people, shown on the flow and in reports; and the expected statuses (default: the contract's success status). Add a negative case to prove an error is returned. A dot on the tab means something is set. |
| Request | Fields of the request body to set or leave out, or the whole body as JSON; and values for path, query and header parameters. The number on the tab counts what you have changed. The request and the response are also checked against the contract's schemas. |
| Response | Values to remember for later steps (using a JSON pointer such as /id), and checks that a part of the response equals a value. |
| Structure | A read-only look at what the request takes and each response it can give, as in Collections. Useful for choosing a field to remember or check. |
The Insert… menu next to a field lists values that earlier steps and the environment provide, plus Ask me when it runs… for values only a person can supply.
customer_id takes its value from an earlier step ({{createCustomer.customer_id}}); the Insert… menus list what is available.Flow settings
- The page heading and each flow's header (its name and Run button) stay in view while you scroll a long flow, and so do the tabs and heading of a dialog such as the step form.
- Exclude from Run all keeps a flow out of Run all but you can still run it on its own.
- Duplicate, move up/down, delete are in the ⋯ menu. Steps can be reordered with ↑ ↓ or by dragging the step number.
- A flow with cleanup still owed cannot be deleted until that is retried or dismissed (see Cleanup that failed).
Values and placeholders
Anywhere a value can vary, write {{name}}. When the whole value is a single placeholder, its type is kept (a number stays a number). If a placeholder has no value when it is needed, the step is blocked and says which one.
| Form | Comes from |
|---|---|
{{createCustomer.customer_id}} | A value the contract says an earlier request returns (named <request>.<parameter>). Add that request earlier in the flow. |
{{token}}, {{challenge}} | A capture you defined on an earlier step in the same flow. |
{{base_url}}, {{region}}… | The environment's values and saved credentials. |
{{input.otp_code}} | A runtime input: something only a person, or a code source, can provide while the run is going. See One-time codes. |
{{run_started_at}} | Only in code sources: the time the run began, so an inbox can be asked for newer messages only. |
If a flow needs a value that is missing, a warning appears under the flow. Fix it by adding the earlier step, by entering the value (Enter values), or with Ask me when it runs.
AI proposals
When AI proposals are turned on for your installation, New flow → AI can propose flows for a goal such as “check that a customer can be deleted and is gone afterwards”, or find flows on its own. It is propose-only: it never saves or runs anything. You review each proposal, see any problems it found (steps it was not allowed to use, invalid JSON it wrote), and choose what to add. It is sent the contract, your existing flows and the names of the values available (never their values), and it never sees credentials or run results. Wherever AI does work, a small sparkle marks it: on the button, menu item or dialog that starts it, and on what it writes back.
Review a flow
The ⋯ menu on a flow has Review with AI…. It reads the flow the way a careful colleague would and lists what it found, most important first, each tied to a step: a read after a create that proves nothing about what was sent, a step that depends on something no earlier step produces, a resource the flow creates that has no cleanup (so a failed run would leave it behind), an expectation the contract does not document, or an obvious gap in what the flow covers. Each point says what to change. It only advises: nothing is changed, and it has not seen your API's answers, so treat it as a second pair of eyes, not a verdict. It is sent the flow's shape (each step's endpoint, expected statuses, and the names, never the values, of what it captures, overrides and asserts on), what the contract documents for those endpoints, and the list of other endpoints, and it is counted in AI usage as flow reviews.
Sets of checks: wrong input, boundaries, security basics
Under New flow → AI, three buttons start from a ready-made set of checks. Each fills the goal box with what it will ask for, and you can edit it first (for example to name one endpoint).
- Wrong input. For endpoints that take a body or parameters: a required field missing, a value of the wrong type, an empty or null value, an unknown choice from a list, a malformed id. The API should refuse each with the client error the contract documents.
- Boundary values. For fields whose limits the contract states (minimum, maximum, length, allowed values): the value exactly at each limit, which should be accepted, and one just outside it, which should be refused. Limits the contract does not state are not invented.
- Security basics. A protected endpoint called with a made-up token, ids that do not exist or are malformed, and odd text in fields (quotes, markup, very long values). None of these should ever cause a server error. Checks that need two different users, such as one customer reading another's data, are not covered: a flow signs in as one user.
The steps that send bad input are marked as deliberate, so they are sent even though they break the contract, and the API refusing them counts as a pass. That also means they send real bad requests: run them against a test environment, not production. If the API wrongly accepts one it may create data; the flow cleans up what it can, and a read-only project skips every step that is not a GET. As always you review the proposed flows and choose what to add, and nothing runs until you run it. Besides the usual information, these sets send the limits the contract states for each field, never any value of yours.
If New flow → AI says AI is not set up, ask whoever runs the app to turn it on. Everything else works normally without it.
Explain this failure
On a failed step, in Runs or on the flow itself, Explain this failure asks AI why it most likely failed. It answers in plain words: the likely cause, what points to it, what to check next, and whether the fault most likely lies in the API, the test or the environment, with how confident it is. It also looks back: if the step has run before, it compares today's failure with the last time it passed (how long ago, how many runs have failed since, how fast it used to be), whether the API's contract was updated in between, and whether other steps failed in the same run. A step that passed until the contract changed points to the API; one that has never passed points to the test; many steps failing together with the same status points to the environment or sign-in. It is a guess to point you in a direction, not a diagnosis, and it never changes anything.
What is sent: the step's method and path, what it expected, the status it got, the error messages, what the contract documents for that endpoint, and how the earlier steps of the flow went. Not sent: request or response bodies, headers, addresses or credentials. Error messages can quote values (for example an assertion that shows a name), so treat them as sent. Asking again about the same failure costs nothing. Viewers cannot use it, since it spends the workspace's AI budget.
Explain the whole run
When two or more steps of a run failed, the run page shows Explain the whole run above the results. It reads every failed step together and says what they share, because many failures often have one cause: a sign-in that broke everything after it, one endpoint failing in several flows, a whole environment down, a contract update just before, or tests that expect the wrong thing. It answers in plain words with the likely cause (the API, the tests, sign-in, the environment, the contract, several causes, or cannot tell), how many of the failures that explains, and what to check first.
It costs one use of AI however many steps failed, where explaining each failed step costs one each, so it is the better first click. What is sent: each failed step's flow, endpoint, kind, expected and actual status, timing and short messages (links and email addresses removed), the run's counts, how earlier runs in the same environment went, and what changed in the contract since the last clean run. Not sent: requests, responses, headers, values or credentials. A reading that quotes a number the data does not carry is thrown away and tried once more. A finished run does not change, so asking again costs nothing. Viewers cannot use it.
Mobile tests: explain a failure, summarise a release
In a mobile project, a failed test group under What needs attention has Explain with AI. It answers in plain words: what most likely went wrong, what points to it, what to check next, and a short label for the kind of cause (the element was not found, the screen differs from the recording, timing, the device, the app closing, the app having changed, the environment, or cannot tell). If the group has run before, it compares with the last time it passed, including whether that run used the same build.
On the Release page, each build has Summarise with AI: a few plain sentences describing what your release rules found. It only describes. The rules decide whether a build is Ready, Blocked or Incomplete, and a summary that contradicts them is thrown away rather than shown.
What is sent: names and positions of steps, their statuses and the runner's own messages, counts, and how the group went in earlier runs. Not sent: screenshots, anything typed into the app, selectors, logs, stored files, network traffic or the app itself. Links and email addresses in names and messages are removed first. Both use the same AI budget and the same free allowance as every other AI feature; asking again about the same failure or build costs nothing, and viewers cannot use them.
AI usage and budget
Every use of AI, proposing flows or explaining a failure, is counted. Workspace → AI usage (the Members page) shows this month's spend against a budget, day by day, by what it was for, by project and, for admins, by person, with the latest calls. Everyone in the workspace sees the total, and a note appears in New flow → AI so nobody is surprised.
- Monthly budget. A workspace admin sets one, or leaves it empty for no limit. At 80% a warning shows. When it is used up, AI stops until it is raised or the month ends; nothing is sent to the model in the meantime. A budget of 0 turns AI off for the workspace. A call that starts under the limit can finish a little over it.
- Estimates. Tokens are counted exactly. Dollars are an estimate from the token counts at the rates shown on the page, not a bill, so check the real figure with your AI provider. Whoever runs the app can set the rates.
- Months are calendar months in UTC, so the budget resets on the 1st at the same moment for everyone. Use the arrows to look at earlier months.
Ask or do (Ctrl K)
The Ask or do… button in the top bar of an API project, or Ctrl K (Cmd K on a Mac), opens one box for the AI tools that are otherwise spread across the app. Type a sentence and pick what to do with it:
- Ask about your data: answered right there, from the recorded checks, runs and monitors, like Ask about this data.
- Set up monitors or alerts: opens Set up in a sentence with your words in it.
- Propose flows for this goal: opens New flow → AI with your words as the goal.
- Describe a load test: opens New load test with your words in the description field.
The tools are listed with the most likely one first, judged from your words (a question mark, "every 5 minutes", "50 users"), but all of them are always there and you choose. Typing a page name, such as monitors or contract, offers a jump to that page. Choosing where a sentence goes costs nothing. The dialogs it opens send nothing to AI until you press their own button, and only Ask about your data answers at once and uses a little of your AI budget. Tools your role cannot use are shown greyed with the reason.
Undo, drag and drop
- Undo. Every flow edit (steps, rename, exclude, authentication, reorder, duplicate, delete, adding flows) shows a toast with Undo. Ctrl/⌘+Z steps back through the last 20 edits while you are not typing in a field. A deleted flow comes back with its steps, settings and position. Credentials saved in the authentication dialog are kept if that change is undone. Adding a request by hand offers Undo too (on the Flows page and in Collections), as long as nobody has updated the contract since; if they have, use Undo on the Contract page instead.
- Drag and drop. Drag a request into a flow (an insertion line shows where it lands), onto a collapsed flow (it opens while you hover), or onto the “start a new flow” zone. Drag a step's number to reorder within its flow. Clicking a request and the arrow buttons still work with the keyboard.
- Request groups follow the contract's tags and can be collapsed; the choice is remembered per project.
Running flows
Use Run on a flow, or Run all for every enabled flow. A run always follows the same order:
Cleanup
Whatever a flow creates is deleted automatically after the flow, newest first, using the delete endpoint the contract pairs with each create. If the flow deleted the thing itself, it is not deleted twice. Cleanup runs even if a step failed, and even if you cancel.
404 steps are meant to: they prove the customer is gone. ▶ To here is explained under Pause, continue, discard.Flows that need a person
A flow that contains {{input.…}} and has no code source is listed under Needs your input and is left out of Run all. Start it from its own Run button. See One-time codes.
Run up to a step
▶ To here on a step runs the flow up to and including that step and pauses there. See Pause, continue, discard.
Other things to know
- Runs execute on the server in the background, so you can leave the page and come back; find them under Runs.
- Requests time out after a few seconds and responses larger than 2 MB are cut off.
- If the server was restarted during a run, that run is marked as an error.
Reading results
| Status | Meaning |
|---|---|
| passed | The call returned an expected status and matched the contract and your checks. |
| failed | It ran but something was wrong: unexpected status, a body that breaks the contract, or a failed check. The reasons are listed under the step. |
| blocked | It was not sent, because an earlier step failed, a value was missing, sign-in failed, or the run was cancelled. |
| skipped | Deliberately not sent (read-only mode, or the step is disabled). |
- Each flow shows dots for its recent results (newest on the right), and the Runs page shows what changed since the previous run.
- Open a run and expand Request & response to see what was sent and received. Secrets are masked (see Security and privacy).
- Session and cleanup rows show the sign-in, the cleanup deletes and the sign-out, separately from your steps.
One-time codes and two-step sign-in
Some steps need a value that no earlier call returns: a code sent by email or SMS, for example. Write it as {{input.otp_code}} (the name after input. is up to you). You then have two ways to supply it.
1. Ask a person
The flow is grouped under Needs your input and left out of Run all. When you run it, it pauses at that step, shows a dialog with what it is waiting for, and continues when you send the value. The value is used for this run only and never saved, and it is masked in results and reports. Cancel run (or no answer within 10 minutes) blocks the rest of the flow; cleanup and sign-out still run. You can reopen a hidden dialog from the flow or the run's page.
Where a step shows a warning about a missing value, Ask me when it runs sets this up in one click.
2. Fetch it automatically
In Environments → Edit → One-time codes, add a code source named after the input (otp_code serves {{input.otp_code}}). It describes an address to ask, optional headers, where in the answer the code is, and a pattern to pull it out:
| Field | Meaning |
|---|---|
| Address | Absolute, or starting with / to use the base URL. May use placeholders such as {{run_started_at}}. |
| Where in the answer | A JSON pointer like /messages/0/text. Leave empty to search the whole answer. |
| Pattern | A regular expression; group 1 (or the whole match) is the code, for example \b(\d{6})\b. |
| Wait | How long to keep asking before giving up (default 30 seconds). |
| Headers / body | For an API key, use a placeholder like {{inbox_key}}; you are asked for its value and it is stored encrypted. |
The run polls the source until the code appears. A flow whose codes all have a source runs unattended and is included in Run all. Presets are provided for Mailpit and for simple JSON or text endpoints. Test on the source, and Test fetch on a flow, ask it now and report whether a code was found (never the code). They look back one hour, so if the code is only sent when the sign-in step runs, run the flow first.
otp_code) is what steps use as {{input.otp_code}}. The address asks a mailbox for messages since the run began; the pointer and pattern pull the six digits out of the message text.{{run_started_at}} in the address if the inbox can filter by time, so an old code is never picked up.Recipe: two-step sign-in
- Make a flow. Step 1: the login request (find it under Sign-in & session at the bottom of the request list) with the credentials, capturing anything the answer carries, for example
challenge=/challenge. Set the expected status if it is not the usual one (for example202). - Step 2: the request that sends the code, with
code={{input.otp_code}}andchallenge={{challenge}}, capturing the token, for exampletoken=/token. - Flow menu → Authentication & headers: set authentication to None and add the header
Authorization=Bearer {{token}}. A header that names a value that does not exist yet is left off until the step that captures it has run. - Add the steps that use the token, and finally the logout request if the API has one.
202 and triggers the code, step 2 sends it, and the token then authenticates steps 3 and 4. The note under the steps says the code is fetched automatically.The sandbox project includes a working Two-factor sign-in flow to copy from (see The sandbox).
Pause, continue, discard
To debug a long flow, run it only as far as you need, look, and carry on without repeating the earlier steps.
- ▶ To here runs up to and including that step and pauses. Nothing is cleaned up and nobody is signed out, so what earlier steps created and captured is still valid. The flow shows paused after step N.
- ▶ To here on a later step carries on from the pause, up to that step, and pauses again.
- Continue to the end runs the remaining steps, then cleans up and signs out.
- Discard and clean up does only the owed cleanup and sign-out.
201) and what it created is kept. ▶ To here on step 2 or 3 carries on; the two buttons in the notice finish or discard it.Rules
- A failed step is where it resumes, so you can fix the step and retry it without redoing the ones before.
- Editing later steps is fine. Editing a step that already ran, or the flow's sign-in, makes the pause unusable; you can only discard it.
- A paused flow cannot be run another way (that would leave its data behind); Run all is refused while any flow is paused.
- Values you typed for the flow are remembered, so you are not asked twice.
Nothing is left behind
A paused flow cleans itself up after 15 minutes. If the app is stopped or restarts while a flow is paused, its cleanup is done automatically (when the app is stopped normally, or the next time it starts). To make that possible, what the flow needs for its cleanup is stored securely and deleted as soon as the flow is finished; it is never shown in the app or included in reports. Each cleanup is an ordinary run whose report says why it ran.
Cleanup that failed
If a run cannot delete what it created (the API is unreachable or failing, or it rejects the credentials), the app remembers what is still owed. The flow shows cleanup pending with what is left and why.
- Retry cleanup tries again. If the saved sign-in was rejected (common after a long pause), it signs in again once, using the environment's or the flow's own login, and retries. It ends that new session afterwards.
- It is also retried automatically when the server starts.
- Dismiss stops tracking it. Nothing is deleted; whatever is left stays on the API. Use it when you removed the leftovers by hand.
- A resource that is already gone counts as done. A request the API rejects for good (for example a 409 conflict because the customer still has orders) is reported in the run but not retried.
- A flow can still be run while cleanup is owed; a later failure adds to it. A flow with cleanup owed cannot be deleted until it is retried or dismissed.
Monitors
A monitor runs flows or single endpoints on a schedule, so you find out that an API is down, wrong or slow without having to run anything yourself. It keeps how every check went and how long every step took, and tells you when something stays broken.
Setting one up
- Open Monitors in the project's menu and choose New monitor. Owners and admins can create them.
- Name it, and choose where and how often: the environment to check, and an interval from every minute to every day.
- Choose what to watch. Watch a flow to check that something works from start to finish, or a single endpoint to check that it is up. Endpoints that need a value from an earlier step (like
GET /customers/{customer_id}) are not offered; put them in a flow. - Choose when to raise the alarm: after how many failing checks in a row, and optionally how slow is too slow.
Safe by default
A monitor only reads. It sends GET requests, so it can never create, change or delete anything, and it is safe to point at production. Flows and endpoints that would change data are greyed out with the reason. If a flow really must create things, tick Allow this monitor to change data; it then cleans up after itself like any run, but every check creates and deletes real data, so use it with care.
What a check does
- It runs like an ordinary run: it signs in once, runs the steps, and signs out. A monitor every minute therefore signs in every minute.
- A flow that is paused is skipped for that check, and a skipped check counts neither for nor against the monitor.
- A flow that needs a value typed in by a person cannot be watched, because nobody would be there. Give it a code source first (see One-time codes).
- Checks do not appear in Runs or in a flow's history dots, so a monitor cannot bury your own runs. They have their own history on the monitor's page. A failing check keeps its full report (See the full report); healthy ones do not, since there could be thousands.
- Monitors only run while the app is running. If it is stopped, checks pause and resume when it starts; each overdue monitor then runs once, not once for every missed interval.
Reading a monitor
| You see | Meaning |
|---|---|
| healthy | The last check passed and nothing was too slow. |
| last check failed | The last check failed, but not yet enough times in a row to raise the alarm. |
| failing | It has failed the chosen number of checks in a row, and people have been told. |
| slow | Correct, but a step was slower than your limit. |
| paused | Switched off with Pause. Resume checks again soon. |
The monitor's page shows uptime (the share of checks that were healthy; skipped checks are not counted), the average and 95th-percentile time of a check, a chart of the slowest step in each check with your limit as a dashed line, and a strip with one bar per recent check. Choose 24 hours, 7 days or 30 days. Endpoints lists each request's average, median, 95th percentile and slowest time and how often it failed, so a slow or flaky endpoint stands out. Recent checks says what failed and why. Check now runs a check immediately without changing the schedule.
Alerts
- When a monitor has failed the chosen number of checks in a row, you get one message saying what is failing. When it passes again you get one message saying it has recovered, and how long it was down. Two in a row is a good default: it ignores a single blip.
- A step slower than your limit counts as a failure, so a slowdown alarms the same way an outage does.
- Messages go through the project's webhook, so set up Notifications first. If a message cannot be delivered, it is kept and retried.
- A monitor that is failing also appears in Needs attention, and clears there when it recovers.
- History is kept for 30 days by default; whoever runs the app can change that.
Setting up in a sentence
Instead of filling in the form, Set up in a sentence (next to New monitor) lets you say it in words, for example “run the customer flow every hour on production and count it as failing if it takes longer than 2 seconds”, or “alert me if any endpoint fails more than 10% of its checks in a day”. AI reads the sentence and shows what it understood as plain lines, one for each monitor or alert, and you keep the ones that are right. Nothing is created until you press Create, and each one is made the same way as with the forms, with the same checks.
- It only sets up what you said. If the sentence is too vague, or names something that is not in the project, it asks a question instead of guessing.
- Monitors stay read-only. It will not set up a monitor that creates, changes or deletes data: an endpoint that is not a GET, or a flow with such steps, is shown as cannot be created with the reason. Allowing changes is a deliberate choice you make in the form.
- Where it runs. It uses the environment you name, or the default one if you name none or the name does not exist, and says which.
- What is sent. Your sentence, the names and methods of your endpoints and flows, whether a flow changes data, your environment names and the names of your existing monitors and alerts. Never values, credentials or run results. It is counted in AI usage.
A public status page
In the project's Settings, Status page makes a page you can share with your customers that shows whether your API is up, built from the monitors you choose. Anyone with the link can open it, without signing in.
- You choose what is public. Tick the monitors to show and give each the name customers should see, such as “Checkout” rather than the monitor's internal name. Nothing else is shown: no addresses, no error messages, nothing from a response, and no monitor you did not choose.
- What the page says. A headline (all systems operational, some having problems, or some down), then for each monitor its status now, a bar for each of the last 30 days coloured by how many checks were fine, its uptime over 24 hours, 7 and 30 days, and a list of incidents from the last 14 days with when they started and ended. A paused monitor, or one that has not run yet, shows as “no data yet” and does not count against the others.
- An unguessable link, off until you say. The page is off when you set it up and is turned on with Page is on. Its address is a long random string, and the page asks search engines not to list it. If the link has been shared too widely, New link makes another and the old one stops working at once.
- Needs monitors. It is available on the plans that include scheduled monitors. If the plan lapses, the page stops answering. The page and a small JSON version of it (add
/api/status/and the same random string to your app's address) refresh from the monitors' latest checks about every half minute.
Endpoint health
Next to the list of monitors is an Endpoint health tab: one page that ranks every endpoint by how it has been doing. It is built from the timing of every step of every run, whether a monitor made the check or you started the run, so it fills up as you use the app.
- Period. Choose the last 24 hours, 7 days or 30 days. With Compare with the period before on, every number is set against the same length of time just before, so a change stands out: was it slower after we deployed?
- Status. failing means a fifth or more of its checks failed (with at least three checks). flaky means some failed. slower means its 95th percentile is at least half as much again, and at least 20 ms more, than before; small changes on very fast endpoints are ignored. Otherwise it is healthy.
- The numbers. Checks, how many failed, the median time (half of answers were faster), the 95th percentile (nineteen in twenty were faster, so it shows the slow tail that an average hides), and the slowest. Arrows show the change from the period before; red is worse.
- Trend. The 95th-percentile time across the period, in equal slices. A red bar marks where checks failed. A gap means nothing was checked then; it is never drawn as zero.
- Search, filter and sort the list, for instance to show only what needs attention, or the slowest first.
- Scheduled checks only leaves out runs you started by hand. Those come in bursts, so the steady sample from monitors is the fairer picture of how an API behaves over time.
- No timings lists the endpoints that nothing exercised in the period. No news is not good news, so they are shown rather than hidden.
Ask about this data
Ask about this data, above the Endpoint health tables, lets you ask a question in plain words, such as “which endpoints got slower this week?” or “is anything failing right now?”. It answers in a few sentences from what your tests and monitors have recorded: how each endpoint did over the last 7 and 30 days, your monitors and their state, your latest runs, and any recent changes to the contract.
- Numbers are checked. An answer is shown only if every number in it is one that is in your data (or in your question). If the first try quotes a number it was not given, it tries once more; if that fails too, you get no answer rather than a wrong one.
- It can still be wrong about what the numbers mean, so treat it as a quick read and use the tables below as the source of truth. If your data does not cover the question, it says what is missing instead of guessing.
- What is sent: your question, endpoint names, statuses, timings and counts, monitor names and run summaries, never requests, responses, headers, credentials, addresses or dates. It is counted in AI usage, and where nothing has been recorded yet it does not use AI at all. The command line and agent tools can ask the same questions.
Endpoint alerts
The dashboard only helps when someone looks at it. An Endpoint alerts tab (next to Endpoint health) lets you say what worries you and be told when it happens, once when an endpoint crosses the line and once when it is back. Alerts use the same webhook as your other notifications, and the same 95th percentile the dashboard shows.
- Too many checks fail. For example: any endpoint failing at least 25% of its checks in the last 24 hours.
- It is slower than a limit. The 95th percentile is over a number of milliseconds in the last hour, 6 hours, 24 hours or 7 days.
- It got slower than before. The 95th percentile is at least, say, 50% worse than in the same length of time just before, and at least a minimum number of milliseconds worse, so a jump from 2 ms to 6 ms does not wake anyone.
A rule can watch one endpoint, or any endpoint, in which case each is judged on its own. Nothing is decided until an endpoint has a minimum number of checks (five by default), so a couple of unlucky requests never raise an alarm. An alert clears only after two checks in a row are back within the line, so an endpoint hovering at the limit does not send message after message.
- Preview. When you make an alert, Preview shows which endpoints would be flagged right now, so you set the line with evidence rather than a guess.
- From the dashboard. Open an endpoint's row in Endpoint health and choose Alert me about this endpoint; the question is filled in for you.
- Where you see it. An endpoint over a line appears in Needs attention and in the count beside it, whether or not a webhook is set up. The webhook message names the endpoint, the numbers and the alert, and links back to the page. Only a project owner or a workspace admin can change alerts; pausing one silences it without deleting it.
Weekly digest
If you would rather be told than go and look, turn on the Weekly digest in the project's Settings. Once a week you get one email that says how the week went: how much of the time your monitors found things healthy, how many incidents there were and how long the longest lasted, which endpoints are failing or got slower than the week before, and how many things are waiting in Needs attention. It is available on the plans that include scheduled monitors.
- It is off until you turn it on. It goes out on Monday just after midnight (UTC) unless you pick another day and hour. Switching it on does not send a late one for the week that has already started; the first digest is for the next scheduled time.
- Who gets it. Workspace owners and admins, and the project's owner, as long as they have confirmed their email address. Settings lists the names.
- Quiet weeks stay short. If nothing went wrong you get a short note saying so. If nothing was checked at all, nothing is sent.
- An optional opening written by AI. A manager can switch on Open with a short summary written by AI: a few sentences in front of the figures about how the week went and what most deserves a look. The model is given only the digest's own figures, the names of monitors and endpoints and their statuses. Every number in what it writes is checked against the real figures, and if anything does not match, or the workspace has used up its AI allowance, the digest goes out without the opening and the figures are unaffected. It is skipped on quiet weeks, is counted in AI usage, and the email says it was written by AI.
- When the API changed. If the project's contract was updated during the week, the digest says so in a sentence: how many times, how many endpoints were added, removed or changed, and how many steps in your flows need fixing as a result.
- Also in Slack, Teams or Discord. If Notifications has a webhook address, a manager can switch on Also post it to the notification webhook. It sends a few lines with the headline figures and a link, once a week, to the same address your other notifications use. If the receiver is down it is not tried again, since last week's digest is no use late, and the emails are not affected.
- Your own choice. Email me this digest in Settings turns the emails off or on for you alone, for that project. It does the same as the link at the bottom of each email, and does not change what anyone else gets. If you are not one of the people it goes to, the card tells you why.
- Try it first. Send me a test digest now sends this week's digest to you alone, marked as a test, so you can see what the real one looks like. It does not use up the week's digest.
- Leaving the list. Every digest has a link to stop getting it. It opens a page with one button, and pressing it unsubscribes only you, for that project. Your mail program's own unsubscribe button works too. The same page lets you turn it back on.
The digest is made only from your check results: the monitors' outcomes and the endpoints' timings. It does not include request or response contents, headers or credentials, and the emails carry no tracking images.
Which to use
Use a single-endpoint monitor on /health or a list endpoint for availability: is it up? Use a flow for correctness: does the thing people do still work? Add a latency limit for performance: is it fast enough?
Incidents: monitors failing together
When monitors that are alerting began failing within about fifteen minutes of each other, the Monitors page shows them together at the top as one incident: how many are failing, for how long, which ones, and how many other monitors are still healthy. This grouping is plain arithmetic on what the monitors recorded. It is always there, costs nothing and sends nothing anywhere.
What is going on? asks AI to read the incident. It looks for what the failures share: the same endpoint failing in several monitors, the same status such as 401 or 500, one environment failing while others are healthy, a sign-in step that breaks everything after it, or a contract update just before it began. It answers in plain words with the likely cause, what points to it and what to check first, and says how sure it is. It is a guess from recorded results, not a diagnosis, and nothing is changed.
What is sent: monitor and environment names, how long it has been failing, the failing steps' methods and paths, HTTP statuses, timings and short error messages (links and email addresses in them are removed), and the counts of a contract update if there was one. Not sent: requests, responses, values, addresses or credentials. A reading that quotes a number the data does not carry is thrown away and tried once more. It uses the same AI budget as the other AI features; asking again within ten minutes costs nothing, and Ask again reads it afresh. Viewers can see the grouping but cannot use the reading.
Needs attention
The Needs attention page in a project's menu gathers everything that needs someone to look: paused flows and cleanup still owed (which may have left data on the API), monitors that are failing, and endpoints over an alert line. A red count appears next to it in the menu, and project cards on the dashboard show ⚠ N need attention, so nothing depends on someone opening the right flow. Each item has its actions right there, so you can deal with it without opening the flow.
| Item | Button | What it does |
|---|---|---|
| Cleanup still owed | Retry cleanup | Tries the cleanup again, signing in again first if the saved sign-in was rejected. |
| Cleanup still owed | Dismiss | Stops tracking it after you confirm. Nothing is deleted. |
| Paused flow | Continue to the end | Runs the remaining steps, then cleans up and signs out. If a step needs a value from you, the same dialog as on the flow appears. |
| Paused flow | Discard and clean up | Does only the cleanup and sign-out. |
| Failing monitor | Open monitor | Shows what is failing and why. A monitor recovers by itself when its checks pass again. |
| Flow items | Open flow | Opens the flow, for anything else: run to a later step, edit it, see its steps. |
The button shows progress while it works, the result appears as a message, and the item leaves the list when it is dealt with. One action runs at a time. The buttons need permission to start runs; other people can still see the list.
It is empty when no flow is paused and no cleanup is owed, which means nothing this project created is being left on the API. Everyone who can see the project can see the list; only people who can start runs can act on it.
Notifications
You do not have to keep looking at Needs attention. A project can send a message to a webhook when cleanup has been owed for too long, so leftovers on the API do not sit unnoticed.
Setting it up
- In the service you want to be told in (Slack, Mattermost, Discord, or any tool that accepts a JSON post), create an incoming webhook and copy its address.
- In the project, open Settings → Notifications, paste the address and choose Save and turn on. Owners and admins can do this.
- Press Send a test message. You can do this before saving, to check the address works.
- Choose how long cleanup may stay owed before you hear about it (15 minutes by default).
What triggers a message
- Cleanup still owed for at least the time you chose. All the flows that reach that point together arrive in one message.
- Each item is announced once. If it is cleaned up and later goes wrong again, that is announced again.
- Paused flows are not announced. They clean themselves up after 15 minutes, and if that cleanup fails it becomes owed cleanup, which is announced.
What the message says
The flow's name, each request that could not be undone (for example DELETE /customers/{customer_id}), how long it has been owed, the reason it failed, and a link that opens Needs attention. It never contains tokens, passwords, or values captured from your API's responses.
Tools that read the JSON directly get event (cleanup_owed, or test), text, project, url, and an items list with the flow, the owed requests, when it started and the reason. The message is in both text and content, which is what Slack- and Mattermost-style and Discord-style webhooks look for.
Good to know
- The address is a secret. Many webhook addresses contain a token, so it is stored encrypted and never shown again after you save it. You will see only its host, and only if you can manage the project. To change it, paste a new one; to stop, choose Remove.
- If delivery fails (the service is down or rejects the message), the app tries again with a growing pause between attempts. Settings shows how the last delivery went.
- Email is not built in. Use a webhook that forwards to email, or a chat tool.
- The check runs about once a minute, so a message arrives within a minute or so of the time you chose.
When the contract changes
APIs change: endpoints are added, removed, renamed or moved, and their requests and responses change. Open Contract in the project menu, upload the new version (or paste it), and choose Compare. Nothing is changed by comparing. You get a review of what the update would do, and you apply it only when you are happy with it.
- Removed endpoints, and renames. An endpoint that seems to be gone may only have been renamed or moved. For each removed endpoint the page suggests what it may have become, with a reason. Suggestions with high confidence (the same method and path, only the id changed) are chosen for you; a medium guess is offered but not chosen. You can pick any new endpoint yourself, or leave it as removed.
- What follows a rename. Everything that used the old endpoint is updated to the new one: flow steps and the values that refer to them, environment values and saved credentials named after it, sign-in settings, monitors, alerts, and the timing history, so an endpoint's trend does not start again from nothing.
- What was removed for good. Nothing is deleted. A flow step whose endpoint is gone is marked no longer in the contract and the flow does not run until you point that step at another endpoint (there is a menu on the step) or remove it. A monitor keeps its other targets, or is paused if none are left; an alert about a removed endpoint is paused. Needs attention and the flow list show what is left to fix.
- Fixing broken steps with AI. On a flow with broken steps, Suggest a fix with AI looks at the endpoints the contract has now and proposes, for each broken step, a replacement endpoint, removing the step, or leaving it for you when it cannot tell. You see each suggestion with its reason and how sure it is, and what would still be wrong afterwards (for example a later step that used a value the removed step produced). Nothing is saved until you press Apply, and the change can be undone like any other edit to the flow. It is sent only the shape of the flow (step names, the endpoints they use, expected statuses, and the names, never the values, of what steps capture or override) and the list of endpoints, and it is counted in AI usage as flow repairs.
- New endpoints have no flow yet, so nothing tests them. They are listed for you, and once the update is applied, Propose flows for the new endpoints opens the AI dialog with those endpoints already set as the goal. It is propose-only like any AI proposal: nothing is sent until you press Generate, and you choose which proposed flows to add. It counts against the workspace's AI budget. Any example values, and any blanks to fill in, that the new endpoints bring are added to your environments, so a new endpoint is ready to run or shows up as needing a value. Undoing the update takes them out again.
- Changed endpoints. A new required field, a different type, a removed response field or a changed status is shown, and marked as breaking when flows that use the endpoint may fail. The page lists which flows use it, so you know what to run afterwards.
Undo. The latest update can be undone from the result, or from the history below it. The contract, flows, monitors, alerts and timings go back to how they were. Anything you have edited since (a flow you changed, say) is left as it is, and you are told which. Every update is kept in the history with who applied it and what it did.
Download. Download current contract at the top of the page saves the contract as it stands now as an OpenAPI file. It includes every request you added by hand, since those become part of the contract as soon as you add them. For a GraphQL project it is the contract the app made from the schema.
Good to know. An update waits while a run is in progress or a flow is paused part way, since ids move underneath them. If the contract changes while you are reviewing, you are asked to compare again. Only a project owner or a workspace admin can update the contract; anyone in the project can see the history. Endpoints you added by hand are part of the contract too, so comparing a full contract file that does not contain them lists them as removed.
Explain this update
When you compare a new contract, Explain this update (above the lists of what was added, removed and changed) gives a few plain sentences: what the update does and how much of your testing it touches, what to watch out for, and what to do next. It names the flows (with the step numbers), monitors and alerts that depend on endpoints being removed or changed, flags a rename the tool is only guessing at, and says so when the update touches nothing of yours. Which changes break callers is decided by the comparison itself, not by the AI, and the lists below are complete without it.
What is sent: how many endpoints were added, removed and changed, their methods and paths, the changes that would break callers, the suggested renames, and the names of the flows, monitors and alerts that use the affected endpoints. Not sent: requests, responses, values, addresses or credentials. A reading that quotes a number the comparison does not carry is thrown away and tried once more. It uses the same AI budget as the other AI features, asking again about the same update costs nothing, and it is for the people who can update the contract (the project owner and workspace admins).
Running from CI and the command line
Flows can run on every pull request, or from a terminal, and fail the build when something breaks. You need an API token and the small command-line script that comes with the app.
- Make a token. Open Preferences → API tokens, name it after what will use it (such as “GitHub Actions”), choose Read and run (it can read, and start runs), optionally limit it to one project, pick how long it lasts, and create it. Copy it straight away: it is shown only once, and only a fingerprint of it is kept. Keep it in your CI's secrets, never in code.
- Get the script. Your app serves it: download
/cli/markinfield.mjsfrom your app's address (for examplecurl -fsSLO https://your-app/cli/markinfield.mjs). It has no dependencies and needs Node 18 or later. - Run it.
node markinfield.mjs run --url https://your-app --token <your token> --project "Shop API" --environment staging. The address and token can also be given as environment variables, which keeps the token out of the command line;node markinfield.mjs --helplists them. It starts the project's flows, waits for the result, prints each flow and each failed step with its status and error, and exits non-zero if anything failed (1 for a failed test, 2 for a problem with the command or token, 3 if it timed out). - In a CI job (GitHub Actions, GitLab, Jenkins and the like), store the token as a secret, download the script, and run it as a step. The step fails when a flow fails, so the job fails and the pull request is blocked.
--markdown <file>adds the result as Markdown to a file, which GitHub Actions can show on the job's summary page;--helphas a ready-made example step. A ready-made GitHub Action that also comments on the pull request is in the app's repository (tools/github-action).
Useful options: --flows a,b to run only some flows, --explain to have AI explain failures (this uses your AI allowance: one reading of the whole run when two or more steps failed, otherwise one per failed step), --markdown file for a summary file, and --json for another tool to read.
From a coding agent
The same token lets a coding agent such as Claude Code or Cursor use MarkinField through the Model Context Protocol (MCP). The agent can list your flows, run them after it changes your code, read which steps failed and why, and look at endpoint health and your monitors. Download /cli/markinfield-mcp.mjs and /cli/markinfield.mjs from your app into the same folder, then register the first one with your agent as an MCP server that runs with Node, giving it your app's address and the token; node markinfield-mcp.mjs --help shows how. It can only do what the token allows, so a token with Only read lets the agent look but not run anything. Its answers carry statuses, timings and messages, never request or response bodies or headers.
Load tests
A monitor tells you an endpoint works; a load test tells you how much it can take. It sends a steady, growing stream of requests to one endpoint from a number of virtual users, and shows how the answers slow down and where errors begin. Open Load tests in the project menu and choose New load test, or open an endpoint on the Endpoint health tab and choose Load test this endpoint.
- Users, duration and ramp-up. Users are added gradually, from one up to the number you choose, over the ramp-up time, then held. A ramp shows where an endpoint starts to struggle; with no ramp all users start at once, which shows whether it survives a sudden burst.
- It stops by itself. If the latest requests fail beyond a limit (half by default), or the 95th percentile passes a limit you set, the test stops at once and says why, so it never keeps hammering something that is already down. You can also press Stop.
- Pacing. Optionally cap the requests per second, or have each user wait between requests like a person would.
Safety. Load tests only ever send GET requests, so they never create, change or delete data, and they cannot be pointed at sign-in or sign-out. Only a project owner or a workspace admin can start one. If the environment is not this machine, you must type the host name back to confirm you are allowed to send it that much traffic. The endpoint is first tried once the ordinary way, signing in if the environment needs it; if that does not work, nothing is loaded. Sign-in happens once, and the session is closed when the test ends. Only one test runs at a time.
- Reading the chart. The blue line is the 95th percentile (nineteen in twenty answers were faster), the green line the median, the pale area the number of users, and red bars mark failed requests. The dashed line marks where the endpoint started to struggle: the first moment the 95th percentile climbed to several times what it was at the start and stayed there, or errors began, and how many users there were then.
- Against normal. The page compares the result with how the endpoint usually performs in your ordinary runs and monitors, and with the previous load test of the same endpoint.
- Failed means an answer other than the statuses the contract documents as success, a request that timed out, or one that could not connect.
- Kept apart. Load test timings are stored separately from your ordinary runs, so they never make an endpoint look slower on the Endpoint health page, and they do not appear in Runs.
Run it on a schedule
The Schedules tab turns a load test into something that watches for you: the same test, run again on its own, so you find out when an endpoint's breaking point moves without having to remember to check. Choose New schedule, or open a finished test and choose Save as a schedule to reuse exactly what you just ran.
- How often, from every hour to every week. The first run happens shortly after you create it, so you can see it works; after that it runs from when it finished, not from a fixed clock, so a slow run never crowds the next one.
- A summary through the webhook. After each run, a message goes through this project's notification webhook saying how it went, and, once there has been a run before it, whether the breaking point moved: the same endpoint holding up to more users is good news, fewer is worth a look. Turn this off per schedule if you would rather just check the page.
- Manual runs summarise too. Any load test, run by hand or on a schedule, sends this same message if the project's webhook is on; a schedule only adds the "run it without me" part.
- Paused, not deleted. If its endpoint stops making sense — removed by a contract update, or its environment deleted — the schedule is paused rather than left to fail night after night, the same way a monitor or alert would be.
Describe a test, and ask what a result means
In New load test, Describe it in a sentence fills in the form for you: "50 users on the customer list for two minutes, ramping up over 30 seconds, stop if it gets slower than 800 ms". It picks the endpoint (only GET endpoints that work on their own are offered), reads the numbers, and uses the usual defaults for anything you did not say. Anything outside what this installation allows is brought inside the limit, and a note says so. It starts nothing and sends no traffic: you check every value, type the host name to confirm where that is needed, and press Start yourself.
On a finished test, Explain this test reads the result in plain words: how the endpoint behaved as the users grew, where it began to slow or fail and what kind of failure it was, how that compares with its usual speed and with the previous test of the same endpoint, and what to try next, such as more users, a longer hold or a stop rule. It is a reading of the numbers already on the page, which are complete without it.
What is sent: for the sentence, the sentence itself, the names of the endpoints a load test may use and what this installation allows. For the reading, the test's settings, results and a thinned timeline, never the host you tested. Neither sends requests, responses or credentials. A reading that quotes a number the test does not carry is thrown away and tried once more. Both use the same AI budget as the other AI features; asking again about a finished test costs nothing. Describing a test is for the people who can start one, and the reading for the people who can edit tests.
Reports
- Formats: PDF, HTML (a single self-contained page) and JSON.
- Scope: the whole run (Export run on Flows, or Export on a run) or one flow (Export on the flow card).
- PDFs use built-in fonts, so characters outside Western European text print as
?. - Reports include warnings, such as Partial run, Held run, Resumed, or that a cleanup ran automatically.
- Secrets are masked in every format.
Workspaces and roles
Everyone has a personal workspace called Personal workspace and can create or be invited to shared ones. Projects belong to a workspace. Switch workspaces and projects from the breadcrumb at the top.
| Role | Can |
|---|---|
| viewer | Read projects, flows, run history, reports and the Needs attention list. |
| member | Also create projects, edit flows, start runs and send requests from Collections. Never sees credential values or header values. |
| admin | Also manage environments, credentials, project settings and deletion; add requests by hand and update the contract; set up monitors, alerts and load tests; and manage workspace members. |
| owner | Also delete the workspace and promote other owners. |
A project's owner (its creator, unless transferred) can manage that project even as a member. Other people's projects answer “not found” rather than “forbidden”, so their existence is not revealed.
Invitations are links (no email is sent). Each works once, only for the invited email address, and expires after 14 days. Whether anyone can create an account, or only people with an invitation, depends on how your installation is set up.
Billing and plans
Every workspace starts on the Free plan: one seat, three AI actions (every use of AI counts as one: a flow proposal, an explanation, a review, a question and so on), and one workspace per person: paying for any plan lets you create more. Solo is also a single seat, with a monthly AI token allowance. Team and Business are billed per seat, so adding or removing a member updates the bill automatically; Team adds monitors, and Business adds load testing. Any paid plan can buy a token top-up if the month's allowance runs out. An owner or admin manages the plan from Billing & usage, where Upgrade plan opens a comparison of the plans with monthly or yearly billing. Upgrades take effect once the difference is paid; moving to a cheaper paid plan credits the unused time to the next invoice, and moving back to Free keeps paid features until the paid period ends.
Your preferences
Open Preferences from the menu under your name at the bottom of the sidebar. Your role in the current workspace (or project) is shown there too, as the third line under your name.
- Account: your name and email address, and signing out.
- Security: changing your password (which signs out your other sessions) and two-factor authentication.
- Appearance: a light or dark theme. The sun and moon button at the right of the top bar switches it too. Until you choose, the app follows your system setting; your choice is remembered on this device.
Two-factor authentication
Two-factor authentication adds a second step to signing in: after your password, you enter a 6-digit code from an authenticator app on your phone (Google Authenticator, Microsoft Authenticator, 1Password, Authy and similar). A stolen password alone is then not enough.
- Open Preferences → Security and choose Turn on.
- In your authenticator app, add an account by scanning the QR code (or typing the key shown under it).
- Enter the 6-digit code the app shows, to confirm it works. Nothing is enforced until this step succeeds, so you cannot lock yourself out halfway.
- Save your recovery codes. You get ten, shown once. Each signs you in one time if you lose your phone. You can copy or download them.
From then on, signing in asks for a code after the password. A code from the app works once; type a recovery code in the same box if you need to. Five wrong codes in a row cancel that sign-in and you start again from the password. A password-reset link does not skip the code either. To turn it off, or to make a new set of recovery codes (which cancels the old ones), you need your password and a current code.
If you lose your phone and your recovery codes, nobody can sign you in by email alone: that would defeat the point. Keep the recovery codes somewhere safe, separate from your phone.
Folding the menu
The arrows at the top of the left menu fold it down to icons, giving the page more room. Hover an icon to see its name; the red dot on Needs attention shows when something needs you. Click the arrows again to open it. The choice is remembered on this device.
The sandbox
The sandbox is a small practice API (customers and orders) that is built into the app and keeps data in memory only, so it is safe to experiment with. Everyone using this server shares it: what you create is temporary (it is forgotten after a short while), other people can see it, and only a limited amount is kept. Never put real data in it. Where many people use the server, load tests are not available on it. Try the sandbox on the dashboard creates a project against it. Try the GraphQL sandbox does the same with a separate, GraphQL practice API (a small library of books): see GraphQL.
- Ordinary user: signs in with email and password. The project's environment is already set up with it.
- Two-factor user: logging in returns a challenge, and a 6-digit code is “emailed” to a built-in mailbox. The code lasts 5 minutes, works once, and the challenge locks after three wrong tries.
POST /login/verifywith the challenge and code returns the token. - New sandbox projects include this user's credentials, a code source that reads the mailbox, and a Two-factor sign-in flow that runs unattended and is part of Run all.
The sandbox works before your email address is confirmed; testing your own API does not (see Confirming your email address).
Confirming your email address
When you create an account, you may be sent an email with a link to confirm the address. It works once and lasts 24 hours. Until you open it you can look around, use the sandbox, build flows and write requests, but you cannot send requests to your own API, use AI proposals or explanations, choose a plan, or set up monitors and scheduled load tests. A banner at the top says so, and Send the link again sends a new one (the old link then stops working). People who join through an invitation, and people who reset their password by email, are confirmed already: the email reached them. If the email never comes, check your spam folder, then ask whoever runs the app.
Security and privacy
- Credentials are encrypted at rest (AES-256-GCM) and shown by name only; values are never returned by the app after saving.
- Masking. Known secrets (tokens, passwords, captured tokens, typed codes, fetched codes) are replaced with
[REDACTED]everywhere in results and reports. In request and response bodies, values under keys named liketoken,password,secretorauthorizationare masked too. - Tokens from signing in are kept in memory for the run and are not stored, except in the encrypted state of a paused flow or owed cleanup, which exists only so cleanup can still happen and is deleted once it is done.
- Accounts. Passwords are hashed (scrypt). Sessions use an HttpOnly, SameSite cookie whose token is stored only as a hash. Failed sign-ins are rate limited and give the same answer for unknown emails and wrong passwords. Two-factor authentication is available: its secret is encrypted like other stored credentials, and recovery codes are stored only as hashes.
- Sending from Collections uses the environment's credentials the way a flow does, and shows what was sent with secrets hidden and cookies masked. A value or file you type there is used for that one send: nothing is saved, and the send is not added to the run history. A file you attach is sent once and kept nowhere on the server (a file written into a flow's step is part of the flow, like any other value typed into a step).
- Local by design. The app is meant to be used from the machine it runs on, and rejects requests that do not come from its own pages.
- Webhooks can only be set to an address on the open internet: one that resolves to a private or internal network (including a cloud metadata address) is refused, both when you save it and again just before each message, so the app cannot be pointed at something only it can reach.
- AI. Proposals send the contract, your existing flows and the names of values to the model. Credential values, run results and reports are never sent. Explain this failure sends one step's statuses, timings and messages, how that step went in earlier runs, and what else failed in the run, never bodies or headers. Anything you typed literally into a step is part of the flow, so keep secrets in environment values (placeholders), not in step bodies.
- This documentation page is public to anyone who can reach the app, so it contains no credentials.
Troubleshooting
| You see | What to do |
|---|---|
| “Can't reach the MarkinField server”, or a red bar “Retrying…” | The app server is stopped or restarting. Start it again; the page reconnects by itself. |
| “Some values are still needed before this can run” | A flow uses a value that is not set. Enter it in the dialog that opens, or set it in the environment. |
| Every step is blocked with “Login did not succeed” | Check the environment's sign-in with Test login. For two-factor logins, the login endpoint cannot be the default sign-in: use the two-step recipe. |
| A step is blocked with “Set variable: …” | The value does not exist at that point. Add the earlier step that produces it, set it in the environment, or use Ask me when it runs. |
| “This flow is held… Continue it, or discard it, first” | The flow is paused. Use Continue to the end or Discard and clean up on the flow, or find it under Needs attention. |
| “Could not get … from its code source” | The source did not return a code in time. Use Test on the source: check the address, the pointer and the pattern, and that the code has actually been sent. |
| cleanup pending | See Cleanup that failed. Fix the API, then Retry cleanup. |
A cleanup row failed with 409 | The API refused the delete for good, usually because something depends on the resource. Delete the dependent resource first (add its delete step before the cleanup, or remove it by hand). |
| “Confirm your email address to test your own APIs” (or to use AI, choose a plan, or set up monitors) | The address on your account is not confirmed yet. Open the link in the email you were sent, or use Send the link again in the banner at the top. The sandbox works meanwhile. |
| A GraphQL step fails with “GraphQL reported an error: …” | The API answered 200 but said the operation failed. Read the message: an unknown field or a missing variable means the operation needs changing; “You must sign in first” (or similar) means the environment's credentials are missing or wrong. To expect an error, check a field under /errors in the step. |
| “The API did not give its schema … paste its schema instead” | The API has introspection turned off, or wants a token even for it. Add its Authorization header in the box, or paste the schema. |
| A step is blocked with “The token address answered 401”, or the authentication.token row failed | The client id or secret is wrong, or the API wants the client in the other place. Use Test token on the environment, and try the other choice for where the client is sent. |
| “Enter an API key for this flow” (or client id and secret, or basic credentials) | The flow has its own way of signing in, and its credentials are not entered yet. Open the flow's Authentication & headers and type them. |
| “Read-only is on”, or a request in Collections shows not sent | Turn it off in Settings if you want create, update and delete requests to be sent. |
| “This request cannot be sent” in Collections | Something in the contract for it cannot be used (an unsupported reference, say). The reason is shown, and listed as a warning on the project. Fix the contract, or send another request. |
| “Needs a value before it can be sent” | Type the value in the box the message names (a value from an earlier step of a flow goes in its field under Parameters), or set it in the environment. What you type is used once and not saved. |
| Send says not sent with “Request timed out after 15000 ms” | The API did not answer within 15 seconds. Check the base URL of the environment and that the API is running. |
| Contract checks: “Expected text/plain; got application/json” (or another pair of types) | The API answered with another kind of content than the contract promises for that status. Fix the API or the contract. If you described the answer by hand, correct it in the contract. |
| An answer shows “This is a file, not text” | Its type is not text, so it cannot be shown as text. Images are shown as pictures; use Download to save any of them. Files over 1 MiB are not kept for showing or saving. |
| “A file can be up to 2 MiB” | Files attached to a body are limited to 2 MiB in all. Use a smaller file. |
| A page looks out of date after an upgrade | Reload the browser tab. A page opened before the upgrade keeps running the old version. |
| Saved credentials suddenly stop working everywhere | Ask whoever runs the app: this usually means the app's encryption key changed. Once that is sorted out, enter the credentials again. |
Glossary
| Term | Meaning |
|---|---|
| Contract | The OpenAPI file that describes the API. |
| Project | One API, created from a contract. |
| Environment | A place the API runs, with its own base URL, headers and credentials. |
| Collections | The project's list of requests, where each one can be looked at and sent on its own. |
| Request | One call the API accepts: a method and a path, with what it takes and what it answers with. Called an endpoint in a contract. |
| Structure | What a request takes and each answer it can give, as fields with types and rules, read from the contract. |
| Contract check | The comparison of a real answer with what the contract describes for that status. |
| GraphQL | A kind of API where every question is sent to one address, as an operation: a query reads, a mutation changes. Each becomes a request here. |
| Schema (GraphQL) | The description of what a GraphQL API can be asked, in GraphQL's own language. It is what a GraphQL project is made from. |
| Introspection | A GraphQL API describing itself when asked. The app can read a schema this way from the API's address. |
| API key | A secret value sent in a header or in the query string to say who is asking. |
| OAuth2 (client credentials) | Signing in as an application: a client id and secret are traded for a short-lived token at the API's token address. |
| Kind of body | JSON, a form, a multipart form, text (plain, XML…) or a file: how a request's data is put on the wire. |
| Flow | An ordered list of steps that tests something together. |
| Step | One call to an endpoint, with what to send and what to expect. |
| Capture | A value saved from a response for later steps. |
| Runtime input | A value only a person or a code source can supply while the run is going ({{input.…}}). |
| Code source | Where the app fetches a one-time code from by itself. |
| Cleanup | Deleting what a flow created, after it runs. |
| Paused flow | A flow stopped part way, with its cleanup and sign-out waiting. |
| Owed cleanup | Cleanup a run could not finish and that is being tracked. |
| JSON pointer | A path into a JSON document, such as /items/0/id. |