Skip to main content

Get bounded project AI context

Returns authorized unassigned task and unlinked resource candidates for project organization.
1 min read
get/projects/profiles/{studioId}/{projectId}/ai-context
Request example
Response
get/projects/profiles/{studioId}/{projectId}/ai-context

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Studio identifier used for authorization and operation scope.
projectIdstringrequired#

Responses

application/json
Project context and bounded candidates.
dataobjectrequired#
Task and link candidates share a combined maximum of 47 entries; three additional questions are reserved for risk classification.
Show child attributes
projectobjectrequired#
Show child attributes
idstringrequired#
studioIdstringrequired#
namestringrequired#
descriptionstring#
deadlinestring#
deadlineKeystring#
colorstring#
prioritystringrequired#
createdBystringrequired#
isPinnedbooleanrequired#
isDefaultbooleanrequired#
taskCountintegerrequired#
completedTaskCountintegerrequired#
inProgressTaskCountintegerrequired#
todoTaskCountintegerrequired#
activity7dinteger[]required#
Daily project_events counts for the last 7 local days (index 0 = oldest, index 6 = today). Always length 7; missing days are 0.

Items: 7–7

assigneeIdsstring[]required#
Up to 3 distinct recent task assignee user IDs for avatar stacks.

Items: max 3

archivedAtstring#
createdAtstringrequired#
updatedAtstringrequired#
taskCandidatesobject[]required#

Items: max 40

Show child attributes
idstringrequired#
namestringrequired#
statusstringrequired#
prioritystringrequired#
dueDateKeystring#
updatedAtstringrequired#
linkCandidatesobject[]required#

Items: max 47

Show child attributes
entityTypeenum<string>required#
Options:notelibrary_itemfeedback
entityIdstringrequired#
titlestringrequired#
subtitlestring#
riskFindingobject#
Show child attributes
riskenum<string>required#
Options:on_trackneeds_attentionblocked
evidenceIdsstring[]required#

Items: max 20

revisionintegerrequired#

Range: >= 1

dismissedAtstring#
sourceVersionintegerrequired#

Range: >= 1

openTaskCountintegerrequired#

Range: >= 0

overdueTaskCountintegerrequired#

Range: >= 0

sourceFingerprintstringrequired#

Length: min 1

request_idstring#