Permit.io Elements Configs (EAP) API

The Elements Configs (EAP) API from Permit.io, for elements configs (eap).

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /v2/elements/{proj_id}/{env_id}/config List Elements Configs #
POST /v2/elements/{proj_id}/{env_id}/config Create Elements Config #
GET /v2/elements/{proj_id}/{env_id}/config/{elements_config_id} Get Elements Config #
PATCH /v2/elements/{proj_id}/{env_id}/config/{elements_config_id} Update Elements Config #
GET /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/runtime Get Elements Config Runtime #
DELETE /v2/elements/{proj_id}/{env_id}/{elements_config_id} Delete Elements Config #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/permitio:permitio-elements-configs-eap-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

permitio-elements-configs-eap-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Permit.io Elements Configs (EAP) API
  description: Authorization as a service
  version: 2.0.0
tags:
- name: Elements Configs (EAP)
paths:
  /v2/elements/{proj_id}/{env_id}/config:
    get:
      tags:
      - Elements Configs (EAP)
      summary: List Elements Configs
      description: Lists all the elements_configs under the active organization.
      operationId: list_elements_configs
      security:
      - HTTPBearer: []
      parameters:
      - name: proj_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
          title: Proj Id
        description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
        example: my_project
      - name: env_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
          title: Env Id
        description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
        example: my_environment
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number of the results to fetch, starting at 1.
          default: 1
          title: Page
        description: Page number of the results to fetch, starting at 1.
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: The number of results per page (max 100).
          default: 30
          title: Per Page
        description: The number of results per page (max 100).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/PaginatedResult_ElementsConfigRead_'
                - type: array
                  items:
                    $ref: '#/components/schemas/ElementsConfigRead'
                title: Response List Elements Configs V2 Elements  Proj Id   Env Id  Config Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Elements Configs (EAP)
      summary: Create Elements Config
      description: Creates a new elements_config under the active organization.
      operationId: create_elements_config
      security:
      - HTTPBearer: []
      parameters:
      - name: proj_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
          title: Proj Id
        description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
        example: my_project
      - name: env_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
          title: Env Id
        description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
        example: my_environment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ElementsConfigCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementsConfigRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}:
    get:
      tags:
      - Elements Configs (EAP)
      summary: Get Elements Config
      description: Gets a single elements_config matching the given elements_config_id, if such elements_config exists.
      operationId: get_elements_config
      security:
      - HTTPBearer: []
      parameters:
      - name: elements_config_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
          title: Elements Config Id
        description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
        example: my_elements_config
      - name: proj_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
          title: Proj Id
        description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
        example: my_project
      - name: env_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
          title: Env Id
        description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
        example: my_environment
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementsConfigRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Elements Configs (EAP)
      summary: Update Elements Config
      description: Updates the elements_config.
      operationId: update_elements_config
      security:
      - HTTPBearer: []
      parameters:
      - name: elements_config_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
          title: Elements Config Id
        description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
        example: my_elements_config
      - name: proj_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
          title: Proj Id
        description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
        example: my_project
      - name: env_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
          title: Env Id
        description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
        example: my_environment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ElementsConfigUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementsConfigRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/runtime:
    get:
      tags:
      - Elements Configs (EAP)
      summary: Get Elements Config Runtime
      description: Gets a single elements_config matching the given elements_config_id, if such elements_config exists.
      operationId: get_elements_config_runtime
      security:
      - HTTPBearer: []
      parameters:
      - name: elements_config_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
          title: Elements Config Id
        description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
        example: my_elements_config
      - name: proj_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
          title: Proj Id
        description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
        example: my_project
      - name: env_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
          title: Env Id
        description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
        example: my_environment
      - name: resource_instance_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: For ReBAC Elements, the resource instance ID or key to work on
          title: Resource Instance Id
        description: For ReBAC Elements, the resource instance ID or key to work on
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementsConfigRuntimeRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/elements/{proj_id}/{env_id}/{elements_config_id}:
    delete:
      tags:
      - Elements Configs (EAP)
      summary: Delete Elements Config
      description: Deletes the elements_config and all its related data.
      operationId: delete_elements_config
      security:
      - HTTPBearer: []
      parameters:
      - name: elements_config_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
          title: Elements Config Id
        description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
        example: my_elements_config
      - name: proj_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
          title: Proj Id
        description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
        example: my_project
      - name: env_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
          title: Env Id
        description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
        example: my_environment
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ElementsType:
      type: string
      enum:
      - user_management
      - audit_log
      - approval_flow
      - operation_approval
      - approval_management
      title: ElementsType
    ElementsConfigRead:
      properties:
        key:
          type: string
          title: Key
          description: 'A URL-friendly name of the elements_config (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the elements_config.'
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the elements_config
        organization_id:
          type: string
          format: uuid
          title: Organization Id
          description: Unique id of the organization that the elements_config belongs to.
        project_id:
          type: string
          format: uuid
          title: Project Id
          description: Unique id of the project that the elements_config belongs to.
        environment_id:
          type: string
          format: uuid
          title: Environment Id
          description: Unique id of the environment that the elements_config belongs to.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date and time when the elements_config was created (ISO_8601 format).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time when the elements_config was last updated/modified (ISO_8601 format).
        is_active:
          type: boolean
          title: Is Active
        name:
          type: string
          title: Name
          description: The name of the elements_config
        elements_type:
          $ref: '#/components/schemas/ElementsType'
          description: 'The type of the elements interface, e.g: user management'
        settings:
          additionalProperties:
            anyOf:
            - type: integer
            - type: string
            - type: boolean
            - type: 'null'
          type: object
          title: Settings
          description: 'Obj with the options of the elements interface, e.g: primary color'
        email_notifications:
          type: boolean
          title: Email Notifications
          description: Whether to send email notifications to users using your Email Provider you set
          default: false
        roles_to_levels:
          additionalProperties:
            items:
              $ref: '#/components/schemas/PermissionLevelRoleRead'
            type: array
          propertyNames:
            $ref: '#/components/schemas/ElementsPermissionLevel'
          type: object
          title: Roles To Levels
          description: Obj with levels as keys and role ids as values
        webhook:
          anyOf:
          - $ref: '#/components/schemas/WebhookRead'
          - type: 'null'
      additionalProperties: false
      type: object
      required:
      - key
      - id
      - organization_id
      - project_id
      - environment_id
      - created_at
      - updated_at
      - is_active
      - name
      - elements_type
      - settings
      - roles_to_levels
      title: ElementsConfigRead
    ElementsConfigUpdate:
      properties:
        name:
          type: string
          title: Name
          description: The name of the elements_config
        elements_type:
          $ref: '#/components/schemas/ElementsType'
          description: 'The type of the elements interface, e.g: user management'
        settings:
          additionalProperties:
            anyOf:
            - type: integer
            - type: string
            - type: boolean
            - type: 'null'
          type: object
          title: Settings
          description: 'Obj with the options of the elements interface, e.g: primary color'
        email_notifications:
          type: boolean
          title: Email Notifications
          description: Whether to send email notifications to users using your Email Provider you set
          default: false
        roles_to_levels:
          additionalProperties:
            items:
              type: string
            type: array
          propertyNames:
            $ref: '#/components/schemas/ElementsPermissionLevel'
          type: object
          title: Roles To Levels
          description: Obj with levels as keys and role ids as values
        webhook:
          anyOf:
          - $ref: '#/components/schemas/WebhookUpdate'
          - type: 'null'
      additionalProperties: false
      type: object
      required:
      - roles_to_levels
      title: ElementsConfigUpdate
    ElementsConfigRuntimeRead:
      properties:
        config:
          $ref: '#/components/schemas/ElementsConfigRead'
        current_permission_level:
          $ref: '#/components/schemas/ElementsPermissionLevel'
      additionalProperties: false
      type: object
      required:
      - config
      - current_permission_level
      title: ElementsConfigRuntimeRead
    PaginatedResult_ElementsConfigRead_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ElementsConfigRead'
          type: array
          title: Data
          description: List of Elements Configs
        total_count:
          type: integer
          minimum: 0.0
          title: Total Count
          description: The number of results across all pages.
        page_count:
          type: integer
          minimum: 0.0
          title: Page Count
          description: 'The number of pages at the requested `per_page`: `ceil(total_count / per_page)`. Fetch pages 1 to `page_count` to read every result. It is 0 when there are no results, and on a page past the last one.'
          default: 0
      additionalProperties: false
      type: object
      required:
      - data
      - total_count
      title: PaginatedResult[ElementsConfigRead]
    WebhookRead:
      properties:
        type:
          $ref: '#/components/schemas/WebhookType'
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the webhook
        organization_id:
          type: string
          format: uuid
          title: Organization Id
          description: Unique id of the organization that the webhook belongs to.
        project_id:
          type: string
          format: uuid
          title: Project Id
          description: Unique id of the project that the webhook belongs to.
        environment_id:
          type: string
          format: uuid
          title: Environment Id
          description: Unique id of the environment that the webhook belongs to.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date and time when the webhook was created (ISO_8601 format).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time when the webhook was last updated/modified (ISO_8601 format).
        url:
          type: string
          title: Url
          description: The url to POST the webhook to
      additionalProperties: false
      type: object
      required:
      - type
      - id
      - organization_id
      - project_id
      - environment_id
      - created_at
      - updated_at
      - url
      title: WebhookRead
    PermissionLevelRoleRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the elements_config
        key:
          type: string
          title: Key
          description: 'A URL-friendly name of the elements_config (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the elements_config.'
        name:
          type: string
          title: Name
        resource_id:
          type: string
          format: uuid
          title: Resource Id
          description: Unique id of the resource
      additionalProperties: false
      type: object
      required:
      - id
      - key
      - name
      - resource_id
      title: PermissionLevelRoleRead
    ElementsPermissionLevel:
      type: string
      enum:
      - LEVEL_1
      - LEVEL_2
      - LEVEL_3
      - LEVEL_4
      - HIDDEN
      - UNCONFIGURED
      title: ElementsPermissionLevel
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ElementsConfigCreate:
      properties:
        key:
          type: string
          pattern: ^[A-Za-z0-9\-_]+$
          title: Key
          description: 'A URL-friendly name of the elements_config (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the elements_config.'
        name:
          type: string
          title: Name
          description: The name of the elements_config
        elements_type:
          $ref: '#/components/schemas/ElementsType'
          description: 'The type of the elements interface, e.g: user management'
        settings:
          additionalProperties:
            anyOf:
            - type: integer
            - type: string
            - type: boolean
            - type: 'null'
          type: object
          title: Settings
          description: 'Obj with the options of the elements interface, e.g: primary color'
        email_notifications:
          type: boolean
          title: Email Notifications
          description: Whether to send email notifications to users using your Email Provider you set
          default: false
        roles_to_levels:
          additionalProperties:
            items:
              type: string
            type: array
          propertyNames:
            $ref: '#/components/schemas/ElementsPermissionLevel'
          type: object
          title: Roles To Levels
          description: Obj with levels as keys and role ids as values
        webhook:
          anyOf:
          - $ref: '#/components/schemas/WebhookCreateWithElements'
          - type: 'null'
      additionalProperties: false
      type: object
      required:
      - key
      - name
      - elements_type
      - settings
      - roles_to_levels
      title: ElementsConfigCreate
    WebhookUpdate:
      properties:
        url:
          type: string
          title: Url
          description: The url to POST the webhook to
        bearer_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Bearer Token
          description: An optional bearer token to use to authenticate the request
      additionalProperties: false
      type: object
      title: WebhookUpdate
    WebhookCreateWithElements:
      properties:
        type:
          type: string
          title: Type
          default: elements
          enum:
          - elements
        url:
          type: string
          title: Url
          description: The url to POST the webhook to
        bearer_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Bearer Token
          description: An optional bearer token to use to authenticate the request
      additionalProperties: false
      type: object
      required:
      - url
      title: WebhookCreateWithElements
    WebhookType:
      type: string
      enum:
      - elements
      - pdp_sync_error
      title: WebhookType
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: 'Authorization header, we support the bearer authentication scheme (see: RFC 6750)'
      scheme: bearer
      bearerFormat: JWT