Skip to main content
POST
Create Access Policy Approval Procedure

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Team-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Team keys must allow every team checked by the request. OAuth access depends on the user’s roles and resource access.

Authorizations

Authorization
string
header
required

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

Path Parameters

access_policy_id
string
required

The ID of the access policy to create the approval procedure for.

Body

application/json
steps
ApprovalStep · object[]

The approval steps for the procedure.

timeoutSeconds
integer<int32> | null

How long each step waits for a human decision before timing out (in seconds). Omit / zero means the server default (30 days). Non-zero values must be within [5 minutes, 90 days].

stages
AccessPolicyApprovalStage · object[]

Authoritative staged topology. When supplied with steps, steps must be the equivalent flattened compatibility projection.

Response

200 - application/json

Success

data
data · object

The created approval procedure.