{"revision":"0ed62d2c742f8e20","language":"en","entry":{"id":"log-policy","kind":"endpoint","group":"log","title":"Read a witness policy","method":"GET","path":"/{log}/policy","paths":[],"summary":"Read the log key, witness keys and quorum rule.","response":"A text policy with log, witness, group and quorum lines.","parameters":[{"name":"log","description":"The log name identified by /v1/log, such as staging-1.","in":"path","required":true}],"sample":"/staging-1/policy","access":"public","base":"log","notes":[],"errors":[],"related":[],"sections":[{"kind":"code","language":"shell","code":"curl -fsS 'https://log.veil.rip/staging-1/policy'"}],"verify":"Trust an expected policy and log key. A policy fetched from the same server is not an independent trust anchor by itself.","live":false,"responses":[{"status":200,"contentType":"text/plain","description":"A text policy with log, witness, group and quorum lines.","fields":[]}],"responseObjects":[],"errorFormat":"log-resource","errorDetails":[],"responseHeaders":[{"name":"Content-Type","value":"text/plain","description":"Use the declared media type before choosing a parser."}],"documentationUrl":"https://veil.rip/docs/log-policy","supportsBrowserFetch":true,"browserMode":"fetch"}}