Operations 3
POST
/api/v1/organizations/{organizationId}/invitations/{invitationId}/cancel
Cancel a pending invitation
#
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/mencoro-com:mencoro-com-invitations-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: Mencoro Invitations API
description: 'Public API for Mencoro customers. Authenticate with an API key: `Authorization: Bearer mencoro_sk_...`.'
termsOfService: https://mencoro.com/legal/
contact:
name: Mencoro Support
url: https://mencoro.com/contact/
email: support@mencoro.com
license:
name: Proprietary
url: https://mencoro.com/legal/
version: 1.0.0
servers:
- url: https://api.mencoro.com
description: Production
security:
- ApiKey: []
tags:
- name: Invitations
description: Invitations
paths:
/api/v1/organizations/{organizationId}/invitations/{invitationId}/cancel:
post:
tags:
- Invitations
summary: Cancel a pending invitation
description: 'Minimum role: owner. The link already emailed to the invitee stops working. Only a pending invitation can be cancelled; one that was accepted, rejected or has expired is refused.'
operationId: cancelInvitation
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: invitationId
in: path
required: true
schema:
type: string
format: uuid
- name: X-Mencoro-Confirmation
in: header
required: true
schema:
type: string
- name: Idempotency-Key
in: header
required: true
schema:
type: string
responses:
'200':
description: The invitation in its new state
content:
application/json:
schema:
$ref: '#/components/schemas/InvitationResource'
'401':
description: Missing or invalid API key
'403':
description: The key lacks the organization:manage capability
'404':
description: No organization or invitation the caller can access under these ids
'409':
description: The confirmation is invalid, expired, already used, or its effects changed; or the invitation is not pending
'428':
description: No confirmation was sent; preview the operation first
/api/v1/organizations/{organizationId}/invitations:
get:
tags:
- Invitations
summary: List an organization's invitations
description: 'Minimum role: owner. Returns the invitations issued for this organization, in every state. The invitation token is never returned. `status` matches the stored state, so an invitation that has passed its `expiresAt` is still listed as pending until it is transitioned; compare `expiresAt` to decide. Rows are ordered by the chosen sort field, and invitations sharing the same value keep no guaranteed relative order across pages.Send `Accept: text/csv` to receive the same page as a CSV download instead of JSON: same filters, same authorization, same page window and the same maximum of 100 rows — it is this page in another format, not a bulk export, so a whole collection is still read by paging. The CSV carries no `total`, because a table whose every row is a record has nowhere to put one; read it from the JSON representation of the same request. Cells beginning with `=`, `+`, `-` or `@` are prefixed with an apostrophe so a spreadsheet treats them as text rather than running them as formulas.'
operationId: listInvitations
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: limit
in: query
schema:
type: integer
default: 20
maximum: 100
minimum: 1
- name: offset
in: query
schema:
type: integer
default: 0
minimum: 0
- name: search
in: query
description: Matches part of the invited email address.
schema:
type: string
maxLength: 100
- name: status
in: query
description: Absent means every state.
schema:
type: string
enum:
- pending
- accepted
- rejected
- expired
- cancelled
- name: sortBy
in: query
schema:
type: string
default: createdAt
enum:
- createdAt
- expiresAt
- name: sortOrder
in: query
schema:
type: string
default: desc
enum:
- asc
- desc
responses:
'200':
description: The organization's invitations
content:
application/json:
schema:
properties:
items:
type: array
items:
$ref: '#/components/schemas/InvitationResource'
total:
type: integer
type: object
text/csv:
schema:
type: string
example: 'id,name
b3f1...,Acme
'
'400':
description: A parameter was rejected; the details name the field
'401':
description: Missing or invalid API key
'403':
description: The key lacks the read capability
'404':
description: No organization the caller owns under this id
post:
tags:
- Invitations
summary: Invite somebody to an organization
description: 'Minimum role: owner. Sends an invitation email that expires after 14 days. If the address already belongs to an active member the call succeeds and creates nothing - answered as 200 with created=false rather than 201, so a client can tell the two apart. Preview it first; the preview says which of the two will happen.'
operationId: createInvitation
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: X-Mencoro-Confirmation
in: header
required: true
schema:
type: string
- name: Idempotency-Key
in: header
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
properties:
email:
type: string
format: email
role:
type: string
default: viewer
enum:
- owner
- manager
- viewer
type: object
responses:
'200':
description: 'Nothing was created because the address already belongs to an active member. Not an error: the end state the caller asked for already holds.'
content:
application/json:
schema:
properties:
created:
description: Always false on a 200.
type: boolean
reason:
description: Why nothing was created.
type: string
enum:
- address_is_already_a_member
email:
description: The address as it was normalised.
type: string
format: email
type: object
'201':
description: The invitation that was created. `created` is true; branch on it rather than on the status code, so one code path handles both answers.
content:
application/json:
schema:
allOf:
- properties:
created:
description: Always true on a 201.
type: boolean
type: object
- $ref: '#/components/schemas/InvitationResource'
'401':
description: Missing or invalid API key
'403':
description: The key lacks the organization:manage capability
'404':
description: No organization the caller can access under this id
'409':
description: The confirmation is invalid, expired, already used, or its effects changed; or a pending invitation already exists for this address
'428':
description: No confirmation was sent; preview the operation first
components:
schemas:
InvitationResource:
description: An invitation to join an organization
required:
- id
- email
- role
- state
- createdAt
- expiresAt
properties:
id:
type: string
format: uuid
email:
type: string
format: email
role:
type: string
enum:
- owner
- manager
- viewer
state:
type: string
enum:
- pending
- accepted
- rejected
- expired
- cancelled
createdAt:
type: string
format: date-time
expiresAt:
type: string
format: date-time
acceptedAt:
type:
- string
- 'null'
format: date-time
type: object
securitySchemes:
ApiKey:
type: http
description: 'A Mencoro API key, created from the app under API keys in the user menu. The plaintext key is shown once, at creation, and never again. A key only ever RESTRICTS: it never grants more than its owner''s live membership and role already allow, and every request re-checks those.'
scheme: bearer