Start adding a card

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 /billing/setup-session

Creates a Stripe Checkout session in setup mode that puts a card on file without charging it, and returns its url; Stripe sends the user back to successUrl or cancelUrl. Requires an org admin, owner or billing role. Returns 403 when case billing is not enabled for the organization, and 409 when its billing profile has no Stripe customer yet.

Headers

  • organization string Required

    id of the selected (active) organization

application/json

Body Required

  • successUrl string Required
  • cancelUrl string Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attribute Show data attribute object
      • url string Required
    • statusCode number Required
    • timestamp string(date-time) Required
POST /billing/setup-session
curl \
 --request POST 'http://api.example.com/billing/setup-session' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "organization: string" \
 --data '{
  "successUrl": "string",
  "cancelUrl": "string"
}'
Request examples
# Headers
organization: string

# Payload
{
  "successUrl": "string",
  "cancelUrl": "string"
}
Response examples (200)
{
  "data": {
    "url": "https://checkout.stripe.com/c/pay/cs_test_a1Example"
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}