Home / Servers / Stripe API / post_customer_sessions

Create a Customer Session

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

Create a Customer Session Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. [POST /v1/customer_sessions]

Name on the gateway: stripe_api__post_customer_sessions · may change things.

Parameters

NameTypeDescription
components requiredobjectConfiguration for each component. At least 1 component must be enabled.
customerstringThe ID of an existing customer for which to create the Customer Session.
customer_accountstringThe ID of an existing Account for which to create the Customer Session.
expandarraySpecifies which fields in the response should be expanded.

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_customer_sessions",
  "arguments": {
    "components": "…"
  }
}

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 customer session tool with components set to ….

More from Stripe API