Skip to main content

Permit Elements API overview

Call the Permit Elements APIs from your backend to run approval workflows without the embedded UI. This section is for developers who build their own interface on top of Permit Elements, the embeddable UI components for user management, access requests, and approvals. Most element API calls take the ID of an element configuration, so start by listing the elements in your environment.

Prerequisites

List the elements in an environment

Send a GET request to /v2/elements/{proj_id}/{env_id}/config. Replace <project_id>, <env_id>, and <API secret key> with your project ID or key, environment ID or key, and API key.

curl 'https://api.permit.io/v2/elements/<project_id>/<env_id>/config' \
-H 'authorization: Bearer <API secret key>' \
-H 'origin: https://app.permit.io'

The response lists each element configuration in the environment. Each item includes these fields:

FieldDescription
idUnique ID of the element configuration. Use it as elements_config_id in the other element API calls.
keyURL-friendly key of the element configuration. The API also accepts the key in place of the ID.
nameThe element name shown in the dashboard.
elements_typeThe element type: user_management, audit_log, approval_flow, operation_approval, or approval_management.
is_activeWhether the element is active.

The endpoint accepts the page and per_page query parameters (default 30, maximum 100 per page).

Element API pages

PageUse it to
Operation Approval APICreate, review, approve, deny, and cancel operation approvals as a signed-in element user.
Access Request APICreate, review, approve, deny, and cancel access requests as a signed-in element user.
Access Request API with an API keyRun the same access request operations from a backend with your API key, without an element user session.

For every element endpoint and schema, see Elements Configs in the API reference.