Permit.io Projects API

Projects let you manage permissions for different business objectives from a single Permit account. For example, you can create one project called "Billing App" and another project called "Web App". Every project is a separate silo, and has its own unique set of environments and policies.

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 5

GET /v2/projects List Projects #
POST /v2/projects Create Project #
GET /v2/projects/{proj_id} Get Project #
PATCH /v2/projects/{proj_id} Update Project #
DELETE /v2/projects/{proj_id} Delete Project #

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-projects-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-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Permit.io Projects API
  description: Authorization as a service
  version: 2.0.0
tags:
- name: Projects
  description: 'Projects let you manage permissions for different business objectives from a single Permit account.


    For example, you can create one project called "Billing App" and another project called "Web App".

    Every project is a separate silo, and has its own unique set of environments and policies.'
paths:
  /v2/projects:
    get:
      tags:
      - Projects
      summary: List Projects
      description: Lists all the projects under the active organization.
      operationId: list_projects
      security:
      - HTTPBearer: []
      parameters:
      - 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:
                type: array
                items:
                  $ref: '#/components/schemas/ProjectRead'
                title: Response List Projects V2 Projects Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Projects
      summary: Create Project
      description: Creates a new project under the active organization.
      operationId: create_project
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/projects/{proj_id}:
    get:
      tags:
      - Projects
      summary: Get Project
      description: Gets a single project matching the given proj_id, if such project exists.
      operationId: get_project
      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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Projects
      summary: Update Project
      description: Updates the project.
      operationId: update_project
      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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectRead'
        '403':
          description: 'Nothing is written. The caller may not make the change, or it would change the policy source of a project holding an environment that a policy guard protects: then it is refused for every caller allowed to make it, with error code `POLICY_GUARD_PROTECTED`, until an organization admin removes the project from the policy guard scope (an organization with no scope clears the flag by creating one and deleting it). Every change of the active policy repository on such a project needs that: a switch back to Permit''s policy, and a new deploy key, which takes a new repository and its activation, included'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Projects
      summary: Delete Project
      description: 'Deletes the project and all its related data.


        A project with an environment protected by a policy guard is not deleted: the request is

        refused with 403, for every caller, until an organization admin removes the project from

        the policy guard scope, or deletes the scope (creating one first if the organization has

        none).'
      operationId: delete_project
      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
      responses:
        '204':
          description: Successful Response
        '403':
          description: 'Nothing is deleted. The caller may not delete the project, or one of its environments is protected by a policy guard: then no caller can delete the project, with error code `POLICY_GUARD_PROTECTED`, until an organization admin removes it from the policy guard scope, or deletes the scope (creating one first if the organization has none)'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ProjectCreate:
      properties:
        key:
          type: string
          pattern: ^[A-Za-z0-9\-_]+$
          title: Key
          description: 'A URL-friendly name of the project (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the project.'
        urn_namespace:
          anyOf:
          - type: string
            pattern: ^[a-z0-9-]{2,}
          - type: 'null'
          title: Urn Namespace
          description: Optional namespace for URNs. If empty, URNs will be generated from project key.
        name:
          type: string
          title: Name
          description: The name of the project
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: a longer description outlining the project objectives
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
        active_policy_repo_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Active Policy Repo Id
          description: the id of the policy repo to use for this project
        initial_environments:
          items:
            $ref: '#/components/schemas/EnvironmentCreate'
          type: array
          title: Initial Environments
          description: The initial environments to create for this project. By default, 'Development' and 'Production' are created, specify [] (empty list) to skip that.
          default:
          - key: dev
            name: Development
          - key: production
            name: Production
      additionalProperties: false
      type: object
      required:
      - key
      - name
      title: ProjectCreate
    ProjectRead:
      properties:
        key:
          type: string
          title: Key
          description: 'A URL-friendly name of the project (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the project.'
        urn_namespace:
          anyOf:
          - type: string
            pattern: ^[a-z0-9-]{2,}
          - type: 'null'
          title: Urn Namespace
          description: Optional namespace for URNs. If empty, URNs will be generated from project key.
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the project
        organization_id:
          type: string
          format: uuid
          title: Organization Id
          description: Unique id of the organization that the project belongs to.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date and time when the project was created (ISO_8601 format).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time when the project was last updated/modified (ISO_8601 format).
        name:
          type: string
          title: Name
          description: The name of the project
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: a longer description outlining the project objectives
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
        active_policy_repo_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Active Policy Repo Id
          description: the id of the policy repo to use for this project
      additionalProperties: false
      type: object
      required:
      - key
      - id
      - organization_id
      - created_at
      - updated_at
      - name
      title: ProjectRead
    ProjectUpdate:
      properties:
        name:
          type: string
          title: Name
          description: The name of the project
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: a longer description outlining the project objectives
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
        active_policy_repo_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Active Policy Repo Id
          description: the id of the policy repo to use for this project
      additionalProperties: false
      type: object
      title: ProjectUpdate
    JwksObj:
      properties:
        keys:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Keys
          description: 'The keys to match against the request headers: public keys only. A key carrying a private member (`d`, `p`, `q`, `dp`, `dq`, `qi`, `oth`, `k`), or a symmetric `oct` key, is refused on write, except that an update may send back a key exactly as stored. Reads show each key without those members and leave `oct` keys out.'
      additionalProperties: false
      type: object
      required:
      - keys
      title: JwksObj
    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
    EnvironmentCreate:
      properties:
        key:
          type: string
          pattern: ^[A-Za-z0-9\-_]+$
          title: Key
          description: 'A URL-friendly name of the environment (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the environment.'
        name:
          type: string
          title: Name
          description: The name of the environment
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: an optional longer description of the environment
        custom_branch_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Custom Branch Name
          description: when using gitops feature, an optional branch name for the environment
        jwks:
          anyOf:
          - $ref: '#/components/schemas/JwksConfig'
          - type: 'null'
          description: jwks for element frontend only login
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this environment
      additionalProperties: false
      type: object
      required:
      - key
      - name
      title: EnvironmentCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    JwksConfig:
      properties:
        ttl:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ttl
          description: JWKS cache TTL (in seconds)
          default: 600
        url:
          anyOf:
          - type: string
            pattern: ^https://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$
          - type: 'null'
          title: Url
          description: '...'
        jwks:
          anyOf:
          - $ref: '#/components/schemas/JwksObj'
          - type: 'null'
          description: '...'
        issuer:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          - type: 'null'
          title: Issuer
          description: 'The ''iss'' claim an Elements user JWT must carry, compared exactly (an Auth0 issuer ends in ''/''); with a list, a token from any one of them is accepted. When set, a token from any other issuer is rejected. Set it, together with `audience`, whenever the JWKS''s keys also sign tokens for other applications: Entra ID (any `login.microsoftonline.com` JWKS URL, tenant-specific ones included, because Entra''s signing keys are shared by every tenant), Google, Apple, or an Auth0 or Cognito tenant other applications use. For a `url` on one of those shared hosts (Entra, Google, Apple, Salesforce, LinkedIn, Facebook) both are required when the config is created or its `url` is set or changed, and by an update that leaves `user_key_claim` set and changes it, this or `audience`. On Firebase Auth''s JWKS (any URL whose last path segment is `securetoken@system.gserviceaccount.com` or `sessionCookiePublicKeys`, in any case) both are required on those writes, and Elements login and invite approval are refused until both are set: `issuer` ''https://securetoken.google.com/<project-id>'' (session cookies: ''https://session.firebase.google.com/<project-id>'') and `audience` ''<project-id>''. A value left unset is taken from the token itself, so it checks nothing. An update whose `jwks` omits it keeps the stored value; send null to clear it.'
        audience:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          - type: 'null'
          title: Audience
          description: 'The audience an Elements user JWT''s ''aud'' claim must contain; with a list, a token naming at least one of them is accepted. When set, a token minted for any other audience is rejected. Setting it alone does not check the issuer: on Entra ID set `issuer` too, or a token another tenant issued for this audience is accepted. Cognito access tokens carry no ''aud'' (they carry `client_id`), so only Cognito ID tokens pass when it is set. Required on the same shared-host and Firebase Auth configs as `issuer` (see its description). An update whose `jwks` omits it keeps the stored value; send null to clear it.'
        user_key_claim:
          anyOf:
          - type: string
          - type: 'null'
          title: User Key Claim
          description: 'The claim of an Elements user JWT whose value is the Permit user key; unset means ''sub''. Elements login and invite approval read the user key from this claim only: a request''s own `user_key_claim` is accepted only when omitted, ''sub'', or equal to this one, and is otherwise rejected. The claim''s value must be a non-empty string or an integer (read as its decimal string; a boolean, or a number with a fraction or exponent, is rejected); ''email'' is accepted only from a token whose ''email_verified'' is the JSON boolean true (that check applies only to a claim named exactly ''email''; tokens without ''email_verified'', such as Entra ID''s, or with the string ''true'', as Sign in with Apple has sent, cannot use it, and an email-keyed user changes key when the IdP email changes). Name only a claim your IdP sets: claims the end user or the client can set (an OIDC ''nonce'', ''name'', ''aud'', ...) are refused, and a custom claim filled from metadata the user can edit is just as unsafe. An update whose `jwks` omits it keeps the stored value; send null to clear it. On a shared IdP host (Entra ID, Google, ...), an update that leaves it set and changes it, `issuer` or `audience` needs both of those set, so neither can be cleared while it is set. Removing the whole config (`jwks: null`) removes it too, so a config created again keys users on ''sub'' until it is set again.'
      additionalProperties: false
      type: object
      title: JwksConfig
  securitySchemes:
    HTTPBearer:
      type: http
      description: 'Authorization header, we support the bearer authentication scheme (see: RFC 6750)'
      scheme: bearer
      bearerFormat: JWT