Withdraw data approval

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 /case/{caseId}/oc-approvals/reject

Removes an approval for a data provider, or only for the given items. Returns no body.

Headers

  • organization string Required

    id of the selected (active) organization

Path parameters

  • caseId string Required

    Id of the case

application/json

Body Required

  • dataProviderType string Required

    Type of data provider the approval applies to

    Values are Device, UserEmailDataProvider, CaseFileProvider, FinancialAccountProvider, LegalDocumentProvider, DiscordUserProvider, RedditUserProvider, LinkedInUserProvider, or AiChatProvider.

  • dataProviderId string Required

    Id of the specific data provider document

  • individualIds array[string]

    Ids of individual data items. Empty/omitted means "all" for approve, or "deny all" for reject.

Responses

  • 204

    Approval removed

POST /case/{caseId}/oc-approvals/reject
curl \
 --request POST 'http://api.example.com/case/{caseId}/oc-approvals/reject' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "organization: string" \
 --data '{
  "dataProviderType": "Device",
  "dataProviderId": "string",
  "individualIds": [
    "string"
  ]
}'
Request examples
# Headers
organization: string

# Payload
{
  "dataProviderType": "Device",
  "dataProviderId": "string",
  "individualIds": [
    "string"
  ]
}