Permit.io Invites API
The Invites API from Permit.io, for invites.
The Invites API from Permit.io, for invites.
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-invites-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 Invites API
description: Authorization as a service
version: 2.0.0
tags:
- name: Invites
paths:
/v2/orgs/{org_id}/invites:
get:
tags:
- Invites
summary: List Organization Invites
description: Lists pending organization invites
operationId: list_organization_invites
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
- 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/InviteRead'
title: Response List Organization Invites V2 Orgs Org Id Invites Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Invites
summary: Invite Members To Organization
description: Invite new members into the organization.
operationId: invite_members_to_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
- 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:
type: array
items:
$ref: '#/components/schemas/InviteCreate'
title: Invites
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MultiInviteResult'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/orgs/{org_id}/invites/{invite_id}:
delete:
tags:
- Invites
summary: Cancel Invite
description: Cancels an invite that was sent to a new member.
operationId: cancel_invite
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
- name: invite_id
in: path
required: true
schema:
type: string
format: uuid
description: Id of the invite to cancel
title: Invite Id
description: Id of the invite to cancel
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
MultiInviteResult:
properties:
success:
items:
$ref: '#/components/schemas/InviteRead'
type: array
title: Success
failed:
items:
$ref: '#/components/schemas/FailedInvite'
type: array
title: Failed
description: invites that were not even attempted, and the reason why
default: []
additionalProperties: false
type: object
required:
- success
title: MultiInviteResult
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
MemberAccessLevel:
type: string
enum:
- admin
- write
- read
- no_access
title: MemberAccessLevel
InviteStatus:
type: string
enum:
- pending
- accepted
- failed
- canceled
title: InviteStatus
InviteCreate:
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
additionalProperties: false
type: object
required:
- email
title: InviteCreate
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
FailedInvite:
properties:
email:
type: string
title: Email
reason:
type: string
title: Reason
additionalProperties: false
type: object
required:
- email
- reason
title: FailedInvite
securitySchemes:
HTTPBearer:
type: http
description: 'Authorization header, we support the bearer authentication scheme (see: RFC 6750)'
scheme: bearer
bearerFormat: JWT