API referenceProject API

Project API overview

How a project calls MCID: how to authenticate and every endpoint at a glance, grouped by area.

These endpoints are for the backends and browsers of Micro Club projects. A backend call carries the project's API key in the X-API-Key header, and the login endpoints are public because they start a member's sign-in. A few endpoints act on a member's own session and take that member's session token as a Bearer token instead. What a project can do is limited to the servers and operations an administrator granted it.

The endpoints the admin dashboard uses are in the Admin API.

50 endpoints in 11 groups.

Authentication

Authentication (SSO)

Channels

MethodPathSummary
POST/api/servers/{serverId}/categoriesCreate a Discord category channel
GET/api/servers/{serverId}/channelsList all channels in a server
POST/api/servers/{serverId}/channelsCreate a Discord channel
GET/api/servers/{serverId}/channels/{channelId}Get channel details
POST/api/servers/{serverId}/channels/{channelId}/invitesCreate a channel invite
GET/api/servers/{serverId}/channels/{channelId}/messagesGet recent messages from a channel
POST/api/servers/{serverId}/channels/{channelId}/messagesSend a message to a Discord channel

Identities

MethodPathSummary
GET/api/identitiesList linked accounts for a provider

Inbound Webhooks (Ingest)

MethodPathSummary
POST/api/inbound-webhooks/{id}/draftsOpen a draft
POST/api/inbound-webhooks/{id}/drafts/{draftId}/submitSubmit a draft
PATCH/api/inbound-webhooks/{id}/drafts/{draftId}/{stepKey}Save one step of a draft
POST/api/inbound-webhooks/{id}/filesUpload a file
POST/api/inbound-webhooks/{id}/submitSubmit a payload

Inbound Webhooks (Project)

MethodPathSummary
GET/api/project/inbound-webhooksList the project's own inbound webhooks
POST/api/project/inbound-webhooksCreate an inbound webhook for the project
PATCH/api/project/inbound-webhooks/{id}Update a webhook's name or schema
POST/api/project/inbound-webhooks/{id}/rotate-secretRotate the signing secret
GET/api/project/inbound-webhooks/{id}/submissionsList a webhook's submissions after a cursor
GET/api/project/inbound-webhooks/{id}/submissions/{submissionId}Get one of a webhook's submissions

Members

MethodPathSummary
GET/api/servers/{serverId}/membersSearch members
GET/api/servers/{serverId}/members/{discordId}Get a single member by Discord ID
GET/api/servers/{serverId}/members/{discordId}/permissionsGet all effective permissions of a member in a server

Permissions

MethodPathSummary
POST/api/permissions/checkCheck a single permission
POST/api/permissions/check-batchCheck multiple permissions (batch)
GET/api/permissions/{serverId}/{discordId}Get full resolved permissions for a member

Roles

MethodPathSummary
PUT/api/servers/{serverId}/members/{discordId}/roles/{roleId}Grant a project-created role to a member
DELETE/api/servers/{serverId}/members/{discordId}/roles/{roleId}Remove a project-created role from a member
POST/api/servers/{serverId}/rolesCreate a Discord role for an event or project

Scheduled Events

MethodPathSummary
POST/api/servers/{serverId}/scheduled-eventsCreate a Discord scheduled event
PATCH/api/servers/{serverId}/scheduled-events/{eventId}Update a Discord scheduled event
DELETE/api/servers/{serverId}/scheduled-events/{eventId}Delete a Discord scheduled event

Webhooks

MethodPathSummary
GET/api/projects/{projectId}/webhooksList webhooks for a project
POST/api/servers/{serverId}/channels/{channelId}/webhooksCreate a webhook for a channel
GET/api/webhooks/{webhookId}Get webhook details
PATCH/api/webhooks/{webhookId}Update webhook settings
DELETE/api/webhooks/{webhookId}Delete a webhook
POST/api/webhooks/{webhookId}/executeExecute a webhook

Source: apps/api/openapi.json.

On this page