Operations 5
POST
/api/v1/organizations/{organizationId}/members/{memberId}/reactivate
Reactivate a suspended member
#
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-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: Mencoro Members 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: Members
description: Members
paths:
/api/v1/organizations/{organizationId}/members/{memberId}:
get:
tags:
- Members
summary: Get one organization membership
description: 'Minimum role: owner — the same floor the members listing enforces, because a caller who can page the roster has already seen this record. Returns the facts of one membership: its role, whether it is active or suspended, and when it was joined. It does NOT describe the person behind it: no name, no email address, no phone number and no profile image, so a membership id can never be turned into a contact lookup. The membership is read from PostgreSQL, the same row at the same freshness the listing publishes. A membership belonging to another organization answers 404, exactly as an unknown or malformed id does, so the API never confirms that an inaccessible membership exists; the one 403 is a key without the read capability. The response carries no organizationId — it is the one in the path — and no creation timestamp; joinedAt is the membership fact. No query parameters are accepted.'
operationId: getMember
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: memberId
in: path
description: The membership id, not the user id. Must belong to the organization in the path.
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The membership
content:
application/json:
schema:
$ref: '#/components/schemas/MemberResource'
'401':
description: Missing or invalid API key
'403':
description: The key lacks the read capability
'404':
description: No organization the caller owns, or no membership of it, under these ids
patch:
tags:
- Members
summary: Change a member role
description: 'Minimum role: owner. The role of a suspended member cannot be changed, and the last active owner cannot be demoted. Preview it first: the confirmation is bound to the number of active owners, so another owner being suspended in between invalidates it rather than stranding the organization.'
operationId: changeMemberRole
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: memberId
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:
role:
type: string
enum:
- owner
- manager
- viewer
type: object
responses:
'200':
description: The membership in its new state
content:
application/json:
schema:
$ref: '#/components/schemas/MemberResource'
'401':
description: Missing or invalid API key
'403':
description: The key lacks the organization:manage capability
'404':
description: No organization or membership the caller can access under these ids
'409':
description: The confirmation is invalid, expired, already used, or its effects changed; the member is suspended; or this is the last active owner
'428':
description: No confirmation was sent; preview the operation first
/api/v1/organizations/{organizationId}/members:
get:
tags:
- Members
summary: List an organization's members
description: 'Minimum role: owner. The application exposes this roster twice and the two disagree — its member screen shows it to any viewer, while its non-BFF endpoint requires an owner — so the published API takes the stricter of the two and requires an owner. A membership describes the membership, not the person: names and email addresses are never returned here, and there is no search parameter, because both would turn the roster into a contact export. Omitting "status" returns active and suspended memberships alike. Sorting by "role" is alphabetical on the role name, not by seniority.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: listMembers
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: status
in: query
description: Absent means both states.
schema:
type: string
enum:
- active
- suspended
- name: sortBy
in: query
schema:
type: string
default: joinedAt
enum:
- joinedAt
- role
- name: sortOrder
in: query
schema:
type: string
default: desc
enum:
- asc
- desc
responses:
'200':
description: The organization's memberships
content:
application/json:
schema:
properties:
items:
type: array
items:
$ref: '#/components/schemas/MemberResource'
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. A limit above 100 is refused, not clamped
'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
/api/v1/organizations/{organizationId}/members/{memberId}/reactivate:
post:
tags:
- Members
summary: Reactivate a suspended member
description: 'Minimum role: owner. The member keeps the role they had and regains access on their very next request. A member who is already active cannot be reactivated.'
operationId: reactivateMember
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: memberId
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 membership in its new state
content:
application/json:
schema:
$ref: '#/components/schemas/MemberResource'
'401':
description: Missing or invalid API key
'403':
description: The key lacks the organization:manage capability
'404':
description: No organization or membership the caller can access under these ids
'409':
description: The confirmation is invalid, expired, already used, or its effects changed; or the member is already active
'428':
description: No confirmation was sent; preview the operation first
/api/v1/organizations/{organizationId}/members/{memberId}/suspend:
post:
tags:
- Members
summary: Suspend a member
description: 'Minimum role: owner. The member loses access on their very next request, including through any API key they own that is scoped to this organization. The last active owner cannot be suspended.'
operationId: suspendMember
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: memberId
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 membership in its new state
content:
application/json:
schema:
$ref: '#/components/schemas/MemberResource'
'401':
description: Missing or invalid API key
'403':
description: The key lacks the organization:manage capability
'404':
description: No organization or membership the caller can access under these ids
'409':
description: The confirmation is invalid, expired, already used, or its effects changed; the member is already suspended; or this is the last active owner
'428':
description: No confirmation was sent; preview the operation first
components:
schemas:
MemberResource:
description: A membership of an organization
required:
- id
- userId
- role
- state
- isActive
- joinedAt
properties:
id:
type: string
format: uuid
userId:
description: The user this membership belongs to
type: string
format: uuid
role:
type: string
enum:
- owner
- manager
- viewer
state:
type: string
enum:
- active
- suspended
isActive:
type: boolean
joinedAt:
type: string
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