Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Body
Policy creation data
Name of the policy
"Data Privacy Policy"
Content of the policy as TipTap JSON (array of nodes)
[
{
"type": "heading",
"attrs": { "level": 2, "textAlign": null },
"content": [{ "type": "text", "text": "Purpose" }]
},
{
"type": "paragraph",
"attrs": { "textAlign": null },
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
]
Description of the policy
"This policy outlines how we handle and protect personal data"
Status of the policy
draft
, published
, needs_review
"draft"
Review frequency of the policy
monthly
, quarterly
, yearly
"yearly"
Department this policy applies to
none
, admin
, gov
, hr
, it
, itsm
, qms
"it"
Whether this policy requires a signature
true
Review date for the policy
"2024-12-31T00:00:00.000Z"
ID of the user assigned to this policy
"usr_abc123def456"
ID of the user who approved this policy
"usr_xyz789abc123"
ID of the policy template this policy is based on
"plt_template123"
List of user IDs who have signed this policy
["usr_123", "usr_456"]
Response
Policy created successfully
The policy ID
"pol_abc123def456"
Name of the policy
"Data Privacy Policy"
Description of the policy
"This policy outlines how we handle and protect personal data"
Status of the policy
draft
, published
, needs_review
"draft"
Content of the policy as TipTap JSON (array of nodes)
[
{
"type": "heading",
"attrs": { "level": 2, "textAlign": null },
"content": [{ "type": "text", "text": "Purpose" }]
},
{
"type": "paragraph",
"attrs": { "textAlign": null },
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
]
Review frequency of the policy
monthly
, quarterly
, yearly
"yearly"
Department this policy applies to
none
, admin
, gov
, hr
, it
, itsm
, qms
"it"
Whether this policy requires a signature
true
List of user IDs who have signed this policy
["usr_123", "usr_456"]
Review date for the policy
"2024-12-31T00:00:00.000Z"
Whether this policy is archived
false
When the policy was created
"2024-01-01T00:00:00.000Z"
When the policy was last updated
"2024-01-15T00:00:00.000Z"
When the policy was last archived
"2024-02-01T00:00:00.000Z"
When the policy was last published
"2024-01-10T00:00:00.000Z"
Organization ID this policy belongs to
"org_abc123def456"
ID of the user assigned to this policy
"usr_abc123def456"
ID of the user who approved this policy
"usr_xyz789abc123"
ID of the policy template this policy is based on
"plt_template123"