`GET /v1/orgs/{org}/policies/{policy_id}`, optionally `?version=2`.
const url = 'https://api.updawg.net/v1/orgs/example/policies/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.updawg.net/v1/orgs/example/policies/exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
The pol_… id.
Query Parameters
Section titled “Query Parameters”An older version. Reading one and PUTting it back is how a rollback is done, and the history then shows the rollback as a new version.
Responses
Section titled “Responses”The policy, at the version asked for.
object
Which version is in force. Named version rather than
current_version because from outside there is only one that matters,
and ?version= takes this same number.
The version this body carries, which differs from version when an
older one was asked for. Both are here on purpose: a portal showing
version 2 of a policy on version 5 needs to know it is looking at
history rather than at the policy.
Byte for byte what somebody wrote. The compiled form is derived from it and is not handed back — there is one source of truth for what a policy says and it is the text.
Examplegenerated
{ "created_at": "2026-04-15T12:00:00Z", "enabled": true, "id": "example", "name": "example", "priority": 1, "updated_at": "2026-04-15T12:00:00Z", "version": 1, "author": "example", "showing": 1, "written_at": "2026-04-15T12:00:00Z", "yaml": "example"}No session.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such policy, or deleted, or no such version — one answer for all three, so asking cannot find out which.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}