Get the model's context for the next draft
GET
/api/models/{id}/context
const url = 'https://forge.example.com/api/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/context';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/context \ --header 'Authorization: Bearer <token>'What earlier drafts’ conversations with the assistant settled. version is 0 while there is none.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Example generated
{ "text": "example", "version": 1, "writtenBy": "example", "updatedBy": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "displayName": "example" }, "updatedAt": "2026-04-15T12:00:00Z", "aiMaySee": true, "canChange": true}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}