Agents SDK prototype
Interact with the Granted agent via the HTTP endpoints below. The API persists transcripts, memory ids, and tool logs so you can drive the workflow entirely from code or CLI scripts.
Start a session
curl -X POST https://app.grantedai.com/api/agent/session \ -H 'Content-Type: application/json' \ -d '{ "projectId": "cmgkuqn0j0001r204obozqgef", "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What should I do first?" } ] }'
Continue a session
curl -X POST https://app.grantedai.com/api/agent/session/{sessionId} \ -H 'Content-Type: application/json' \ -d '{ "messages": [ { "role": "user", "content": "Thanks!" } ] }'
Upload materials programmatically
curl -X POST https://app.grantedai.com/api/autopilot/upload \ -F projectId=cmgkuqn0j0001r204obozqgef \ -F file=@path/to/rfp.pdf \ -F sessionId={sessionId}
Tip: Run npm run verify:ux2
to execute the smoke checks and sample API calls.