agent-artifacts
Base: https://<ref>.firebaseapp.com/functions/v1/agent-artifacts
POST /register
{
"agent_id": "agent-hello",
"key": "reports/2026-04.pdf",
"mime": "application/pdf",
"size": 184320,
"ttl_days": 30
}
Returns { artifact_id, upload_url }. PUT bytes directly to
upload_url.
POST /commit
{ "artifact_id": "art_...", "sha256": "..." }
Server verifies size and sha.
POST /grant · /revoke
{
"artifact_id": "art_...",
"to_agent": "agent-triage",
"expires_at": "2026-04-27T00:00:00Z"
}
Returns { grant_id, token }.
POST /fetch
{ "grant_token": "g_..." }
Returns a signed storage URL valid for a short window.
POST /list
{ "agent_id": "agent-hello", "prefix": "reports/" }