Permit.io Members API
The Members API from Permit.io, for members.
The Members API from Permit.io, for members.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/permitio:permitio-members-api"
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.
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: 3.2.0
info:
title: Permit.io Members API
description: Authorization as a service
version: 2.0.0
tags:
- name: Members
paths:
/v2/members/me:
get:
tags:
- Members
summary: Get the authenticated account member
description: Gets the authenticated account member's details.
operationId: get_authenticated_member
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberReadWithGrants'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/v2/members:
get:
tags:
- Members
summary: List Organization Members
description: 'Lists all the account members that current active account has access to, optionally filtering by project or environment.
The active account/organization is determined by the API Key used or by the authenticated session id.'
operationId: list_organization_members
security:
- HTTPBearer: []
parameters:
- name: project_id
in: query
required: false
schema:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Project Id
- name: env_id
in: query
required: false
schema:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Env 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/OrgMemberReadWithGrants'
title: Response List Organization Members V2 Members Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Members
summary: Invite new members
description: 'Create an organization member if needed, and grant it permissions.
The member can be specified either by ID (for an existing member), or by email (for either an existing member or a new one).
For a new member, an invite will be sent.'
operationId: create_organization_members
security:
- HTTPBearer: []
parameters:
- name: inviter_name
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Inviter Name
- name: inviter_email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Inviter Email
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberCreate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberReadWithGrants'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Members
summary: Remove permission
description: Remove permissions from a member. If the last permissions a member has are removed, the member is also deleted.
operationId: delete_organization_permissions
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberRemovePermissions'
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/members/{member_id}:
get:
tags:
- Members
summary: Get Organization Member
description: 'Gets a single account member by its id or email address. matching the given member,
if no such member exists under the current active account (organization), returns 404.'
operationId: get_organization_member
security:
- HTTPBearer: []
parameters:
- name: member_id
in: path
required: true
schema:
type: string
description: Either the unique id (UUID) of the account member, or the email address of the account member.
title: Member Id
description: Either the unique id (UUID) of the account member, or the email address of the account member.
example: 42f0e113-219b-4bb9-ba90-e2c904761be2
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberReadWithGrants'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Members
summary: Edit members
description: Updates an account member's settings.
operationId: update_organization_member
security:
- HTTPBearer: []
parameters:
- name: member_id
in: path
required: true
schema:
type: string
description: Either the unique id (UUID) of the account member, or the email address of the account member.
title: Member Id
description: Either the unique id (UUID) of the account member, or the email address of the account member.
example: 42f0e113-219b-4bb9-ba90-e2c904761be2
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrgMemberReadWithGrants'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Members
summary: Remove member
description: 'Deletes an account member matching the given id or email address.
The member will be removed from the active account in permit.io.
If the member is the only member in its account (organization), returns 400 (bad request),
due to nobody remains with access to the account, meaning deletion of the entire account (org).
To completely remove an account, call DELETE `/orgs/{org}`.'
operationId: delete_organization_member
security:
- HTTPBearer: []
parameters:
- name: member_id
in: path
required: true
schema:
type: string
description: Either the unique id (UUID) of the account member, or the email address of the account member.
title: Member Id
description: Either the unique id (UUID) of the account member, or the email address of the account member.
example: 42f0e113-219b-4bb9-ba90-e2c904761be2
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
OrgMemberCreate:
properties:
id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Id
description: Unique id of the account member
email:
anyOf:
- type: string
format: email
- type: 'null'
title: Email
description: Email of the user controlling this account
permissions:
items:
$ref: '#/components/schemas/Permission'
type: array
title: Permissions
additionalProperties: false
type: object
required:
- permissions
title: OrgMemberCreate
Permission:
properties:
organization_id:
type: string
format: uuid
title: Organization Id
project_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Project Id
environment_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Environment Id
object_type:
$ref: '#/components/schemas/MemberAccessObj'
access_level:
$ref: '#/components/schemas/MemberAccessLevel'
organization_key:
anyOf:
- type: string
- type: 'null'
title: Organization Key
project_key:
anyOf:
- type: string
- type: 'null'
title: Project Key
environment_key:
anyOf:
- type: string
- type: 'null'
title: Environment Key
organization_name:
anyOf:
- type: string
- type: 'null'
title: Organization Name
project_name:
anyOf:
- type: string
- type: 'null'
title: Project Name
environment_name:
anyOf:
- type: string
- type: 'null'
title: Environment Name
additionalProperties: false
type: object
required:
- organization_id
- object_type
- access_level
title: Permission
OrgMemberUpdate:
properties:
settings:
additionalProperties: true
type: object
title: Settings
description: Custom permit.io dashboard settings, such as preferred theme, etc.
onboarding_step:
anyOf:
- $ref: '#/components/schemas/OnboardingStep'
- type: 'null'
description: updates the onboarding step (optional)
additionalProperties: false
type: object
title: OrgMemberUpdate
OnboardingStep:
type: string
enum:
- create_organization
- create_project
- create_resource
- create_actions
- assign_permissions
- assign_user_roles
- connect_sdk
- done
title: OnboardingStep
OrgMemberReadWithGrants:
properties:
id:
type: string
format: uuid
title: Id
description: Unique id of the account member
email:
type: string
format: email
title: Email
description: Email of the user controlling this account
email_verified:
type: boolean
title: Email Verified
description: Whether this email address is verified or not. For social providers like 'Login with Google' this is done automatically, otherwise we will send the user a verification link in email.
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Name of this user
given_name:
anyOf:
- type: string
- type: 'null'
title: Given Name
description: First name of the user
family_name:
anyOf:
- type: string
- type: 'null'
title: Family Name
description: Last name of the user
picture:
anyOf:
- type: string
- type: 'null'
title: Picture
description: URL to picture, photo, or avatar of the user that controls this account.
is_superuser:
type: boolean
title: Is Superuser
description: Whether or not this user has special access to permit.io organizations
is_onboarding:
type: boolean
title: Is Onboarding
description: Whether or not this user is currently onboarding, needs to be replaced by a user journey object
onboarding_step:
$ref: '#/components/schemas/OnboardingStep'
description: the step the user is currently going through in onboarding
created_at:
type: string
format: date-time
title: Created At
description: Date and time when the account member was created (ISO_8601 format).
last_login:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Login
description: Last date and time this user logged in (ISO_8601 format).
last_ip:
type: string
title: Last Ip
description: Last IP address from which this user logged in.
default: 0.0.0.0
logins_count:
type: integer
title: Logins Count
description: Total number of logins this user has performed.
default: 0
identities:
items:
$ref: '#/components/schemas/IdentityRead'
type: array
title: Identities
invite:
anyOf:
- $ref: '#/components/schemas/InviteRead'
- type: 'null'
settings:
additionalProperties: true
type: object
title: Settings
description: Custom permit.io dashboard settings, such as preferred theme, etc.
grants:
items:
$ref: '#/components/schemas/Permission'
type: array
title: Grants
additionalProperties: false
type: object
required:
- id
- email
- email_verified
- is_superuser
- is_onboarding
- onboarding_step
- created_at
- identities
- settings
- grants
title: OrgMemberReadWithGrants
example:
created_at: '2019-08-20T14:15:22Z'
email: janedoe@permituser.com
email_verified: true
family_name: Doe
given_name: Jane
grants:
- access_level: admin
object_type: org
organization_id: 7c60d51f-b44e-4682-87d6-449835ea4de6
id: 497f6eca-6276-4993-bfeb-53cbbbba6f08
identities:
- email: Jane@permituser.com
email_verified: true
provider: google-oauth2
sub: '000000000000000000001'
user_id: google-oauth2|000000000000000000001
user_info:
address:
country: us
birthdate: '1972-03-31'
email: janedoe@permituser.com
email_verified: true
family_name: Doe
gender: female
given_name: Jane
locale: en-US
middle_name: Josephine
name: Jane Josephine Doe
nickname: JJ
phone_number: +1 (111) 222-3434
phone_number_verified: false
picture: http://permituser.com/janedoe/me.jpg
preferred_username: j.doe
profile: http://permituser.com/janedoe
sub: '000000000000000000001'
updated_at: '1556845729'
website: http://permituser.com
zoneinfo: America/Los_Angeles
invite:
created_at: '2019-08-24T14:15:22Z'
email: Jane@permituser.com
failed_reason: ''
id: 497f6eca-6276-4993-bfeb-53cbbbba6f08
invite_code: 40ef0e48-a11f-4963-a229-e396c9eeefff
organization_id: 7c60d51f-b44e-4682-87d6-449835ea4de6
role: admin
status: pending
is_onboarding: true
is_superuser: false
last_ip: 1.2.3.4
last_login: '2019-08-24T14:15:22Z'
logins_count: 2
name: Jane Josephine Doe
onboarding_step: done
picture: http://permituser.com/janedoe/me.jpg
settings:
another-option: another-value
option: value
InviteRead:
properties:
member_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Member Id
description: Unique id of the invite
email:
type: string
format: email
title: Email
description: The invited member's email address
role:
$ref: '#/components/schemas/MemberAccessLevel'
description: The role the member will be assigned with
default: admin
id:
type: string
format: uuid
title: Id
description: Unique id of the invite
organization_id:
type: string
format: uuid
title: Organization Id
description: Unique id of the organization that the invite belongs to.
invite_code:
type: string
format: uuid
title: Invite Code
description: The invite code that is sent to the member's email
created_at:
type: string
format: date-time
title: Created At
description: Date and time when the invite was created (ISO_8601 format).
status:
$ref: '#/components/schemas/InviteStatus'
description: The status of the invite (pending, failed, etc)
failed_reason:
anyOf:
- type: string
- type: 'null'
title: Failed Reason
description: if failed, the reason the invitation failed
additionalProperties: false
type: object
required:
- email
- id
- organization_id
- invite_code
- created_at
- status
title: InviteRead
example:
created_at: '2019-08-24T14:15:22Z'
email: jane@coolcompany.com
failed_reason: ''
id: 497f6eca-6276-4993-bfeb-53cbbbba6f08
invite_code: 40ef0e48-a11f-4963-a229-e396c9eeefff
organization_id: 7c60d51f-b44e-4682-87d6-449835ea4de6
role: admin
status: pending
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
MemberAccessObj:
type: string
enum:
- org
- project
- env
title: MemberAccessObj
MemberAccessLevel:
type: string
enum:
- admin
- write
- read
- no_access
title: MemberAccessLevel
OrgMemberRemovePermissions:
properties:
id:
type: string
format: uuid
title: Id
description: Unique id of the account member
permissions:
items:
$ref: '#/components/schemas/Permission'
type: array
title: Permissions
additionalProperties: false
type: object
required:
- id
- permissions
title: OrgMemberRemovePermissions
InviteStatus:
type: string
enum:
- pending
- accepted
- failed
- canceled
title: InviteStatus
IdentityRead:
properties:
user_id:
type: string
title: User Id
description: Unique User Id of this identity in the identity provider (including the provider type)
provider:
type: string
title: Provider
description: The identity provider type this identity came from
sub:
type: string
title: Sub
description: Unique User Id of this identity in the identity provider (NOT including the provider type)
email:
type: string
format: email
title: Email
description: Email connected to this account identity
email_verified:
type: boolean
title: Email Verified
description: Whether this email address connected to this account identity is verified or not. For social providers like 'Login with Google' this is done automatically, otherwise we will send the user a verification link in email.
auth0_info:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Auth0 Info
description: Raw user info json coming from our identity provider and matching a specific account identity
additionalProperties: false
type: object
required:
- user_id
- provider
- sub
- email
- email_verified
- auth0_info
title: IdentityRead
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