curl --request POST \
--url https://api.example.com/api/community/sessions/:id/save{
"success": true,
"sessionId": 123,
"reused": true
}Save a community session to your personal library
curl --request POST \
--url https://api.example.com/api/community/sessions/:id/save{
"success": true,
"sessionId": 123,
"reused": true
}session_create feature pricing.
session_createtrue on successful savetrue if the session was already saved previously (no new credits consumed)importSource set to "community"importUrl set to "community:{id}"user-media storagesession_media records linked to your sessioncurl -X POST "https://app.joip.io/api/community/sessions/123/save" \
-H "Cookie: session=..." \
-H "Content-Type: application/json"
{
"success": true,
"sessionId": 456,
"reused": false
}
{
"success": true,
"sessionId": 456,
"reused": true
}
400 Bad Request
{
"message": "Invalid session ID"
}
404 Not Found
{
"message": "Session not found or not public"
}
403 Forbidden
{
"message": "This session is not shared to the community"
}
402 Payment Required
{
"error": "Insufficient credits",
"code": "INSUFFICIENT_CREDITS",
"required": 10,
"current": 5,
"featureKey": "session_create"
}
403 Forbidden
{
"error": "This feature is only available for Premium subscribers",
"code": "PREMIUM_ONLY",
"featureKey": "session_create"
}
503 Service Unavailable
{
"error": "Session pricing is not configured",
"code": "FEATURE_PRICING_MISSING",
"featureKey": "session_create"
}
users/{userId}/manual-sessions/{sessionId}/ in your storageisImported flag is preserved