Back to Langflow

API Examples (Local Test Harness)

docs/docs/API-Reference/README.md

1.11.0.dev391.1 KB
Original Source

API Examples (Local Test Harness)

Run all API example suites against a local Langflow server:

bash
make api_examples_local

Run one test suite:

bash
make api_examples_local suites=python
make api_examples_local suites=javascript
make api_examples_local suites=curl

The following examples are not executed in this harness:

  • api-build/build-flow-and-stream-events-2.py
  • api-build/build-flow-and-stream-events-3.py
  • api-flows-run/stream-llm-token-responses.py
  • api-openai-responses/example-streaming-request.py
  • api-logs/stream-logs.py
  • api-logs/retrieve-logs-with-optional-parameters.py
  • api-users/reset-password.py
  • workflows-api/example-quickstart-sync.py (and matching .js / .sh; sync mode, read output.text)
  • workflows-api/example-quickstart-stream-tokens.py (and matching .js / .sh; stream mode, print token events)
  • workflows-api/example-quickstart-background-poll.py (and matching .js / .sh; background queue and poll until completed)
  • workflows-api/example-stream-agui-parse.py (and matching .js / .sh; parses AG-UI events and chains two runs)