{"openapi":"3.1.0","info":{"title":"Octet policy authoring API","version":"2026-11-26.1","description":"Write and check Octet location policies from your own tools. The same operations are MCP tools at /mcp. Every operation needs sign-in with an Octet account, as an owner or admin: an OAuth access token from this host, or for a script a Studio API token made at /account. This OpenAPI file is public."},"servers":[{"url":"https://magistrate.octetproof.com"}],"security":[{"apiToken":[]},{"oauth":["policies"]}],"paths":{"/api/v1/authoring/guide":{"get":{"operationId":"get_policy_guide","summary":"Policy writing guide","description":"Returns the guide to writing Octet location policies: what a policy can say, the spec format, the rules a spec must follow, and worked examples. Read it once before writing a policy.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[]}},"/api/v1/authoring/regions":{"get":{"operationId":"list_regions","summary":"List region codes","description":"Lists the codes a policy can name: countries (ISO 3166-1 alpha-2), US states (ISO 3166-2) and named sanctions lists with their places. Filter by part of a name or code, for example \"korea\" or \"US-N\", to keep the answer short.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"query","in":"query","required":false,"description":"Part of a name or code. Leave out to list everything.","schema":{"type":"string","maxLength":60}},{"name":"kind","in":"query","required":false,"description":"Only countries, only US states, or only named lists.","schema":{"type":"string","enum":["country","us_state","list"]}}]}},"/api/v1/authoring/places":{"get":{"operationId":"find_place","summary":"Find a place","description":"Searches OpenStreetMap for an address or place name and returns up to five matches with coordinates. Use it for the centre of a circle, and never invent coordinates. If several places match, ask the user which one they mean. Keep the attribution when showing results.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"query","in":"query","required":true,"description":"An address or place name, for example \"King's Cross station, London\".","schema":{"type":"string","minLength":1,"maxLength":200}}]}},"/api/v1/authoring/check":{"post":{"operationId":"check_policy","summary":"Check a policy","description":"Checks a policy, given as a spec (recommended) or as OPL, with the engine's own compiler. Returns `ok`, the errors to fix (with a fix hint, and line and column for OPL), warnings, and for a valid policy: its policy question, which engine decision is YES (`yes_is`), a plain-English description, the review lines, the compiled OPL and the location proofs a phone makes. Show the user the question and description before they rely on the policy. Nothing is stored or published.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spec":{"type":"object","description":"The policy as a spec. Every field is optional. Included places are the area the question asks about, excluded places are cut out of it. A policy has up to 20 circles, all included or all excluded, and nothing else.","properties":{"allow_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included countries, ISO 3166-1 alpha-2. Example: [\"US\", \"CA\"]."},"deny_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded countries, ISO 3166-1 alpha-2. Example: [\"IR\"]."},"allow_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included US states, ISO 3166-2. Example: [\"US-NY\"]."},"deny_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded US states, ISO 3166-2. Example: [\"US-NV\"]."},"deny_lists":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded named sanctions lists: ofac, eu, uk, ofac_eu_uk. Example: [\"ofac_eu_uk\"]."},"allow_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Included circles: up to 20, with no excluded circles and no other places."},"deny_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Excluded circles: up to 20, with no included circles and no other places."}},"additionalProperties":false},"opl":{"type":"string","maxLength":32768,"description":"The policy as OPL source, instead of a spec. Prefer a spec."},"policy_id":{"type":"string","pattern":"^p_[0-9a-f]{32}$","description":"The policy identifier to compile a spec under. Optional: a placeholder is used, and nothing is stored."}},"additionalProperties":false}}}}}},"/api/v1/authoring/preview":{"post":{"operationId":"preview_decision","summary":"Preview an answer at a point","description":"Returns the answer (YES, NO or UNKNOWN) a policy gives a phone at a point with a given accuracy, using the engine's own evaluator and boundaries, and how each place in the policy stands there. A point closer to a boundary than the accuracy is UNKNOWN, as it is for a real phone. The policy is a spec or OPL, as for check_policy.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spec":{"type":"object","description":"The policy as a spec. Every field is optional. Included places are the area the question asks about, excluded places are cut out of it. A policy has up to 20 circles, all included or all excluded, and nothing else.","properties":{"allow_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included countries, ISO 3166-1 alpha-2. Example: [\"US\", \"CA\"]."},"deny_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded countries, ISO 3166-1 alpha-2. Example: [\"IR\"]."},"allow_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included US states, ISO 3166-2. Example: [\"US-NY\"]."},"deny_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded US states, ISO 3166-2. Example: [\"US-NV\"]."},"deny_lists":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded named sanctions lists: ofac, eu, uk, ofac_eu_uk. Example: [\"ofac_eu_uk\"]."},"allow_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Included circles: up to 20, with no excluded circles and no other places."},"deny_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Excluded circles: up to 20, with no included circles and no other places."}},"additionalProperties":false},"opl":{"type":"string","maxLength":32768,"description":"The policy as OPL source, instead of a spec. Prefer a spec."},"policy_id":{"type":"string","pattern":"^p_[0-9a-f]{32}$","description":"The policy identifier to compile a spec under. Optional: a placeholder is used, and nothing is stored."},"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the point."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the point."},"accuracy_m":{"type":"number","minimum":0,"maximum":100000,"default":20,"description":"The phone's accuracy in metres. Default 20."}},"required":["lat","lon"],"additionalProperties":false}}}}}},"/api/v1/authoring/drafts":{"post":{"operationId":"open_in_studio","summary":"Open a policy in the Studio","description":"Stores a valid policy for 7 days and returns a link that opens it in the Octet Studio, where the user approves each line, signs it and hands it to Octet. The policy is a spec or OPL, as for check_policy; OPL must be something the Studio can build, so prefer a spec. A policy with errors is refused with its errors. Give the user the link. Nothing is published.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spec":{"type":"object","description":"The policy as a spec. Every field is optional. Included places are the area the question asks about, excluded places are cut out of it. A policy has up to 20 circles, all included or all excluded, and nothing else.","properties":{"allow_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included countries, ISO 3166-1 alpha-2. Example: [\"US\", \"CA\"]."},"deny_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded countries, ISO 3166-1 alpha-2. Example: [\"IR\"]."},"allow_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included US states, ISO 3166-2. Example: [\"US-NY\"]."},"deny_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded US states, ISO 3166-2. Example: [\"US-NV\"]."},"deny_lists":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded named sanctions lists: ofac, eu, uk, ofac_eu_uk. Example: [\"ofac_eu_uk\"]."},"allow_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Included circles: up to 20, with no excluded circles and no other places."},"deny_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Excluded circles: up to 20, with no included circles and no other places."}},"additionalProperties":false},"opl":{"type":"string","maxLength":32768,"description":"The policy as OPL source, instead of a spec. Prefer a spec."},"policy_id":{"type":"string","pattern":"^p_[0-9a-f]{32}$","description":"The policy identifier to compile a spec under. Optional: a placeholder is used, and nothing is stored."},"title":{"type":"string","maxLength":120,"description":"A short name for the policy, shown in the Studio. Optional."}},"additionalProperties":false}}}}}},"/api/v1/authoring/account":{"get":{"operationId":"get_account","summary":"Your Octet account","description":"Returns the signed-in Octet account and the licences it holds right now (id, product, environment and a display name). Needs sign-in with an Octet account, or an API token. The person who approves a submitted policy picks the licence it ships to.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[]}},"/api/v1/authoring/policies":{"get":{"operationId":"list_policies","summary":"Your account's policies","description":"Lists the signed-in account's live policies: id, title, version, policy question, how many licences use it, and its spec when the Studio wrote it. To propose a new version of one, change its spec and pass its policy_id to submit_policy. Needs sign-in.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[]}},"/api/v1/authoring/submissions":{"post":{"operationId":"submit_policy","summary":"Submit a policy for approval","description":"Submits a valid policy to the signed-in Octet account, where it waits in the Octet Studio as awaiting approval. An owner or admin approves it there line by line and ships it to a licence, or discards it. Nothing is live until then, and it expires after 14 days. Show the user the policy question from check_policy first, and submit only when they ask. The policy is a spec or OPL, as for check_policy; OPL must be something the Studio can build. Leave out policy_id for a new policy, or pass a live policy's id from list_policies to propose a new version of it. Returns the submission id, its status, when it expires and a Studio link: give the user the link. Needs sign-in as an owner or admin.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spec":{"type":"object","description":"The policy as a spec. Every field is optional. Included places are the area the question asks about, excluded places are cut out of it. A policy has up to 20 circles, all included or all excluded, and nothing else.","properties":{"allow_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included countries, ISO 3166-1 alpha-2. Example: [\"US\", \"CA\"]."},"deny_countries":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded countries, ISO 3166-1 alpha-2. Example: [\"IR\"]."},"allow_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Included US states, ISO 3166-2. Example: [\"US-NY\"]."},"deny_states":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded US states, ISO 3166-2. Example: [\"US-NV\"]."},"deny_lists":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":300,"description":"Excluded named sanctions lists: ofac, eu, uk, ofac_eu_uk. Example: [\"ofac_eu_uk\"]."},"allow_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Included circles: up to 20, with no excluded circles and no other places."},"deny_discs":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the centre."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the centre."},"radius_m":{"type":"number","minimum":1,"maximum":1000000,"description":"Radius in metres."}},"required":["lat","lon","radius_m"],"additionalProperties":false},"maxItems":20,"description":"Excluded circles: up to 20, with no included circles and no other places."}},"additionalProperties":false},"opl":{"type":"string","maxLength":32768,"description":"The policy as OPL source, instead of a spec. Prefer a spec."},"policy_id":{"type":"string","pattern":"^p_[0-9a-f]{32}$","description":"A live policy of this account (from list_policies) to propose a new version of. Leave out for a new policy."},"title":{"type":"string","maxLength":120,"description":"A short name for the policy, shown in the Studio. Optional."}},"additionalProperties":false}}}}},"get":{"operationId":"get_submission","summary":"Where a submission stands","description":"Returns where a policy submitted with submit_policy stands: awaiting (approval in the Studio), approved (live), rejected (discarded) or expired (nobody approved it within 14 days). Without submission_id, lists the account's most recent submissions, newest first. Needs sign-in.","responses":{"200":{"description":"The result.","content":{"application/json":{}}},"400":{"description":"The request is malformed. `fix` says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Sign-in is required, or the token is invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The policy has errors (preview, open_in_studio and submit_policy). Check it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait `retry_after_s` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"submission_id","in":"query","required":false,"description":"The id submit_policy returned. Leave out to list recent submissions.","schema":{"type":"string","maxLength":80}}]}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request","invalid_policy","busy","unavailable","not_found","sign_in_required","forbidden"]},"message":{"type":"string"},"fix":{"type":"string"},"retry_after_s":{"type":"number"},"status":{"type":"number"}},"required":["code","message"]}},"required":["error"]}},"securitySchemes":{"apiToken":{"type":"http","scheme":"bearer","description":"A Studio API token (octet_pat_…), made at https://magistrate.octetproof.com/account."},"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://magistrate.octetproof.com/oauth/authorize","tokenUrl":"https://magistrate.octetproof.com/oauth/token","refreshUrl":"https://magistrate.octetproof.com/oauth/token","scopes":{"policies":"Write, check and hand over policies for your account."}}}}}}}