Platform
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
POST | |
POST | |
POST |
List all approval policies
Also available via the PostHog MCP server:
approval-policies-list— List approval policies for the project.
Required API key scopes
approvals:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /approval_policiesExample response
Status 200
RESPONSE
Create approval policies
Required API key scopes
approvals:writeRequest parameters
- action_keystring
- conditions
- approver_config
- allow_self_approveboolean
- bypass_org_membership_levels
- bypass_rolesarray
- expires_afterstring
- enabledboolean
Response
Example request
POST /api /projects /:project_id /approval_policiesExample response
Status 201
RESPONSE
Retrieve approval policies
Required API key scopes
approvals:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /approval_policies /:idExample response
Status 200
RESPONSE
Update approval policies
Required API key scopes
approvals:writePath parameters
- idstring
Request parameters
- action_keystring
- conditions
- approver_config
- allow_self_approveboolean
- bypass_org_membership_levels
- bypass_rolesarray
- expires_afterstring
- enabledboolean
Response
Example request
PATCH /api /projects /:project_id /approval_policies /:idExample response
Status 200
RESPONSE
Delete approval policies
Required API key scopes
approvals:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /approval_policies /:idExample response
Status 204 No response body
List all change requests
Also available via the PostHog MCP server:
change-requests-list— List change requests and see what needs your approval.
Required API key scopes
approvals:readQuery parameters
- action_keystring
- limitinteger
- offsetinteger
- requesternumber
- resource_idstring
- resource_typestring
- statearray
Response
Example request
GET /api /projects /:project_id /change_requestsExample response
Status 200
RESPONSE
Retrieve change requests
Required API key scopes
approvals:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /change_requests /:idExample response
Status 200
RESPONSE
Create change requests approve
Approve a change request. If quorum is reached, automatically applies the change immediately.
Required API key scopes
approvals:writePath parameters
- idstring
Request parameters
- reasonstring
Response
Example request
POST /api /projects /:project_id /change_requests /:id /approveExample response
Status 200
RESPONSE
Create change requests cancel
Cancel a change request. Only the requester can cancel their own pending change request.
Required API key scopes
approvals:writePath parameters
- idstring
Request parameters
Response
Example request
POST /api /projects /:project_id /change_requests /:id /cancelExample response
Status 200
RESPONSE
Create change requests reject
Reject a change request.
Required API key scopes
approvals:writePath parameters
- idstring
Request parameters
- reasonstring
Response
Example request
POST /api /projects /:project_id /change_requests /:id /rejectExample response
Status 200
RESPONSE





