Skip to main content
GET
Get a security policy by ID

Authorizations

Authorization
string
header
required

JWT access token.

Path Parameters

organizationId
string<uuid>
required
policyId
string<uuid>
required

Response

Policy details

id
string
required

Policy ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

scope
enum<string>
required

Policy scope

Available options:
ORGANIZATION,
TEAM,
PROJECT
Example:

"PROJECT"

organizationId
string
required

Organization ID the policy belongs to

Example:

"550e8400-e29b-41d4-a716-446655440001"

name
string
required

Policy name

Example:

"Production Security Policy"

priority
number
required

Priority (lower = higher priority)

Example:

10

config
object
required

Policy configuration

Example:
isEnabled
boolean
required

Whether the policy is enabled

Example:

true

createdAt
string
required

Creation timestamp

Example:

"2024-01-15T10:30:00Z"

updatedAt
string
required

Last update timestamp

Example:

"2024-01-15T10:30:00Z"

projectIds
string[]

Project IDs targeted by this policy (for PROJECT scope)

Example:
teamIds
string[]

Team IDs targeted by this policy (for TEAM scope)

Example:
description
string

Policy description

Example:

"Security policy for production environment"

createdBy
string

User ID who created the policy

updatedBy
string

User ID who last updated the policy