{"openapi":"3.1.0","info":{"title":"Protocol Ledger source profiles","version":"1.0.0","description":"Free dated editorial snapshot. No live-chain, pricing or conformance guarantee."},"servers":[{"url":"https://protocol.agiscorecard.com"}],"paths":{"/api/v1/profiles":{"get":{"operationId":"listProfiles","parameters":[{"name":"purpose","in":"query","schema":{"type":"string","enum":["all","payment","identity","token"]}},{"name":"status","in":"query","schema":{"type":"string","enum":["all","draft","standard","specification"]}}],"responses":{"200":{"description":"Dated records, source URLs and stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileResponse"}}}},"400":{"description":"Unknown query field or enum"}}}},"/api/v1/profiles/{id}":{"get":{"operationId":"getProfile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One source-backed record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileResponse"}}}},"404":{"description":"Unknown ID"}}}}},"components":{"schemas":{"ProfileResponse":{"type":"object","required":["version","revision","checkedAt","ageDays","stale","scope","profiles"],"properties":{"version":{"type":"string"},"revision":{"type":"string"},"checkedAt":{"type":"string","format":"date"},"ageDays":{"type":"integer"},"stale":{"type":"boolean"},"scope":{"type":"string"},"profiles":{"type":"array","items":{"type":"object","required":["id","name","purpose","network","status","version","source","checkedAt","claim","fields","boundary","tags"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"purpose":{"type":"string"},"network":{"type":"string"},"status":{"type":"string"},"version":{"type":"string"},"source":{"type":"string"},"checkedAt":{"type":"string"},"claim":{"type":"string"},"boundary":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}}}}}}}}}}