SDK Recommended: For the best developer experience with the B2B API, install the Rise SDK:
npm install @riseworks/riseworks-sdk (or yarn add @riseworks/riseworks-sdk / pnpm add @riseworks/riseworks-sdk)Helpful skill: If you use Claude-style coding skills, add the migration skill with
npx @riseworks/riseworks-sdk add-skills rise-v1-migration.Enhanced Security
SIWE authentication replaces X-Auth-Token for better security
Better Performance
Optimized endpoints with improved response times
Web3 Native
Built for blockchain with EIP-712 typed data signing
Improved Data
Enhanced response formats with better error handling
Key Changes Overview
Authentication Changes
- V1: Used SIWE authentication with
/v1/api/siweendpoints - B2B: Uses Sign-In with Ethereum (SIWE) with
/v2/auth/siweendpoints - JWT Tokens: Still used but obtained through updated SIWE flow
Endpoint Structure
- V1: Used
/v1/prefix with various endpoint patterns - B2B: Uses
/v2/prefix with consistent REST patterns - Base URL: Updated to use the new B2B API URLs - see Environments for API URLs
Data Formats
- V1: Mixed response formats and error structures
- B2B: Consistent
{ success: boolean, data: any }response format - Error Handling: Standardized HTTP status codes with detailed error messages
Endpoint Migration Table
Authentication Endpoints
Team Management
Payment Processing
Balance Management
Invites Management
New B2B API Endpoints (Not in V1)
The B2B API introduces several new endpoints that weren’t available in V1:Team Management (Enhanced)
GET /v2/teams/{team_nanoid}/settings- Get team settingsPUT /v2/teams/{team_nanoid}/settings- Update team settingsGET /v2/teams/{team_nanoid}- Get team by nanoidDELETE /v2/teams/{team_nanoid}- Delete team by nanoidPUT /v2/teams/{team_nanoid}- Update team by nanoidPOST /v2/teams- Create a teamGET /v2/teams/{team_nanoid}/member/{user_nanoid}/settings- Get member settingsPUT /v2/teams/{team_nanoid}/member/{user_nanoid}/settings- Update member settings
Authentication Migration
B2B Authentication (New)
Using the Rise SDK (Recommended):Data Format Changes
Response Format
B2B Response:Error Format
B2B Error:ID System Changes
V1: Mixed ID System
- Teams:
123,456,789(numeric IDs) - Users:
talentId(numeric IDs) - RiseID:
rise_id(string format)
B2B: Nanoid System
- Teams:
te-abc123def456 - Users:
us-ghi789jkl012 - Companies:
co-def456ghi789 - Payments:
pa-pay123def456
Migration Checklist
Phase 1: Preparation
- Review new authentication flow - Update SIWE authentication paths
- Update base URL - Change to new B2B API URLs (see Environments)
- Update endpoint paths - Change from
/v1/to/v2/ - Test authentication - Verify updated SIWE flow works
Phase 2: Core Migration
- Update team endpoints - Replace numeric IDs with nanoids
- Update user endpoints - Replace numeric IDs with nanoids
- Update balance endpoints - Use new query parameter format
- Update response handling - Handle new
{ success, data }format
Phase 3: Advanced Features
- Implement EIP-712 signing - For payments and team management
- Update error handling - Handle new error format
- Test all endpoints - Verify functionality works as expected
- Update documentation - Update internal API documentation
Code Migration Examples
Team Member Retrieval
V1 Code:Payment Processing
V1 Code:Use
pay_now: true to execute payments immediately, or pay_now: false to create a payment intent for later execution.Balance Retrieval
B2B Code (Using SDK):Common Migration Issues
Issue 1: Authentication Errors
Problem: Getting 401 errors after migration Solution:- Update SIWE endpoint paths from
/v1/api/siweto/v2/auth/siweand/v2/auth/verify - Check that JWT tokens are included as
Authorization: Bearer <jwt>headers - Verify JWT hasn’t expired (24-hour lifetime)
Issue 2: ID Format Errors
Problem: Getting 404 errors for resources that should exist Solution:- Replace numeric IDs with nanoids
- Update all endpoint URLs to use nanoid format
- Check that you’re using the correct nanoid type (team, user, company)
Issue 3: Response Format Errors
Problem: Code expecting old response format Solution:- Update response handling to use
response.data.datainstead of direct properties - Handle the new
{ success, data }wrapper format - Update error handling to use
response.datafor error messages
Issue 4: Missing EIP-712 Signing
Problem: Getting errors about missing signatures Solution:- Implement EIP-712 typed data signing for operations that require it
- Use the two-step process (create + execute) for payments and team management
- Ensure wallet is connected and has proper permissions
Support During Migration
Documentation
Complete B2B API documentation
API Reference
Interactive API reference
Support Email
Get migration assistance
Status Page
Check API status
Need Help? Our support team is available to help with your migration. Contact us at Hello@Riseworks.io for personalized assistance.
