Base URL
All API requests use the following base URL:Authentication
Authenticate every request with an API key using theAuthorization header in Bearer format. You can create and manage API keys from your Moonshadow dashboard under Settings > API Keys.
Versioning
The current API version isv1. The version is part of the base URL:
Pagination
List endpoints return collections using cursor-based pagination. Include acursor query parameter to fetch the next page of results.
Query Parameters
integer
default:"20"
Number of items to return per page. Maximum is 100.
string
Opaque cursor value from the previous response’s
next_cursor field.Example Response
has_more is false, you have reached the final page.
Idempotency
To safely retry requests without creating duplicate resources, include anIdempotency-Key header with a unique client-generated identifier. Moonshadow stores the response for 24 hours and returns the cached result for duplicate keys.
Content Type
All request bodies must be valid JSON with theContent-Type: application/json header. Responses are returned as JSON.
Errors
Moonshadow uses conventional HTTP status codes. Error responses include a JSON body witherror and message fields.
Rate Limits
The API enforces a rate limit of 1000 requests per minute per workspace. Exceeding this limit returns a429 Too Many Requests response. For details, see Rate Limits.
Next Steps
Workspaces API
Create and manage team workspaces.
Users API
Manage members and roles in workspaces.
Integrations API
Connect and manage external tool integrations.
Events API
Query and subscribe to events from integrations.
