Versioning Strategy
URL-Based Versioning
Prisme.ai uses URL path-based versioning:The version identifier (e.g.,
v2) is included in the URL path.Major Versions
New major versions (v1, v2, v3) are released when:
- Introducing breaking changes
- Significantly restructuring resources
- Changing fundamental behavior
Minor Updates
Updates within a version (v2.1, v2.2) for:
- Adding new endpoints
- Extending existing endpoints
- Bug fixes and improvements
Version Lifecycle
Each major version undergoes these phases:
- Beta: Early access, may change without notice
- Stable: Full support, backward compatible
- Deprecated: Still works but will be removed
- Retired: No longer available
Current API Versions
- v2 (Current)
- v1 (Deprecated)
- v3 (Beta)
Version 2 is the current stable API version.Key Features:
Status
Stable and fully supported
Base URL
https://api.studio.prisme.ai/v2/Documentation
This documentation describes the v2 API
Retirement Date
No planned retirement date
- Comprehensive workspace management
- Document and knowledge base operations
- Agent creation and management
- Enhanced automation capabilities
- Fine-grained permissions system
Version Compatibility
Backward Compatibility Policy
Backward Compatibility Policy
Within a major version, Prisme.ai commits to backward compatibility:We Will Never:
- Remove endpoints or fields
- Change the meaning of existing fields
- Add required parameters
- Change error codes in a way that breaks existing error handling
- Add new endpoints
- Add optional fields to responses
- Add optional parameters to requests
- Extend enum values
- Fix bugs that don’t change intended behavior
Breaking Changes
Breaking Changes
Breaking changes are only introduced in new major versions. Examples of breaking changes include:
- Removing or renaming fields in responses
- Changing data types of existing fields
- Removing endpoints or resources
- Changing authentication mechanisms
- Modifying error response structures
- Changing the meaning of existing fields
Date-Based Headers
Date-Based Headers
In addition to URL-based versioning, Prisme.ai supports date-based API version targeting for fine-grained compatibility:This header requests the API implementation as it existed on that date, which can help maintain compatibility with a specific behavior even as minor updates are released.
Date-based versioning is optional. If not specified, you’ll get the latest implementation of the requested major version.
Using API Versions
1
Specify the Version in the URL
Always include the version in the URL path:
2
Optional: Use Date-Based Versioning
For more precise versioning, add the
X-Prisme-API-Version header:3
Check Version-Specific Documentation
Always refer to the documentation for your specific API version. Features and endpoints may differ between versions.
4
Plan for Version Migrations
Stay informed about version deprecations and plan migrations accordingly:
- Subscribe to the Prisme.ai developer newsletter
- Check the changelog for deprecation notices
- Test your integration with beta versions
- Allow time to migrate before version retirement
Version Lifecycle
Prisme.ai API versions go through several stages:Beta
- Early access preview
- May change without notice
- Not recommended for production
- Labeled with “beta” in docs
Stable
- Fully supported
- Backward compatible updates only
- Recommended for production use
- Comprehensive documentation
Deprecated
- Still functional but will be retired
- No new features added
- Security patches only
- Migration recommendations provided
Retired
- No longer available
- Returns 410 Gone response
- Redirects to documentation
- No support provided
Version Deprecation Process
1
Announcement
When a version is deprecated:
- Public announcement at least 12 months before retirement
- Email notification to active users of the version
- Deprecation notice in API responses (via headers)
- Documentation updated with migration guidance
2
Sunset Period
During the deprecation period:
- Version continues to function normally
- Security patches are applied
- No new features are added
- Warning headers are included in responses
3
Retirement
When a version is retired:
- Endpoints return 410 Gone status code
- Response includes migration information
- Requests are no longer processed
- Documentation moves to archive section
Best Practices
Specify Exact Versions
Always explicitly specify the API version in your code:
Handle Version Headers
Check for version-related response headers:
Test with Beta Versions
Test your integrations with beta versions early:
Monitor Deprecation Notices
Set up monitoring for deprecation notices: