Skip to main content
Return the current organization’s Stripe publishable-key configuration for browser payment setup
Audience: application and coding agent.

Response shape

  • publishableKey is the non-secret Stripe publishable key for the organization’s current billing mode.
  • publishableKey: null means browser payments are not configured for that mode; render a payments-unavailable state instead of calling Stripe Elements.
  • livemode tells the browser whether the key is for live or test Stripe mode.

Canonical metadata

  • requestId

Example request

curl -X GET \
  -H "x-api-key: $SECAPI_API_KEY" \
  -H "secapi-version: 2026-03-19" \
  "https://api.secapi.ai/v1/billing/stripe-config"

Example response

{
  "object": "stripe_config",
  "publishableKey": "pk_live_example",
  "livemode": true,
  "requestId": "req_2ZK8Q1W9F4M6P7R3"
}

Give this prompt to your agent

Failure posture

  • treat non-2xx responses as contract-aware failures, not free-form errors
  • preserve requestId and traceparent in logs and downstream reports
  • if provenance or freshness metadata is present, return it unchanged so trust is not lost in the handoff