Skip to content

Get the model's context for the next draft

GET
/api/models/{id}/context
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.

id
required
string format: uuid

OK

Media typeapplication/json
object
text
required
string
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
writtenBy
required
null | string
updatedBy
required
One of:
null
updatedAt
required
null | string format: date-time
aiMaySee
required
boolean
canChange
required
boolean

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
}

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"
}