Integrate with MCIDInbound webhooks

Inbound webhooks: reading submissions

Who can read what a webhook received, the list and detail endpoints, filters, paging and why a refusal is a 404.

Your project sends data to an inbound webhook, and members read it. Access is decided by Discord roles, not by your project's key. This page covers who can read, the endpoints, filtering and paging, and what a 404 means.

Who can read

Each webhook has a list of reader roles, set by an admin when the webhook is created and editable later. A member can read a webhook's submissions when they hold at least one of those roles.

  • A system admin does not bypass this. An admin who needs to read a webhook gives it a role they hold.
  • When the webhook allows role inheritance, a member whose role on the main server inherits a reader role may read too. See Roles, permissions and inheritance.
  • When the webhook is created without naming roles, the default reader roles from the admin settings apply. A webhook always has at least one reader.
  • The member's roles are read fresh on every request. The list of reader roles is cached for 5 minutes, and an admin changing it clears that cache.

The routes below need a member's session token. Your project's API key reads its own webhook through a separate cursor endpoint, see Pull new submissions with a project key. The member routes take a session token, sent as Authorization: Bearer <token>. Any valid session of the member works: the admin panel's session, or one your project received from the login flow. Because of that, a project backend can show a member the submissions they may read, on their behalf, using the token they signed in with.

List the webhooks a member may read

curl -s "$MCID_URL/inbound-webhooks" \
  -H "Authorization: Bearer $SESSION_TOKEN"

The answer is an array of the webhooks, each with its id, name, slug, projectId and schema. A member who holds no reader role gets an empty array, [], and the list never contains a webhook the member cannot read.

List submissions

curl -s "$MCID_URL/inbound-webhooks/$WEBHOOK_ID/submissions?limit=2" \
  -H "Authorization: Bearer $SESSION_TOKEN"
{
  "submissions": [
    {
      "id": "7c82bc9e-59b6-48f8-bcad-169938392cb0",
      "payload": {
        "identity": { "email": "amina@usthb.dz", "status": "student", "firstname": "Amina" },
        "background": { "university": "USTHB" }
      },
      "receivedAt": "2026-10-05T19:02:19.515Z",
      "origin": null
    }
  ],
  "total": 1,
  "limit": 2,
  "offset": 0
}

Newest submissions come first. payload is what MCID stored after validation, so it includes defaults and leaves out fields whose condition did not apply. Object keys are not kept in the order they were sent. origin is the request's Origin header, when there was one.

Filters and paging

Query parameterMeaning
limitEntries per page. Default 50, at least 1, at most 200.
offsetEntries to skip. Default 0.
dateFromOnly submissions received at or after this ISO 8601 time.
dateToOnly submissions received at or before this ISO 8601 time.

A date without a time means midnight UTC, so dateTo=2026-04-01 excludes everything received on 1 April. Use 2026-04-02 or a full timestamp to include it. total counts all submissions that match the filters, not just the page, so a client can compute the number of pages from total and limit.

curl -s "$MCID_URL/inbound-webhooks/$WEBHOOK_ID/submissions?limit=50&offset=50&dateFrom=2026-03-01T00:00:00Z" \
  -H "Authorization: Bearer $SESSION_TOKEN"

A limit over 200 is a 400, as is a date that cannot be parsed:

{ "message": ["limit must not be greater than 200"], "error": "Bad Request", "statusCode": 400 }

Get one submission

curl -s "$MCID_URL/inbound-webhooks/$WEBHOOK_ID/submissions/$SUBMISSION_ID" \
  -H "Authorization: Bearer $SESSION_TOKEN"

The detail adds where the request came from:

{
  "id": "7c82bc9e-59b6-48f8-bcad-169938392cb0",
  "payload": {
    "identity": { "email": "amina@usthb.dz", "status": "student", "firstname": "Amina" },
    "background": { "university": "USTHB" }
  },
  "receivedAt": "2026-10-05T19:02:19.515Z",
  "origin": null,
  "ipAddress": "::1",
  "userAgent": "node"
}

Pull new submissions with a project key

A project backend that imports registrations on a schedule uses its API key, not a member session:

curl -s "$MCID_URL/project/inbound-webhooks/$WEBHOOK_ID/submissions?serverId=$SERVER_ID&limit=100&cursor=$CURSOR" \
  -H "X-API-Key: $MCID_API_KEY"
{
  "items": [
    { "id": "7c82bc9e-59b6-48f8-bcad-169938392cb0", "payload": { "name": "Sara B." }, "receivedAt": "2026-10-05T19:02:19.515Z", "origin": null }
  ],
  "nextCursor": "eyJyIjoiMjAyNi0xMC0wNSAxOTowMjoxOS41MTU0MjErMDAiLCJpIjoiN2M4MmJjOWUtLi4uIn0"
}
  • serverId is required: the project needs the read_inbound_submissions scope with READ access on that server, otherwise the answer is 403.
  • Oldest submissions come first, and each item has the same fields as the member list.
  • nextCursor is opaque. Store it and send it back as cursor. It is null on the last page. Keep the old cursor when a pull fails and retry.
  • The cursor is built from receivedAt and the submission id, so submissions that arrive between two pages are neither skipped nor repeated. A project read withholds submissions received in the last 10 seconds, so one whose transaction commits late is never passed over; the next pull returns it.
  • limit (default 50, at most 200), dateFrom and dateTo work as above. A malformed cursor is a 400.
  • The webhook must belong to the key's project, otherwise the answer is 404. The project rate limit applies, and every read is recorded in the audit log.

Read one submission with a project key

To re-read a single submission, for example to verify or repair it, ask for it by id:

curl -s "$MCID_URL/project/inbound-webhooks/$WEBHOOK_ID/submissions/$SUBMISSION_ID?serverId=$SERVER_ID" \
  -H "X-API-Key: $MCID_API_KEY"

The answer is one item with the same fields as a list item: id, payload, receivedAt and origin. The scope, serverId and rate limit rules are the same as for the list. A submission id that is not a UUID is a 400. The answer is 404 when the webhook belongs to another project, or the submission does not exist on it, and the two cases look the same. Every read is recorded in the audit log.

What an error means

StatusmessageMeaning
401Session token is requiredNo Bearer token. A project API key is not accepted here.
401Invalid or expired sessionThe token is unknown, expired or logged out.
404Inbound webhook not foundThere is no such webhook, or the member holds none of its reader roles.
404Submission not foundThe webhook is readable but has no such submission.

The 404 is deliberate. A 403 would confirm that the webhook exists and the member merely lacks permission, which would let anyone list the organisation's forms by guessing IDs. So "no access" and "does not exist" look the same. When a read is refused, MCID also records the attempt in its audit log, and every successful read is logged, so repeated refusals on one webhook stand out.

In the admin panel

Admins and readers use the admin panel to browse submissions, with the same role rule. The panel lists the webhooks the signed-in member may read, shows each one's submissions, and can export them as a CSV file.

For the exact fields of each endpoint, see Inbound webhooks (Read).

Source: apps/api/src/modules/inbound-webhooks/inbound-webhook-read.controller.ts, apps/api/src/modules/inbound-webhooks/inbound-webhook-project.controller.ts, apps/api/src/modules/inbound-webhooks/guards/inbound-webhook-read.guard.ts, apps/api/src/modules/inbound-webhooks/dto/list-submissions.dto.ts, apps/api/src/modules/inbound-webhooks/inbound-webhooks.repository.ts.

On this page