{"info":{"name":"Krutrim Ekam API","description":"Agent-identity & delegation control plane. Set {{base}} (default https://ekam.olakrutrim.com), {{admin_token}} (operator), {{owner_key}} (ekam_sk_… from creating an owner).","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"base","value":"https://ekam.olakrutrim.com"},{"key":"admin_token","value":""},{"key":"owner_key","value":""}],"item":[{"name":"Discovery","item":[{"name":"Authorization server metadata","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/.well-known/oauth-authorization-server","host":["{{base}}"],"path":[".well-known","oauth-authorization-server"]}}},{"name":"JWKS","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/.well-known/jwks.json","host":["{{base}}"],"path":[".well-known","jwks.json"]}}},{"name":"Protected resource metadata","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/.well-known/oauth-protected-resource","host":["{{base}}"],"path":[".well-known","oauth-protected-resource"]}}}]},{"name":"Admin (admin token)","item":[{"name":"Create tenant","request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"url":{"raw":"{{base}}/v1/tenants","host":["{{base}}"],"path":["v1","tenants"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{admin_token}}","type":"string"}]},"body":{"mode":"raw","raw":"{\n  \"id\": \"acme\",\n  \"name\": \"Acme Corp\",\n  \"domains\": { \"acme.com\": \"acme-corp\" },\n  \"entities\": [\"acme-corp\"]\n}","options":{"raw":{"language":"json"}}}}},{"name":"List tenants","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/tenants","host":["{{base}}"],"path":["v1","tenants"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{admin_token}}","type":"string"}]}}},{"name":"Create owner (returns api_key once)","request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"url":{"raw":"{{base}}/v1/owners","host":["{{base}}"],"path":["v1","owners"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{admin_token}}","type":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"FinOps Team\",\n  \"tenantId\": \"ola\",\n  \"entity\": \"olacabs_india\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"List owners","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/owners","host":["{{base}}"],"path":["v1","owners"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{admin_token}}","type":"string"}]}}},{"name":"Owner usage","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/owners/:id/usage","host":["{{base}}"],"path":["v1","owners",":id","usage"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{admin_token}}","type":"string"}]}}},{"name":"Platform usage","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/platform/usage","host":["{{base}}"],"path":["v1","platform","usage"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{admin_token}}","type":"string"}]}}}]},{"name":"Owner (owner key)","item":[{"name":"Whoami","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/me","host":["{{base}}"],"path":["v1","me"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]}}},{"name":"Create blueprint","request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"url":{"raw":"{{base}}/v1/blueprints","host":["{{base}}"],"path":["v1","blueprints"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"chat-agent\",\n  \"scopes\": [\"models:invoke\"],\n  \"allowedAudiences\": [\"https://your-gateway.example\"],\n  \"tokenTtlSeconds\": 900\n}","options":{"raw":{"language":"json"}}}}},{"name":"List blueprints","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/blueprints","host":["{{base}}"],"path":["v1","blueprints"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]}}},{"name":"Provision agent","request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"url":{"raw":"{{base}}/v1/agents","host":["{{base}}"],"path":["v1","agents"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]},"body":{"mode":"raw","raw":"{\n  \"blueprintId\": \"bp_123\",\n  \"name\": \"support-bot\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"List agents","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/agents","host":["{{base}}"],"path":["v1","agents"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]}}},{"name":"Broker an agent token","request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"url":{"raw":"{{base}}/oauth/token","host":["{{base}}"],"path":["oauth","token"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]},"body":{"mode":"raw","raw":"{\n  \"grant_type\": \"urn:ietf:params:oauth:grant-type:token-exchange\",\n  \"agent_id\": \"agt_123\",\n  \"resource\": \"https://your-gateway.example\",\n  \"scope\": \"models:invoke\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Revoke agent (kill-switch)","request":{"method":"POST","header":[],"url":{"raw":"{{base}}/v1/agents/:id/revoke","host":["{{base}}"],"path":["v1","agents",":id","revoke"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]}}},{"name":"Usage","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/usage","host":["{{base}}"],"path":["v1","usage"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]}}},{"name":"Billing","request":{"method":"GET","header":[],"url":{"raw":"{{base}}/v1/billing","host":["{{base}}"],"path":["v1","billing"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{owner_key}}","type":"string"}]}}}]},{"name":"Verify","item":[{"name":"Introspect a token","request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"url":{"raw":"{{base}}/oauth/introspect","host":["{{base}}"],"path":["oauth","introspect"]},"body":{"mode":"raw","raw":"{\n  \"token\": \"<ES256 JWT>\",\n  \"audience\": \"https://your-gateway.example\"\n}","options":{"raw":{"language":"json"}}}}}]}]}