# AI Studios - Continue Where You Left Off POST /api/v1/aistudios/continue-where-left-off/ Content-Type: application/json **POST:** Get the user's recently viewed resources (AI Expert, AI Note, Quest, Podcast) to allow them to continue where they left off. Requires a publication URL in the POST body to filter resources by publication. Returns up to 5 most recently viewed resources with interaction details and timestamps. Uses the same flattened format as other AI Studios endpoints for consistency. Reference: https://docs.aisquare.studio/api-reference/ai-square-studio-api/aistudios/continue-where-left-off-list ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: AISquare Studio API version: 1.0.0 paths: /api/v1/aistudios/continue-where-left-off/: post: operationId: continue-where-left-off-create summary: AI Studios - Continue Where You Left Off description: >- **POST:** Get the user's recently viewed resources (AI Expert, AI Note, Quest, Podcast) to allow them to continue where they left off. Requires a publication URL in the POST body to filter resources by publication. Returns up to 5 most recently viewed resources with interaction details and timestamps. Uses the same flattened format as other AI Studios endpoints for consistency. tags: - subpackage_aistudios parameters: - name: limit in: query description: 'Number of resources to return (default: 5, max: 10)' required: false schema: type: integer responses: '200': description: Successfully retrieved continue where left off resources content: application/json: schema: $ref: '#/components/schemas/PaginatedContinueWhereLeftOffList' '400': description: Invalid publication URL or missing url content: application/json: schema: description: Any type '404': description: Publication not found content: application/json: schema: description: Any type requestBody: content: application/json: schema: type: object properties: url: type: string description: Publication custom URL to filter resources by required: - url components: schemas: ContinueWhereLeftOff: type: object properties: experience_id: type: integer experience_uid: type: string experience_title: type: string experience_description: type: string resource_type: type: - string - 'null' resource_id: type: - integer - 'null' resource_uid: type: - string - 'null' resource_title: type: - string - 'null' cover_image: type: - string - 'null' experience_type_logo: type: - string - 'null' experience_type_cover: type: - string - 'null' publication_id: type: - integer - 'null' publication_title: type: - string - 'null' publication_logo: type: - string - 'null' publication_custom_url: type: - string - 'null' metrics: type: object additionalProperties: description: Any type creator: type: object additionalProperties: description: Any type description: Get creator info from experience. tags: type: array items: description: Any type description: Get list of tag names from the experience. trending_score: type: number format: double description: Calculate trending score using AIStudiosService. reading_time: type: - integer - 'null' duration: type: - string - 'null' audio_url: type: - string - 'null' video_url: type: - string - 'null' thumbnail: type: - string - 'null' created_at: type: string format: date-time updated_at: type: string format: date-time last_activity: type: string format: date-time description: When user last interacted with this resource required: - experience_id - experience_uid - experience_title - experience_description - resource_type - resource_id - resource_uid - resource_title - cover_image - experience_type_logo - experience_type_cover - publication_id - publication_title - publication_logo - publication_custom_url - metrics - creator - tags - trending_score - reading_time - duration - audio_url - video_url - thumbnail - created_at - updated_at - last_activity description: >- Serializer for continue where you left off resources. Inherits all fields from FlattenedExperienceResourceSerializer and adds last_activity. title: ContinueWhereLeftOff PaginatedContinueWhereLeftOffList: type: object properties: count: type: integer next: type: - string - 'null' format: uri previous: type: - string - 'null' format: uri results: type: array items: $ref: '#/components/schemas/ContinueWhereLeftOff' required: - count - results title: PaginatedContinueWhereLeftOffList ``` ## SDK Code Examples ```python Continue Where Left Off Response import requests url = "https://api.example.com/api/v1/aistudios/continue-where-left-off/" payload = { "url": "ai-research-studio" } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Continue Where Left Off Response const url = 'https://api.example.com/api/v1/aistudios/continue-where-left-off/'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"url":"ai-research-studio"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Continue Where Left Off Response package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.example.com/api/v1/aistudios/continue-where-left-off/" payload := strings.NewReader("{\n \"url\": \"ai-research-studio\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Continue Where Left Off Response require 'uri' require 'net/http' url = URI("https://api.example.com/api/v1/aistudios/continue-where-left-off/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"url\": \"ai-research-studio\"\n}" response = http.request(request) puts response.read_body ``` ```java Continue Where Left Off Response import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.example.com/api/v1/aistudios/continue-where-left-off/") .header("Content-Type", "application/json") .body("{\n \"url\": \"ai-research-studio\"\n}") .asString(); ``` ```php Continue Where Left Off Response request('POST', 'https://api.example.com/api/v1/aistudios/continue-where-left-off/', [ 'body' => '{ "url": "ai-research-studio" }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Continue Where Left Off Response using RestSharp; var client = new RestClient("https://api.example.com/api/v1/aistudios/continue-where-left-off/"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"url\": \"ai-research-studio\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Continue Where Left Off Response import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["url": "ai-research-studio"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/aistudios/continue-where-left-off/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ```python Continue Where Left Off Request import requests url = "https://api.example.com/api/v1/aistudios/continue-where-left-off/" payload = { "url": "ai-research-studio" } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Continue Where Left Off Request const url = 'https://api.example.com/api/v1/aistudios/continue-where-left-off/'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"url":"ai-research-studio"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Continue Where Left Off Request package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.example.com/api/v1/aistudios/continue-where-left-off/" payload := strings.NewReader("{\n \"url\": \"ai-research-studio\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Continue Where Left Off Request require 'uri' require 'net/http' url = URI("https://api.example.com/api/v1/aistudios/continue-where-left-off/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"url\": \"ai-research-studio\"\n}" response = http.request(request) puts response.read_body ``` ```java Continue Where Left Off Request import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.example.com/api/v1/aistudios/continue-where-left-off/") .header("Content-Type", "application/json") .body("{\n \"url\": \"ai-research-studio\"\n}") .asString(); ``` ```php Continue Where Left Off Request request('POST', 'https://api.example.com/api/v1/aistudios/continue-where-left-off/', [ 'body' => '{ "url": "ai-research-studio" }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Continue Where Left Off Request using RestSharp; var client = new RestClient("https://api.example.com/api/v1/aistudios/continue-where-left-off/"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"url\": \"ai-research-studio\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Continue Where Left Off Request import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["url": "ai-research-studio"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/aistudios/continue-where-left-off/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```