Permit.io Organizations API

The Organizations API gives you access to control and manage your Permit organizations. An organization represents a **single billable account** (i.e: a company using Permit). You may invite your team members to your Permit account, and thus multiple team members may control an organization simultaniously (each member has access according to his role).

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 8

GET /v2/orgs List Organizations #
POST /v2/orgs Create Organization #
GET /v2/orgs/{org_id} Get Organization #
PATCH /v2/orgs/{org_id} Update Organization #
DELETE /v2/orgs/{org_id} Delete Organization #
GET /v2/orgs/active/org Get Active Organization #
POST /v2/orgs/{org_id}/restore Restore Organization #
GET /v2/orgs/{org_id}/stats Stats Organization #

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-organizations-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-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Permit.io Organizations API
  description: Authorization as a service
  version: 2.0.0
tags:
- name: Organizations
  description: 'The Organizations API gives you access to control and manage your Permit organizations.


    An organization represents a **single billable account** (i.e: a company using Permit).

    You may invite your team members to your Permit account, and thus multiple team members

    may control an organization simultaniously (each member has access according to his role).'
paths:
  /v2/orgs:
    get:
      tags:
      - Organizations
      summary: List Organizations
      description: 'Lists all the organizations that can be accessed by the

        authenticated actor (i.e: human team member or api key).'
      operationId: list_organizations
      security:
      - HTTPBearer: []
      parameters:
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: string
          - type: 'null'
          description: Text search for the org name or key or id
          title: Search
        description: Text search for the org name or key or id
      - 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/OrganizationRead'
                title: Response List Organizations V2 Orgs Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Organizations
      summary: Create Organization
      description: If you want to create org via API, reach out to us and we will add the permission to your API token
      operationId: create_organization
      security:
      - HTTPBearer: []
      parameters:
      - name: page_full_url
        in: cookie
        required: false
        schema:
          type: string
          default: page_full_url
          title: Page Full Url
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationReadWithAPIKey'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/orgs/{org_id}:
    get:
      tags:
      - Organizations
      summary: Get Organization
      description: 'Gets a single organization (Permit.io account) matching the given org_id,

        if such org exists and can be accessed by the authenticated actor.'
      operationId: get_organization
      security:
      - HTTPBearer: []
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
          title: Org Id
        description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
        example: my_organization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Organizations
      summary: Update Organization
      description: Updates the organization's profile.
      operationId: update_organization
      security:
      - HTTPBearer: []
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
          title: Org Id
        description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
        example: my_organization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Organizations
      summary: Delete Organization
      description: 'Schedules an organization (Permit.io account) for permanent deletion.


        Effective immediately, the organization disappears from `GET /v2/orgs`

        (list) and direct lookups (`GET /v2/orgs/{id}`); subsequent `PATCH` and

        `DELETE` calls on it return 404. To preserve recoverability during the

        grace period, member grants and existing API keys are intentionally

        retained — support can restore the organization until the cutoff is

        reached. After the grace period the organization and all of its data

        are permanently removed.


        **Contract change:** This endpoint previously returned `204 No Content`

        with an empty body and an immediate hard-delete. It now returns

        `202 Accepted` with a JSON body describing when the permanent deletion

        will occur. Existing clients that branched on `status == 204` need to be

        updated.


        An organization with an environment protected by a policy guard is not scheduled: the

        request is refused with 403, for every caller, until an organization admin deletes the

        policy guard scope (which un-guards every environment of the organization).


        Error responses are documented in the OpenAPI ``responses`` block above.'
      operationId: delete_organization
      security:
      - HTTPBearer: []
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
          title: Org Id
        description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
        example: my_organization
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationScheduleDeleteResponse'
        '404':
          description: Organization not found, or already scheduled for deletion.
        '409':
          description: Concurrent deletion request detected (race between two callers).
        '403':
          description: 'Nothing is scheduled. The caller may not delete the organization, or one of its environments is protected by a policy guard: then no caller can delete the organization, with error code `POLICY_GUARD_PROTECTED`, until an organization admin deletes the policy guard scope (creating one first if the organization has none)'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/orgs/active/org:
    get:
      tags:
      - Organizations
      summary: Get Active Organization
      description: 'Gets a single organization (Permit.io account) matching the given org_id,

        if such org exists and can be accessed by the authenticated actor.'
      operationId: get_active_organization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /v2/orgs/{org_id}/restore:
    post:
      tags:
      - Organizations
      summary: Restore Organization
      description: 'Restores a soft-deleted organization. Superuser-only endpoint.


        Clears the deleted_at timestamp so the organization becomes visible again.

        UUID-only: slug lookup is not accepted because org keys are only unique

        among active orgs (partial unique index on `key WHERE deleted_at IS NULL`).

        Idempotent: calling restore on an already-active org returns the current row.

        Returns 403 if the caller is not a superuser.

        Returns 404 if no organization with the given id exists.

        Returns 409 if another active org has reused this org''s key while it was

        soft-deleted — the key must be freed before this org can be restored.

        Returns 422 if org_id is not a valid UUID.'
      operationId: restore_organization
      security:
      - HTTPBearer: []
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: Organization UUID (slug not accepted)
          title: Org Id
        description: Organization UUID (slug not accepted)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationRead'
        '403':
          description: Superuser access required
        '404':
          description: Organization not found
        '409':
          description: An active organization with the same key already exists; the key must be freed before this org can be restored.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/orgs/{org_id}/stats:
    get:
      tags:
      - Organizations
      summary: Stats Organization
      operationId: stats_organization
      security:
      - HTTPBearer: []
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
          title: Org Id
        description: 'Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").'
        example: my_organization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationStats'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MonthlyUsage:
      properties:
        mau:
          type: integer
          minimum: 0.0
          title: Mau
          default: 0
        tenants:
          type: integer
          minimum: 0.0
          title: Tenants
          default: 0
        monthly_tenants:
          items:
            type: string
            format: uuid
          type: array
          uniqueItems: true
          title: Monthly Tenants
          default: []
        month:
          type: integer
          minimum: 0.0
          title: Month
          default: 0
        year:
          type: integer
          minimum: 0.0
          title: Year
          default: 0
      additionalProperties: false
      type: object
      title: MonthlyUsage
    OrganizationStats:
      properties:
        key:
          type: string
          title: Key
          description: 'A URL-friendly name of the organization (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the organization.'
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the organization
        is_enterprise:
          type: boolean
          title: Is Enterprise
          description: Is this an enterprise account?
        usage_limits:
          $ref: '#/components/schemas/UsageLimits'
          description: Usage limits for this organization
          default:
            mau: 5000
            tenants: 50
            billing_tier: trial
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date and time when the organization was created (ISO_8601 format).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time when the organization was last updated/modified (ISO_8601 format).
        name:
          type: string
          title: Name
          description: The name of the organization, usually it's your company's name.
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
        stats:
          $ref: '#/components/schemas/OrganizationStatistics'
        historical_usage:
          $ref: '#/components/schemas/HistoricalUsage'
      additionalProperties: false
      type: object
      required:
      - key
      - id
      - is_enterprise
      - created_at
      - updated_at
      - name
      - stats
      - historical_usage
      title: OrganizationStats
    OrganizationScheduleDeleteResponse:
      properties:
        status:
          type: string
          title: Status
          default: scheduled
          enum:
          - scheduled
        deleted_at:
          type: string
          format: date-time
          title: Deleted At
          description: Timestamp when the deletion was scheduled
        delete_after:
          type: string
          format: date-time
          title: Delete After
          description: Timestamp when the org will be permanently deleted
      additionalProperties: false
      type: object
      required:
      - deleted_at
      - delete_after
      title: OrganizationScheduleDeleteResponse
      example:
        delete_after: '2026-05-10T12:00:00+00:00'
        deleted_at: '2026-04-30T12:00:00+00:00'
        status: scheduled
    OrganizationRead:
      properties:
        key:
          type: string
          title: Key
          description: 'A URL-friendly name of the organization (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the organization.'
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the organization
        is_enterprise:
          type: boolean
          title: Is Enterprise
          description: Is this an enterprise account?
        usage_limits:
          $ref: '#/components/schemas/UsageLimits'
          description: Usage limits for this organization
          default:
            mau: 5000
            tenants: 50
            billing_tier: trial
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date and time when the organization was created (ISO_8601 format).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time when the organization was last updated/modified (ISO_8601 format).
        name:
          type: string
          title: Name
          description: The name of the organization, usually it's your company's name.
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
      additionalProperties: false
      type: object
      required:
      - key
      - id
      - is_enterprise
      - created_at
      - updated_at
      - name
      title: OrganizationRead
    OrganizationCreate:
      properties:
        key:
          type: string
          pattern: ^[A-Za-z0-9\-_]+$
          title: Key
          description: 'A URL-friendly name of the organization (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the organization.'
        name:
          type: string
          pattern: ^[A-Za-z0-9\.\-\_\ ]+$
          title: Name
          description: The name of the organization, usually it's your company's name.
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
      additionalProperties: false
      type: object
      required:
      - key
      - name
      title: OrganizationCreate
    OrganizationStatistics:
      properties:
        projects:
          type: integer
          minimum: 0.0
          title: Projects
        environments:
          type: integer
          minimum: 0.0
          title: Environments
        users:
          type: integer
          minimum: 0.0
          title: Users
      additionalProperties: false
      type: object
      required:
      - projects
      - environments
      - users
      title: OrganizationStatistics
    OrganizationReadWithAPIKey:
      properties:
        key:
          type: string
          title: Key
          description: 'A URL-friendly name of the organization (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the organization.'
        id:
          type: string
          format: uuid
          title: Id
          description: Unique id of the organization
        is_enterprise:
          type: boolean
          title: Is Enterprise
          description: Is this an enterprise account?
        usage_limits:
          $ref: '#/components/schemas/UsageLimits'
          description: Usage limits for this organization
          default:
            mau: 5000
            tenants: 50
            billing_tier: trial
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date and time when the organization was created (ISO_8601 format).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time when the organization was last updated/modified (ISO_8601 format).
        name:
          type: string
          title: Name
          description: The name of the organization, usually it's your company's name.
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
        api_key_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Api Key Id
        api_key_secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key Secret
      additionalProperties: false
      type: object
      required:
      - key
      - id
      - is_enterprise
      - created_at
      - updated_at
      - name
      title: OrganizationReadWithAPIKey
    HistoricalUsage:
      properties:
        current_month:
          $ref: '#/components/schemas/MonthlyUsage'
        previous_month:
          $ref: '#/components/schemas/MonthlyUsage'
        two_months_ago:
          $ref: '#/components/schemas/MonthlyUsage'
      additionalProperties: false
      type: object
      title: HistoricalUsage
    UsageLimits:
      properties:
        mau:
          type: integer
          title: Mau
          description: Monthly active users limit. Default for trial is 5000.
          default: 5000
        tenants:
          type: integer
          title: Tenants
          description: Number of tenants limit. Default for trial is 50.
          default: 50
        billing_tier:
          $ref: '#/components/schemas/BillingTierType'
          description: Billing tier. Default is trial.
          default: trial
      additionalProperties: false
      type: object
      title: UsageLimits
    OrganizationUpdate:
      properties:
        name:
          anyOf:
          - type: string
            pattern: ^[A-Za-z0-9\.\-\_\ ]+$
          - type: 'null'
          title: Name
          description: The name of the organization, usually it's your company's name.
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: the settings for this project
      additionalProperties: false
      type: object
      title: OrganizationUpdate
    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
    BillingTierType:
      type: string
      enum:
      - free
      - startup
      - pro
      - enterprise
      - internal
      - trial
      title: BillingTierType
    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