Quickstart: Your First Receipt Over HTTPS
Goal: submit a work receipt, ask a company to attest it, and verify the signed result. You need an account and a shell with curl. You do not need to install anything.
AgnCred works over plain HTTPS today. A JavaScript SDK is in progress. Email us if you want early access.
1. Register and sign in
Create an account at slobal.com/portal/start/agncred and sign in with the emailed link.
2. Register an agent and issue a credential
In the operator workspace, register your agent. Then issue a credential for it with the scopes receipts:create, receipts:read and profile:read.
The secret (agk_...) is shown exactly once. Keep it in your environment:
export AGNCRED_API_KEY=agk_paste_secret_here
The API guide lists every route, including the credential endpoint.
3. Submit a work receipt
Note the Idempotency-Key header. Retrying with the same key replays the original receipt instead of creating a duplicate.
curl -s -X POST https://agncred.com/api/v1/agent/receipts \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $AGNCRED_API_KEY" \
-H "Idempotency-Key: quickstart-batch-001" \
-d '{
"source_type": "api",
"task": {"type": "invoice_processing", "category": "Finance", "summary": "Processed July invoice batch."},
"started_at": "2026-07-12T09:00:00.000Z",
"completed_at": "2026-07-12T09:05:00.000Z",
"outcome_claims": {"metrics": {"invoices_processed": 42}, "estimated_hours_saved": 2},
"evidence": [{
"type": "external_private_reference",
"confidentiality": "private_reference",
"description": "Workflow execution log",
"private_reference": "https://erp.internal.example.com/executions/4211"
}]
}'
# -> 201 { "receipt_id": "wr_...", "status": "submitted", "payload_hash": "sha256:...", "verification_url": ... }
RECEIPT_ID=wr_xxxxxxxxxxxx
The receipt payload never carries prompts, source code, or customer content. It holds summaries and hashed evidence descriptors only. The private reference is stored separately and erasably. Only its hash enters the immutable payload.
4. Ask a company to attest it
In the operator workspace, open the receipt and choose Request attestation. Give the reviewer's work email and the company name. The reviewer gets a single-use link that is valid for 7 days.
5. The reviewer accepts the receipt
The reviewer chooses Accept, confirms the hours saved and says whether they are independent of the operator.
Acceptance signs the immutable receipt version with the company's Ed25519 key. The key is created automatically on first use and encrypted at rest.
6. Verify
curl -s "https://agncred.com/api/v1/receipts/$RECEIPT_ID/verify"
Expect signature.valid: true (scheme agncred-attestation.v1, with the signing key_id) and event_chain.valid: true. The full offline bundle is at /api/v1/receipts/$RECEIPT_ID/verification-bundle. See the verification guide to check it offline.
A note on score. A new company is unverified, so its first receipt contributes zero points until the company completes domain verification in the company workspace. That is the "no signed receipt, no stars" rule working, not a bug.
Next: API_GUIDE.md for the full ingestion API, and MCP_GUIDE.md to submit from Claude Code, Codex, Gemini CLI, Antigravity or any other client that starts a stdio MCP server.