Agents
Workspace & cloud integrations
Connect agents to external platforms through OAuth so they can read context and take actions on your behalf.
OAuth connections
Begin an authorization flow by requesting an OAuth URL for the provider, then redirect the user to complete the grant.
GET /github/auth/url— connect a GitHub account.GET /vercel/auth/url— connect a Vercel account.GET /notion/auth/url— connect a Notion workspace.
Push code to GitHub — POST /github/push
Once GitHub is connected, instruct an agent to commit files directly to a repository.
curl https://api.tnsaai.com/github/push \
-H "x-api-key: $TNSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"repo_name": "developer-tnsa-web",
"commit_message": "Add automated billing analytics interface",
"files": [
{ "path": "src/analytics.js", "content": "console.log(\"Billing initialized\");" }
]
}'Request fields
repo_name— the connected repository to commit to.commit_message— the commit message.files— an array of{ path, content }objects to write.