Permit.io · Capability
Permit.io API
Permit.io API. 6 operations. Lead operation: List Activity Events. Self-contained Naftiko capability covering one Permit Io business surface.
Run with Naftiko
Permit Io
What You Can Do
GET
Listactivityeventsv2deprecatedactivityget
— List Activity Events
/v1/v2/deprecated/activity
GET
Listactivitytypesv2deprecatedactivitytypesget
— List Activity Types
/v1/v2/deprecated/activity/types
GET
Listapievents
— List Api Events
/v1/v2/deprecated/history
GET
Getapievent
— Get Api Event
/v1/v2/deprecated/history/{event-id}
GET
Getrequestbody
— Get Request Body
/v1/v2/deprecated/history/{event-id}/request
GET
Getresponsebody
— Get Response Body
/v1/v2/deprecated/history/{event-id}/response
MCP Tools
list-activity-events
List Activity Events
read-only
idempotent
list-activity-types
List Activity Types
read-only
idempotent
list-api-events
List Api Events
read-only
idempotent
get-api-event
Get Api Event
read-only
idempotent
get-request-body
Get Request Body
read-only
idempotent
get-response-body
Get Response Body
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Permit.io API
description: 'Permit.io API. 6 operations. Lead operation: List Activity Events. Self-contained Naftiko capability covering
one Permit Io business surface.'
tags:
- Permit Io
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
PERMIT_IO_API_KEY: PERMIT_IO_API_KEY
capability:
consumes:
- type: http
namespace: permit-io-general
baseUri: ''
description: Permit.io API business capability. Self-contained, no shared references.
resources:
- name: v2-deprecated-activity
path: /v2/deprecated/activity
operations:
- name: listactivityeventsv2deprecatedactivityget
method: GET
description: List Activity Events
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: actor_id
in: query
type: array
description: Actor ID to search
- name: actor_display_name
in: query
type: string
description: Actor display name to search
- name: actor_type
in: query
type: array
description: Actor type to search (member, user, api_key)
- name: project_id
in: query
type: array
description: Projects to include in search
- name: env_id
in: query
type: array
description: Environments to include in search
- name: timestamp_from
in: query
type: integer
description: Retrieve only events after this timestamp (seconds since epoch)
- name: timestamp_until
in: query
type: integer
description: Retrieve only events before this timestamp (seconds since epoch)
- name: page
in: query
type: integer
description: Page number of the results to fetch, starting at 1.
- name: per_page
in: query
type: integer
description: The number of results per page (max 100).
- name: v2-deprecated-activity-types
path: /v2/deprecated/activity/types
operations:
- name: listactivitytypesv2deprecatedactivitytypesget
method: GET
description: List Activity Types
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
- name: v2-deprecated-history
path: /v2/deprecated/history
operations:
- name: listapievents
method: GET
description: List Api Events
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: method
in: query
type: array
description: HTTP methods to include in search
- name: path
in: query
type: array
description: API paths to include in search
- name: success
in: query
type: boolean
description: Filter by API request success/failure
- name: status_code
in: query
type: array
description: HTTP status codes to include in search
- name: client_ip
in: query
type: array
description: IPs of clients to include in search
- name: actor_type
in: query
type: array
description: Actor type to search (member, user, api_key)
- name: actor_id
in: query
type: array
description: Actor ID to search
- name: actor_display_name
in: query
type: string
description: Actor display name to search
- name: project_id
in: query
type: array
description: Projects to include in search
- name: env_id
in: query
type: array
description: Environments to include in search
- name: timestamp_from
in: query
type: integer
description: Retrieve only events after this timestamp (seconds since epoch)
- name: timestamp_until
in: query
type: integer
description: Retrieve only events before this timestamp (seconds since epoch)
- name: page
in: query
type: integer
description: Page number of the results to fetch, starting at 1.
- name: per_page
in: query
type: integer
description: The number of results per page (max 100).
- name: v2-deprecated-history-event_id
path: /v2/deprecated/history/{event_id}
operations:
- name: getapievent
method: GET
description: Get Api Event
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: event_id
in: path
type: string
required: true
- name: v2-deprecated-history-event_id-request
path: /v2/deprecated/history/{event_id}/request
operations:
- name: getrequestbody
method: GET
description: Get Request Body
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: event_id
in: path
type: string
required: true
- name: v2-deprecated-history-event_id-response
path: /v2/deprecated/history/{event_id}/response
operations:
- name: getresponsebody
method: GET
description: Get Response Body
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: event_id
in: path
type: string
required: true
authentication:
type: bearer
token: '{{env.PERMIT_IO_API_KEY}}'
exposes:
- type: rest
namespace: permit-io-general-rest
port: 8080
description: REST adapter for Permit.io API. One Spectral-compliant resource per consumed operation, prefixed with /v1.
resources:
- path: /v1/v2/deprecated/activity
name: v2-deprecated-activity
description: REST surface for v2-deprecated-activity.
operations:
- method: GET
name: listactivityeventsv2deprecatedactivityget
description: List Activity Events
call: permit-io-general.listactivityeventsv2deprecatedactivityget
with:
actor_id: rest.actor_id
actor_display_name: rest.actor_display_name
actor_type: rest.actor_type
project_id: rest.project_id
env_id: rest.env_id
timestamp_from: rest.timestamp_from
timestamp_until: rest.timestamp_until
page: rest.page
per_page: rest.per_page
outputParameters:
- type: object
mapping: $.
- path: /v1/v2/deprecated/activity/types
name: v2-deprecated-activity-types
description: REST surface for v2-deprecated-activity-types.
operations:
- method: GET
name: listactivitytypesv2deprecatedactivitytypesget
description: List Activity Types
call: permit-io-general.listactivitytypesv2deprecatedactivitytypesget
outputParameters:
- type: object
mapping: $.
- path: /v1/v2/deprecated/history
name: v2-deprecated-history
description: REST surface for v2-deprecated-history.
operations:
- method: GET
name: listapievents
description: List Api Events
call: permit-io-general.listapievents
with:
method: rest.method
path: rest.path
success: rest.success
status_code: rest.status_code
client_ip: rest.client_ip
actor_type: rest.actor_type
actor_id: rest.actor_id
actor_display_name: rest.actor_display_name
project_id: rest.project_id
env_id: rest.env_id
timestamp_from: rest.timestamp_from
timestamp_until: rest.timestamp_until
page: rest.page
per_page: rest.per_page
outputParameters:
- type: object
mapping: $.
- path: /v1/v2/deprecated/history/{event-id}
name: v2-deprecated-history-event-id
description: REST surface for v2-deprecated-history-event_id.
operations:
- method: GET
name: getapievent
description: Get Api Event
call: permit-io-general.getapievent
with:
event_id: rest.event_id
outputParameters:
- type: object
mapping: $.
- path: /v1/v2/deprecated/history/{event-id}/request
name: v2-deprecated-history-event-id-request
description: REST surface for v2-deprecated-history-event_id-request.
operations:
- method: GET
name: getrequestbody
description: Get Request Body
call: permit-io-general.getrequestbody
with:
event_id: rest.event_id
outputParameters:
- type: object
mapping: $.
- path: /v1/v2/deprecated/history/{event-id}/response
name: v2-deprecated-history-event-id-response
description: REST surface for v2-deprecated-history-event_id-response.
operations:
- method: GET
name: getresponsebody
description: Get Response Body
call: permit-io-general.getresponsebody
with:
event_id: rest.event_id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: permit-io-general-mcp
port: 9090
transport: http
description: MCP adapter for Permit.io API. One tool per consumed operation, routed inline through this capability's consumes
block.
tools:
- name: list-activity-events
description: List Activity Events
hints:
readOnly: true
destructive: false
idempotent: true
call: permit-io-general.listactivityeventsv2deprecatedactivityget
with:
actor_id: tools.actor_id
actor_display_name: tools.actor_display_name
actor_type: tools.actor_type
project_id: tools.project_id
env_id: tools.env_id
timestamp_from: tools.timestamp_from
timestamp_until: tools.timestamp_until
page: tools.page
per_page: tools.per_page
outputParameters:
- type: object
mapping: $.
- name: list-activity-types
description: List Activity Types
hints:
readOnly: true
destructive: false
idempotent: true
call: permit-io-general.listactivitytypesv2deprecatedactivitytypesget
outputParameters:
- type: object
mapping: $.
- name: list-api-events
description: List Api Events
hints:
readOnly: true
destructive: false
idempotent: true
call: permit-io-general.listapievents
with:
method: tools.method
path: tools.path
success: tools.success
status_code: tools.status_code
client_ip: tools.client_ip
actor_type: tools.actor_type
actor_id: tools.actor_id
actor_display_name: tools.actor_display_name
project_id: tools.project_id
env_id: tools.env_id
timestamp_from: tools.timestamp_from
timestamp_until: tools.timestamp_until
page: tools.page
per_page: tools.per_page
outputParameters:
- type: object
mapping: $.
- name: get-api-event
description: Get Api Event
hints:
readOnly: true
destructive: false
idempotent: true
call: permit-io-general.getapievent
with:
event_id: tools.event_id
outputParameters:
- type: object
mapping: $.
- name: get-request-body
description: Get Request Body
hints:
readOnly: true
destructive: false
idempotent: true
call: permit-io-general.getrequestbody
with:
event_id: tools.event_id
outputParameters:
- type: object
mapping: $.
- name: get-response-body
description: Get Response Body
hints:
readOnly: true
destructive: false
idempotent: true
call: permit-io-general.getresponsebody
with:
event_id: tools.event_id
outputParameters:
- type: object
mapping: $.