Reject an organization invitation (internal)

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
POST /organization/{orgId}/invitation/reject

Rejects an invitation using the emailed token and email, with an optional reason, and notifies the organization. No auth. Returns 404 for an unknown organization or invitation, and 400 when the token has expired or the invitation is no longer pending. The response has no data.

Path parameters

  • orgId string Required

    Id of the organization

application/json

Body Required

Reject invitation body

  • token string Required
  • email string Required
  • reason string

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • statusCode number Required
    • timestamp string(date-time) Required
POST /organization/{orgId}/invitation/reject
curl \
 --request POST 'http://api.example.com/organization/{orgId}/invitation/reject' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "token": "string",
  "email": "string",
  "reason": "string"
}'
Request examples
{
  "token": "string",
  "email": "string",
  "reason": "string"
}
Response examples (200)
{
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}