Overview
The planned OrgStack API will be a RESTful API that enables you to programmatically manage organizations, users, roles, and permissions in a multi-tenant environment. The API will follow standard REST conventions and return JSON-encoded responses.All API requests will require authentication using JWT bearer tokens. Learn more in the Authentication specification.
Base URL
All API endpoints are relative to the base URL:API versioning
The OrgStack API currently uses URL-based versioning. The base URL includes the API version path segment. Future versions will be introduced as needed to maintain backward compatibility.Request format
All requests that send data in the request body must use JSON format and include the appropriateContent-Type header:
Example request
Response format
All API responses are returned in JSON format. Successful responses include the requested data, while error responses include details about what went wrong.Success response example
Error response example
HTTP status codes
The OrgStack API uses standard HTTP status codes to indicate the success or failure of requests:| Status Code | Description |
|---|---|
200 | OK - Request succeeded |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters or body |
401 | Unauthorized - Missing or invalid authentication token |
403 | Forbidden - Authenticated but lacking permission |
404 | Not Found - Resource does not exist |
500 | Internal Server Error - Server encountered an error |
When you receive a
4xx error, check the response body for detailed error messages to help troubleshoot the issue.Common patterns
Pagination
List endpoints support pagination usingpage and size query parameters:
Filtering and sorting
Many endpoints support filtering and sorting through query parameters:Multi-tenancy
OrgStack is built for multi-tenant environments. Your authentication token determines which organization context you’re operating in. Some endpoints may require you to specify an organization ID explicitly.Rate limiting
To ensure fair usage and API stability, rate limiting may be applied to API requests. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.
Getting help
If you encounter issues or have questions about the API:- Check the specific endpoint documentation for detailed information
- Review the Authentication guide for token-related issues
- Inspect error response messages for troubleshooting guidance
Next steps
Authenticate
Learn how to obtain and use JWT tokens in the Authentication guide.