Skip to content
Back to skills

Sdk Http Integration

ASecurity

"Use RAGFlow public HTTP APIs, the Python SDK, OpenAI-compatible

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
developmentpythondebuggingapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill sdk-http-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sdk Http Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sdk Http Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sdk-http-integration/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sdk-http-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sdk-http-integration
description: "Use RAGFlow public HTTP APIs, the Python SDK, OpenAI-compatible
  chat completions, API keys, streaming, references, and client error handling."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# SDK and HTTP Integration

Use this sub-skill when a task needs to call RAGFlow through its public REST API, Python SDK, OpenAI-compatible chat completions, retrieval endpoint, API keys, or client-side troubleshooting.

## Start here

- For endpoint families, SDK objects, request shapes, and migration notes, read `references/api-sdk-reference.md`.
- For authentication, status codes, RAGFlow response codes, and safe error handling, read `references/auth-and-errors.md`.
- For common failures such as wrong `base_url`, API key errors, stream parsing, ID confusion, DELETE bodies, and server availability, read `references/troubleshooting.md`.
- To prepare or optionally run a harmless health check request, use `scripts/ragflow_api_smoke.py --help`.

## Public integration boundaries

- Prefer the Python package `ragflow-sdk` for Python clients and `RAGFlow(api_key, base_url, version="v1")` for SDK entrypoints.
- Use HTTP paths under `/api/v1` for public REST calls; do not depend on backend module internals or frontend hooks.
- For OpenAI-compatible chat calls, configure OpenAI clients with `base_url="<server>/api/v1/openai/<chat_id>/chat"` and call `client.chat.completions.create(...)`.
- Treat dataset, document, chunk, chat, agent, session, and memory IDs as distinct resource identifiers; do not substitute one ID type for another.
- Use the public examples in these references as distilled patterns; do not require future agents to open repository examples or tests.

## Typical workflows

- Dataset/document/chunk flow: create or list a dataset, upload or create documents, parse documents, list or update chunks, then retrieve chunks through `/api/v1/retrieval` or `RAGFlow.retrieve(...)`.
- Chat flow: create or list a chat assistant, create or list sessions, ask through `Session.ask(...)` or `/api/v1/chat/completions`, and preserve `reference` metadata when citations matter.
- Agent flow: list or get agents, create sessions when needed, call `/api/v1/agents/chat/completions`, and request traces only when debugging component behavior.
- Memory flow: create/list/update/delete memories and add/search/retrieve messages through the SDK methods summarized in `references/api-sdk-reference.md`.

## Safety defaults

- Never print real API keys in generated curl commands or logs.
- Do not run destructive deletes unless the user explicitly provides target IDs or asks for `delete_all` semantics.
- Prefer non-stream requests while debugging request shape; add streaming only after auth, URL, and payload validation pass.
- Run `scripts/ragflow_api_smoke.py` without `--execute` first; it only prints a redacted prepared request by default.

Files in this skill

  • SKILL.md2.9 KB
  • references/api-sdk-reference.md13.5 KB
  • references/auth-and-errors.md6.2 KB
  • references/troubleshooting.md9.2 KB
  • scripts/ragflow_api_smoke.py6.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.