Skip to content
Back to skills

Api Service

ASecurity

"Guides SuperAGI FastAPI routes, API-key and JWT auth, webhooks,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
databasesgosqlfastapidebugginggitapidatabase

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill api-service --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Service?

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

Security grade badge for Api Service
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-api-service-4b1f9d48/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-api-service-4b1f9d48)

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: api-service
description: "Guides SuperAGI FastAPI routes, API-key and JWT auth, webhooks,
  migrations, and SQLAlchemy-backed service debugging."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# SuperAGI API Service

Use this sub-skill when the task is about SuperAGI's FastAPI service, public API
routes, auth, webhooks, or database-backed service behavior.

## Read First

- [references/api-reference.md](references/api-reference.md) for route families,
  prefixes, and important request/response types.
- [references/data-models.md](references/data-models.md) for the SQLAlchemy
  entities and relationship hints used by the service.
- [references/auth-and-webhooks.md](references/auth-and-webhooks.md) for JWT,
  API-key, GitHub OAuth, and webhook behavior.
- [references/troubleshooting.md](references/troubleshooting.md) for route,
  import, DB, auth, and migration failures.
- [scripts/inspect_superagi_routes.py](scripts/inspect_superagi_routes.py) for a
  safe static route inventory from a checkout.

## Core Route Groups

SuperAGI's `main.py` registers many routers under stable prefixes:

- `/users`, `/organisations`, `/projects`
- `/budgets`, `/agents`, `/agentexecutions`, `/agentexecutionfeeds`,
  `/agentexecutionpermissions`
- `/resources`, `/configs`, `/toolkits`, `/tool_configs`
- `/agent_templates`, `/agent_workflows`, `/analytics`, `/models_controller`
- `/google`, `/twitter`, `/knowledges`, `/knowledge_configs`
- `/vector_dbs`, `/vector_db_indices`, `/marketplace`, `/api-keys`, `/v1/agent`
- `/webhook`

Use the API reference for endpoint-level selection; keep the root router map in
mind when a caller names only a resource or action.

## Typical Decisions

1. **Login/API-key path vs GUI session path:** Choose the JWT routes in `main.py`
   for browser/login flows and the API-key protected `/v1/agent` routes for
   external automation.
2. **API route vs model/tool route:** If the task is about a request/response
   shape or status code, stay in this sub-skill. If the task is about what a
   workflow does after the request, route to `agents-workflows` or
   `toolkits-integrations`.
3. **Schema vs behavior:** Use `data-models.md` for entity shapes and
   `inspect_superagi_routes.py` for route discovery before making changes or
   writing a new reference.
4. **Migration sensitivity:** The app seeds and migration state influence many
   endpoints. When the database layout is involved, check whether the user needs
   a schema fix or only a controller call.

## Safe Workflow

- Use the static route inspector before importing `main.py` if the goal is only
  to understand endpoint coverage.
- Treat the FastAPI app as side-effectful: importing `main.py` can construct a DB
  engine and register startup handlers.
- Avoid starting the live API unless the downstream user explicitly wants that
  effect and the PostgreSQL/Redis dependencies are available.

## Boundary Notes

- Deployment topology, config file values, and container startup belong to
  `deployment-configuration`.
- Tool execution, toolkit registration, and marketplace tool downloads belong to
  `toolkits-integrations`.
- Agent workflow execution, prompts, parsing, and Celery background behavior
  belong to `agents-workflows`.
- Provider, resource, and vector DB settings that are only needed to satisfy API
  requests belong to `models-resources-vector`.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-reference.md3.6 KB
  • references/auth-and-webhooks.md2.2 KB
  • references/data-models.md4.1 KB
  • references/troubleshooting.md1.8 KB
  • scripts/inspect_superagi_routes.py2.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.