SpecStory Cloud API
The SpecStory Cloud API provides programmatic access to your AI conversation data, enabling you to build custom integrations, automate workflows, and create powerful applications on top of your SpecStory ecosystem.Base URL
All API requests should be made to: https://cloud.specstory.comAPI Overview
SpecStory Cloud offers two complementary interfaces:REST API
Perfect for standard CRUD operations on projects and sessions:- Projects: Manage workspaces and organize your AI conversations
- Sessions: Access, retrieve, and manage individual AI conversation sessions
- Metadata: Rich context including git branches, LLM models, client information, and tags
GraphQL API
Advanced querying interface for complex operations:- Complex Queries: Multi-entity queries with relationships
- Advanced Filtering: Filter sessions by metadata, tags, dates, and more
- Full-Text Search: Search across session content with relevance ranking
- Efficient Data Fetching: Request exactly the data you need
Interactive GraphQL Explorer
Explore the GraphQL schema and test queries in real-time with our interactive playground
Key Features
ETag Support
Efficient caching and conditional requests using ETags for optimal performance when working with session data.Multiple Content Types
- JSON: Structured data for programmatic access
- Markdown: Raw conversation content for direct consumption
Rich Metadata
Every session includes comprehensive metadata:- Client Information: Name, version, and device details
- Git Context: Branch information for code-related conversations
- LLM Models: Track which AI models were used
- Custom Tags: Organize and categorize your conversations
Rate Limits
The SpecStory Cloud API implements reasonable rate limits to ensure service quality:- REST API: 1000 requests per hour per API key
- GraphQL API: 500 queries per hour per API key
X-RateLimit-Limit
: Your rate limit ceiling for that given requestX-RateLimit-Remaining
: Number of requests left for the time windowX-RateLimit-Reset
: UTC epoch seconds when the rate limit resets
Getting Started
- Get your API key from the SpecStory Cloud Dashboard
- Authenticate your requests using Bearer token authentication
- Start with projects to understand your workspace organization
- Explore sessions to access your AI conversation data
- Try GraphQL for advanced querying and search capabilities
Authentication
Learn how to authenticate your API requests
Projects
Manage your SpecStory workspaces
Sessions
Access your AI conversation data
GraphQL
Advanced querying and search
SDKs and Libraries
While the SpecStory Cloud API is REST and GraphQL based, we’re working on official SDKs:- JavaScript/TypeScript: Coming soon
- Python: Coming soon
- Go: Coming soon
Support
Need help with the API? We’re here to assist:- Documentation Issues: File an issue on GitHub
- API Support: Email us at support@specstory.com
- Community: Join our Slack community