Permit.io Deprecated API

The Deprecated API from Permit.io, for deprecated.

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/deprecated/history List Api Events #
GET /v2/deprecated/history/{event_id} Get Api Event #
GET /v2/deprecated/history/{event_id}/request Get Request Body #
GET /v2/deprecated/history/{event_id}/response Get Response Body #
GET /v2/deprecated/activity List Activity Events #
GET /v2/deprecated/activity/types List Activity Types #

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-deprecated-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-deprecated-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Permit.io Deprecated API
  description: Authorization as a service
  version: 2.0.0
tags:
- name: Deprecated
paths:
  /v2/deprecated/history:
    get:
      summary: List Api Events
      description: Fetches all API History events for given filters.
      operationId: list_api_events
      deprecated: true
      security:
      - HTTPBearer: []
      parameters:
      - name: method
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: HTTP methods to include in search
          title: Method
        description: HTTP methods to include in search
      - name: path
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: API paths to include in search
          title: Path
        description: API paths to include in search
      - name: success
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          description: Filter by API request success/failure
          title: Success
        description: Filter by API request success/failure
      - name: status_code
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: integer
          - type: 'null'
          description: HTTP status codes to include in search
          title: Status Code
        description: HTTP status codes to include in search
      - name: client_ip
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: IPs of clients to include in search
          title: Client Ip
        description: IPs of clients to include in search
      - name: actor_type
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Actor type to search (member, user, api_key)
          title: Actor Type
        description: Actor type to search (member, user, api_key)
      - name: actor_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Actor ID to search
          title: Actor Id
        description: Actor ID to search
      - name: actor_display_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Actor display name to search
          title: Actor Display Name
        description: Actor display name to search
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Projects to include in search
          title: Project Id
        description: Projects to include in search
      - name: env_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Environments to include in search
          title: Env Id
        description: Environments to include in search
      - name: timestamp_from
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Retrieve only events after this timestamp (seconds since epoch)
          title: Timestamp From
        description: Retrieve only events after this timestamp (seconds since epoch)
      - name: timestamp_until
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Retrieve only events before this timestamp (seconds since epoch)
          title: Timestamp Until
        description: Retrieve only events before this timestamp (seconds since epoch)
      - 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:
                $ref: '#/components/schemas/PaginatedResult_APIHistoryEventRead_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Deprecated
  /v2/deprecated/history/{event_id}:
    get:
      summary: Get Api Event
      description: 'Returns full information, including request and response bodies, for one event.

        Needs read access to the environment (or project, or organization) the request

        was made in.'
      operationId: get_api_event
      deprecated: true
      security:
      - HTTPBearer: []
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIHistoryEventFullRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Deprecated
  /v2/deprecated/history/{event_id}/request:
    get:
      summary: Get Request Body
      operationId: get_request_body
      deprecated: true
      security:
      - HTTPBearer: []
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - type: string
                  contentMediaType: application/octet-stream
                - type: 'null'
                title: Response Get Request Body V2 Deprecated History  Event Id  Request Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Deprecated
  /v2/deprecated/history/{event_id}/response:
    get:
      summary: Get Response Body
      operationId: get_response_body
      deprecated: true
      security:
      - HTTPBearer: []
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - type: string
                  contentMediaType: application/octet-stream
                - type: 'null'
                title: Response Get Response Body V2 Deprecated History  Event Id  Response Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Deprecated
  /v2/deprecated/activity:
    get:
      summary: List Activity Events
      description: Fetches all API History events for given filters.
      operationId: list_activity_events_v2_deprecated_activity_get
      deprecated: true
      security:
      - HTTPBearer: []
      parameters:
      - name: actor_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Actor ID to search
          title: Actor Id
        description: Actor ID to search
      - name: actor_display_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Actor display name to search
          title: Actor Display Name
        description: Actor display name to search
      - name: actor_type
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Actor type to search (member, user, api_key)
          title: Actor Type
        description: Actor type to search (member, user, api_key)
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Projects to include in search
          title: Project Id
        description: Projects to include in search
      - name: env_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Environments to include in search
          title: Env Id
        description: Environments to include in search
      - name: timestamp_from
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Retrieve only events after this timestamp (seconds since epoch)
          title: Timestamp From
        description: Retrieve only events after this timestamp (seconds since epoch)
      - name: timestamp_until
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Retrieve only events before this timestamp (seconds since epoch)
          title: Timestamp Until
        description: Retrieve only events before this timestamp (seconds since epoch)
      - 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:
                $ref: '#/components/schemas/PaginatedResult_ActivityLogEventRead_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Deprecated
  /v2/deprecated/activity/types:
    get:
      summary: List Activity Types
      operationId: list_activity_types_v2_deprecated_activity_types_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
      security:
      - HTTPBearer: []
      tags:
      - Deprecated
components:
  schemas:
    ActivityDetailsObject:
      properties:
        id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Id
        key:
          anyOf:
          - type: string
          - type: 'null'
          title: Key
        kind:
          type: string
          title: Kind
          default: object
          enum:
          - object
        type:
          type: string
          title: Type
      additionalProperties: false
      type: object
      required:
      - type
      title: ActivityDetailsObject
    PaginatedResult_APIHistoryEventRead_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/APIHistoryEventRead'
          type: array
          title: Data
          description: List of Api History Events
        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[APIHistoryEventRead]
    ActivityLogEventRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        activity_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Activity Id
        activity_description:
          anyOf:
          - type: string
          - type: 'null'
          title: Activity Description
        activity_details:
          anyOf:
          - additionalProperties:
              oneOf:
              - $ref: '#/components/schemas/ActivityDetailsObject'
              - $ref: '#/components/schemas/ActivityDetailsList'
              discriminator:
                propertyName: kind
                mapping:
                  list: '#/components/schemas/ActivityDetailsList'
                  object: '#/components/schemas/ActivityDetailsObject'
            type: object
          - type: 'null'
          title: Activity Details
        client_ip:
          type: string
          title: Client Ip
        actor_type:
          type: string
          title: Actor Type
        actor_id:
          type: string
          format: uuid
          title: Actor Id
        actor_display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Actor Display Name
        org_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Org Id
        project_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Key
        project_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Project Id
        env_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Env Key
        env_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Env Id
      additionalProperties: false
      type: object
      required:
      - id
      - timestamp
      - client_ip
      - actor_type
      - actor_id
      title: ActivityLogEventRead
    PaginatedResult_ActivityLogEventRead_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ActivityLogEventRead'
          type: array
          title: Data
          description: List of Activity Log Events
        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[ActivityLogEventRead]
    ActivityDetailsObjectData:
      properties:
        id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Id
        key:
          anyOf:
          - type: string
          - type: 'null'
          title: Key
      additionalProperties: false
      type: object
      title: ActivityDetailsObjectData
    APIHistoryEventFullRead:
      properties:
        request_body:
          anyOf:
          - type: string
            contentMediaType: application/octet-stream
          - type: 'null'
          title: Request Body
        response_body:
          anyOf:
          - type: string
            contentMediaType: application/octet-stream
          - type: 'null'
          title: Response Body
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        timestamp_utc:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Timestamp Utc
        method:
          type: string
          title: Method
        path:
          type: string
          title: Path
        success:
          type: boolean
          title: Success
        status:
          type: integer
          title: Status
        request_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Request Id
        client_ip:
          type: string
          title: Client Ip
        actor_type:
          type: string
          title: Actor Type
        actor_id:
          type: string
          format: uuid
          title: Actor Id
        actor_display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Actor Display Name
        org_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Org Id
        project_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Key
        project_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Project Id
        env_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Env Key
        env_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Env Id
        id:
          type: string
          format: uuid
          title: Id
      additionalProperties: false
      type: object
      required:
      - timestamp
      - method
      - path
      - success
      - status
      - client_ip
      - actor_type
      - actor_id
      - id
      title: APIHistoryEventFullRead
    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
    ActivityDetailsList:
      properties:
        kind:
          type: string
          title: Kind
          default: list
          enum:
          - list
        type:
          type: string
          title: Type
        items:
          items:
            $ref: '#/components/schemas/ActivityDetailsObjectData'
          type: array
          title: Items
      additionalProperties: false
      type: object
      required:
      - type
      - items
      title: ActivityDetailsList
    APIHistoryEventRead:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        timestamp_utc:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Timestamp Utc
        method:
          type: string
          title: Method
        path:
          type: string
          title: Path
        success:
          type: boolean
          title: Success
        status:
          type: integer
          title: Status
        request_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Request Id
        client_ip:
          type: string
          title: Client Ip
        actor_type:
          type: string
          title: Actor Type
        actor_id:
          type: string
          format: uuid
          title: Actor Id
        actor_display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Actor Display Name
        org_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Org Id
        project_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Key
        project_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Project Id
        env_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Env Key
        env_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Env Id
        id:
          type: string
          format: uuid
          title: Id
      additionalProperties: false
      type: object
      required:
      - timestamp
      - method
      - path
      - success
      - status
      - client_ip
      - actor_type
      - actor_id
      - id
      title: APIHistoryEventRead
    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