Home / Servers / Stripe API / post_files

Create a file

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Create a file To upload a file to Stripe, you need to send a request of type multipart/form-data . Include the file you want to upload in the request, and the parameters for creating a file. All of Stripe’s… [POST /v1/files]

Name on the gateway: stripe_api__post_files · may change things.

Parameters

NameTypeDescription
expandarraySpecifies which fields in the response should be expanded.
file requiredstringA file to upload. Make sure that the specifications follow RFC 2388, which…
file_link_dataobjectOptional parameters that automatically create a file link for the newly…
purpose requiredaccount_requirement | additional_verification | business_icon | business_logo | customer_signature | dispute_evidence | identity_document | issuing_regulatory_reporting | pci_document | platform_terms_of_service | tax_document_user_upload | terminal_android_apk | terminal_reader_splashscreen | terminal_wifi_certificate | terminal_wifi_private_keyThe purpose of the uploaded file.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_files",
  "arguments": {
    "file": "…",
    "purpose": "…"
  }
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a file tool with expand set to ….

More from Stripe API