Overview
Interact programmatically with Stashbase using the REST API.
Use the Stashbase REST API to manage projects, environments, secrets, webhooks, scans, and related workspace resources.
The API works with any language or framework that can send HTTP requests.
Stashbase is currently in beta. API endpoints and payloads may change as we continue improving the platform.
API basics
The API is served over HTTPS.
- Base URL:
https://api.stashbase.com - Default format:
application/json - Authentication: Bearer token in the
Authorizationheader
Authentication
All API requests require valid authentication. You can use personal, service, or environment-scoped API keys depending on the endpoint and scope you need.
Accessing workspace resources
Workspace endpoints (/v1/...) operate on resources visible to the provided API key.
When an endpoint requires identifiers, pass IDs or names exactly as documented for that route.
Rate limits
Rate limits are enforced per key and resource type.
Check the response headers on each request:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
See your platform API docs for current limit policies.
Errors
Errors are returned as JSON objects with a structured error payload (code, message, and optional details).
Use HTTP status codes plus the error code to handle failures programmatically.
Endpoints
Use the sidebar to browse endpoint groups like:
- Projects
- Environments
- Secrets
- Webhooks
- Scan
- Whoami
Each endpoint page includes request parameters, example calls, and response schemas.