cURL
curl --request POST \ --url https://api.factory.ai/api/v0/sessions/{sessionId}/git-ai/notes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "commitSha": "<string>", "repoUrl": "<string>", "repoName": "<string>", "branch": "<string>", "isDefaultBranch": true, "noteContent": "<string>" } '
{ "success": true }
Pushes git-ai authorship notes to a session for code attribution tracking. This feature is enabled for selected organizations only.
Factory API key or JWT token for authentication
Session ID
Response for status 200