Skip to main content
GET
/
policy
/
{id}
Retrieve a specific policy by ID
curl --request GET \
  --url https://api.draftt.io/v1/policy/{id} \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": 1,
      "name": "End Of Life",
      "description": "All components should be in the supported version",
      "createdAt": "2024-05-06T11:25:51.513Z",
      "updatedAt": "2024-09-09T19:35:31.898Z"
    }
  ],
  "nextToken": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Response

Success

items
object[]
required
Required array length: 1 element
nextToken
enum<string>
Available options:
null