API Testing: API sources
Overview
Use this page to add and manage API sources, the OpenAPI specifications your API flows are built from. A source can poll a Spec URL automatically, or stay manual and import spec files you upload by hand instead. Either way, LoadGen keeps each import as a separate version, so you can track how the API has changed and compare versions over time.
A source starts with nothing imported until you add a Spec URL or upload a first spec file, so this page is usually the first stop in API Testing, before you build or update flows against its endpoints. After a new version imports, this page also lists which existing flows reference the endpoints that changed, so you know what to review before they run again.
From this page you add sources, trigger or schedule imports, review each version's diff and spec coverage, approve a pending version, and open the flow editor or migration wizard for any flow a version affects.
Key concepts
- API source - A record of one OpenAPI specification, either polled automatically from a URL or updated by uploading spec files by hand, that your API flows are built from. (related: API Testing: API flows)
- manual source - An API source with no Spec URL to poll; you add new versions by uploading a spec file instead of LoadGen fetching one on a schedule.
- spec version - A snapshot of the OpenAPI specification captured each time a source is refreshed or a file is uploaded; later versions can be compared to earlier ones to see what changed.
- impacted flows - The API flows whose steps reference endpoints that changed between a source's previous and latest spec version. (related: API Testing: API flows)
- auto-refresh - A per-source setting that has LoadGen poll the Spec URL automatically on a set interval, instead of requiring a manual refresh, to import new spec versions as they're published.
When to use it
- You're setting up API Testing for a new API and need to register its OpenAPI specification before building flows.
- An API you already test has published a new spec version and you want to check what changed before flows run against it.
- You don't have a public spec URL to poll and need to add a source manually, importing versions by uploading spec files.
- A spec change may have broken existing flows and you want to see which flows are impacted before they next run.
- You need to turn on automatic polling so new spec versions import without a manual refresh.
Before you begin
- Have the URL of a live OpenAPI/Swagger specification (JSON or YAML) your API flows should be built from, or a local spec file in .json, .yaml, or .yml format no larger than 10 MB.
- Decide whether the source should be polled automatically or kept manual: automatic polling needs a reachable, stable Spec URL, while a manual source needs a spec file you upload yourself each time it changes.
- Have a role with API source write permission if you need to create, edit, refresh, or delete sources; a read-only role can view sources but Save and the row actions are withheld.
Common workflows
Add an API source from a spec URL
Persona: API test author setting up a new API for testing
- Click + Create API source.
- Expect: A dialog opens with Name, Spec URL, Description, and Auto-refresh fields, titled to create a new source.
- Enter a Name (for example, Puppis lunch-peak replay) and the Spec URL of your OpenAPI specification, then click Save.
- Expect: The dialog closes and a new row appears in the table with the Spec URL you entered, Status Pending, Versions 0, and Auto-refresh Off.
- Click the row's refresh icon to import the spec now.
- Expect: LoadGen fetches and parses the spec; on success Versions increases to 1, Latest version shows the parsed version, and Last refresh updates; on failure Status flips to Failed.
Verify: The source's row shows a Versions count of 1 or higher and a Latest version that is no longer a dash, confirming the spec imported successfully.
Add a manual source and upload a spec file
Persona: API test author without a URL LoadGen can poll
- Click + Create API source, enter a Name, and leave Spec URL empty, then click Save.
- Expect: The dialog closes and the new row appears with no Spec URL and Status Pending; the source is manual since there's nothing to poll.
- Click the row's upload icon and choose a spec file (.json, .yaml, or .yml, 10 MB or smaller).
- Expect: The file is parsed and stored as the source's first version; Versions increases to 1, Latest version shows the parsed version, and Last refresh updates to the upload time.
- Expand the row to review the imported version and any impacted flows.
- Expect: A detail panel opens under the row listing the version and, if any existing flow references its endpoints, those flows.
Verify: The manual source's Versions count is 1 or higher and Last refresh is no longer a dash, confirming the uploaded file imported successfully.
Review and approve a newly imported spec version
Persona: API test lead checking for breaking changes before flows run against a new spec
- Click the row's refresh icon, or upload a new file for a manual source, to check for a spec change.
- Expect: If the spec changed, Versions increases, Latest version updates, and Diff summary and Impacted flows populate for the row.
- Expand the row and click Diff on the new version.
- Expect: A dialog opens comparing the new version against the one before it, showing what changed.
- Close the diff dialog and click Approve on the version.
- Expect: The version is approved; flows built from this source now use it.
Verify: The expanded row no longer flags the version as pending, and the row's Diff summary reflects the change you reviewed.
Steps
Step 1
Open API sources.
Expected result: The page loads showing the count of sources next to the title, the + Create API source button, and a table listing the sources already added to your account; a source that hasn't imported a spec version yet shows Status Pending, Versions 0, and Last refresh as a dash.
This is where you add the OpenAPI specifications your API flows are built from, and where you track new versions and the flows they affect.
- The count badge next to API sources shows how many sources exist in your account.
- + Create API source is the page's main action for adding a new one.
- Each row's Status, Versions, and Last refresh start at Pending, 0, and a dash until that source completes its first import.
Field reference
| Field | Purpose | Format / Validation | Required | Default |
|---|---|---|---|---|
| Name | Identifies the source in the list and in any picker where you choose which source to build a flow from; keep it specific enough to tell sources apart, for example by environment or team. | Free text | Yes | - |
| Spec URL | The address LoadGen polls to import new spec versions automatically. Leave it empty to make this a manual source instead, where you upload spec files by hand rather than LoadGen fetching one on a schedule. | URL | No | - |
| Description | Free-text notes about the source for your own or your team's reference; it has no effect on imports or flows. | Free text | No | - |
| Auto-refresh | Turns on scheduled polling of the Spec URL, with an interval in minutes you set once it's on. A shorter interval detects a changed spec sooner but polls the URL more often; a longer interval delays detection but polls less. Leave it off to only import when you click the refresh action yourself. Not usable on a manual source, which has no URL to poll. | Toggle, plus a minutes field shown when on | No | Off |
| Spec file | The OpenAPI document to import as a new version. Required to complete an upload, whether you're seeding a manual source's first version or re-uploading a changed spec. | .json, .yaml, or .yml file, 10 MB or smaller | Yes | - |
Column reference
| Column | What it shows | How to read it |
|---|---|---|
| Name | The source's name as entered when it was created or last edited. | Sortable; use it to group or find a source alphabetically. |
| Spec URL | The URL being polled for this source, or nothing for a manual source. | Click Copy beneath the URL to copy it; a manual source shows no URL here since it has none to poll. |
| Versions | How many spec versions have been imported for this source. | Sortable; 0 means no import has completed yet, whether because none has been attempted or every attempt has failed. |
| Latest version | The version identifier parsed from the most recently imported spec. | A dash means no version has been imported yet; otherwise it names the spec's own version string. |
| Status | The source's current import state. | Pending covers a source with no completed import yet, or a newly imported version awaiting your review; Failed means the last import attempt could not fetch or parse the spec, commonly seen if you refresh a manual source instead of uploading a file to it. |
| Diff summary | A short description of what changed in the latest version compared to the one before it. | A dash means there's no prior version to compare against, either because this is the first import or none has happened yet. |
| Impacted flows | How many existing API flows reference endpoints that changed in the latest version. | Sortable; a number above 0 means flows may need review before they next run. Expand the row to see which flows and open Edit or Migrate on each. |
| Last refresh | When the source was last imported, whether by a manual refresh, an upload, or scheduled Auto-refresh. | A dash means the source has never completed an import. |
| Auto-refresh | Whether this source polls its Spec URL automatically. | On means LoadGen imports a new version on the configured interval without you refreshing it; Off means an import only happens when you click the refresh (or upload) action. |
| Actions | The per-row controls for this source. | Holds refresh or upload, edit or view, and delete; see Controls reference for what each one does. |
Controls reference
Create API source
Opens a dialog to add a new API source: a Name, an optional Spec URL, an optional Description, and an Auto-refresh setting.
When to use: Use it when an API your flows need to test has no source yet, whether you'll poll its spec URL or upload spec files manually.
Side effects: Mutating once you save: adds a new row to the table with Status Pending, Versions 0, and no import until you refresh or upload.
Help
Opens help information about API sources.
When to use: Use it when you're unsure what a source, version, or the impacted-flows count means.
Side effects: Read-only; nothing on the page changes.
Expand row
Opens a detail panel under the row listing the source's imported versions and the flows impacted by the latest one.
When to use: Use it after a refresh or upload to review what changed before you approve a version or update flows.
Side effects: Read-only; toggles the panel open or closed without changing any data.
Refresh now
When to use: Use it on a polled (non-manual) source when you know the API's spec has changed and want to see the diff and impacted flows right away.
Side effects: Mutating: on success, Versions increases, Latest version and Last refresh update, and Diff summary / Impacted flows populate; on failure the row's Status flips to Failed. Disabled while your role lacks write permission or while an import is already running for that row.
Upload spec
Opens a dialog to choose a spec file (.json, .yaml, or .yml, 10 MB or smaller) and import it as a new version.
When to use: Use it for a manual source, which has no Spec URL to poll, or to refresh a source by hand even when it does have a URL.
Side effects: Mutating: on success the file is parsed and stored as a new version, updating Versions, Latest version, and Last refresh; for a source created with a Spec URL, uploading switches it to manual mode so its URL is no longer polled.
Edit or View source
Opens the same dialog used to create a source, pre-filled with its Name, Spec URL, Description, and Auto-refresh setting.
When to use: Use it to rename a source, change its Spec URL, update its description, or turn Auto-refresh on or off.
Side effects: Mutating for a role with write permission: saving updates the row. For a read-only role the dialog opens titled View with every field disabled and Save withheld.
Delete source
Opens a confirmation dialog, then permanently removes the source and its imported versions.
When to use: Use it when a source is no longer needed, for example when the API it described has been retired.
Side effects: Mutating and irreversible: confirming deletes the source; the dialog stays open and busy while the request runs, and reports a refusal or failure instead of closing if the delete doesn't succeed.
Copy spec URL
Copies the source's full Spec URL to your clipboard.
When to use: Use it to reuse the exact URL elsewhere, for example to check it in a browser.
Side effects: Read-only; nothing on the page changes.
Approve version
Approves a pending imported version.
When to use: Use it after you've reviewed a new version's diff and spec coverage and confirmed its changes are safe for flows to build against.
Side effects: Mutating: marks the version as approved so flows built from this source use it.
Coverage
Opens a report of the version's spec coverage and response conformance: how much of the spec your flows actually exercise and whether responses match it.
When to use: Use it before approving a version to confirm your existing flows still cover and conform to the API as described.
Side effects: Read-only; opens a report, changes nothing.
Diff
Opens a dialog comparing the version against the one before it (or shows the single version if it has no predecessor).
When to use: Use it to see exactly what changed in the spec before deciding whether to approve the version or update affected flows.
Side effects: Read-only; opens a comparison, changes nothing.
Edit flow
Opens the affected flow in the flow editor.
When to use: Use it when a spec change is small enough to fix directly in the flow.
Side effects: Navigates away from this page to the flow editor; no change happens on this page itself.
Migrate flow
Opens a migration wizard for the affected flow.
When to use: Use it when a spec change is large enough, for example breaking changes, that you want guided help updating the flow's steps.
Side effects: Navigates away from this page to the migration wizard; no change happens on this page itself.
Verify the result
After you add a source and it completes an import, its row leaves the empty starting state: Versions shows 1 or higher, Latest version names the imported version instead of a dash, and Last refresh shows a timestamp. If a new version changed endpoints flows depend on, Diff summary and Impacted flows show a non-zero count you can expand and review. If Status reads Failed instead, the import didn't complete, check the Spec URL or, for a manual source, upload a file instead of refreshing. If the row still shows Versions 0 after you've triggered an import, the import may still be running or your role may lack permission to trigger it.
Troubleshooting
- Symptom: The refresh icon for a row is greyed out and can't be clicked. Fix: This happens when your role doesn't have API source write permission, or while an import is already running for that row; wait for the current import to finish or ask an admin for write access.
- Symptom: A source's Status flips to Failed after you click the refresh icon. Fix: For a manual source there's no URL to poll, use the upload action and choose a spec file instead; for a polled source, check that the Spec URL is reachable and returns a valid OpenAPI document.
- Symptom: Save is disabled in the Add/Edit source dialog and the title reads View instead of Edit. Fix: Your role can read sources but not change them; ask an admin for API source write permission.
- Symptom: Uploading a spec file fails with a file-too-large or unsupported-extension message. Fix: Use a .json, .yaml, or .yml file no larger than 10 MB; split or compress a larger spec before uploading.
- Symptom: Impacted flows still shows the old count after you migrated a flow to the new version. Fix: The count is read when the source list loads; reopen or refresh the API sources page to pick up the updated count.
- Symptom: Save fails with Name is required. Fix: Enter a Name before clicking Save; it's the only required field in the Add/Edit source dialog.
Related articles
- Next step: API Testing: API flows - Build or update flows against the endpoints a source's approved spec version exposes.
- See also: API Testing: API Testing dashboard - See overall API testing activity, including sources, flows, and runs, in one place.
- See also: API Testing: Environments - Configure where test runs send the requests that flows built from a source target.
- See also: API Testing: Auth profiles - Attach authentication to calls flows make against the API described by a source.