---
title: "Create an Account Session"
method: POST
path: "/v1/account_sessions"
---

# Create an Account Session

`POST /v1/account_sessions`

Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.

## Response `200`

Successful response.

- AccountSession — An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components. We recommend that you create an AccountSession each time you need to display an embedded component to your user. Do not save AccountSessions to your database as they expire relatively quickly, and cannot be used more than once. Related guide: [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components)
  - `account` string, required — The ID of the account the AccountSession was created for
  - `client_secret` string, required — The client secret of this AccountSession. Used on the client to set up secure access to the given `account`. The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs to [setup Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
  - `components` ConnectEmbeddedAccountSessionCreateComponents, required
    - `account_management` ConnectEmbeddedAccountConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedAccountFeaturesClaim, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
    - `account_onboarding` ConnectEmbeddedAccountConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedAccountFeaturesClaim, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
    - `balance_report` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
    - `balances` ConnectEmbeddedPayoutsConfig, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedPayoutsFeatures, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `edit_payout_schedule` boolean, required — Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
        - `instant_payouts` boolean, required — Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
        - `standard_payouts` boolean, required — Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
    - `disputes_list` ConnectEmbeddedDisputesListConfig, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedDisputesListFeatures, required
        - `capture_payments` boolean, required — Whether to allow capturing and cancelling payment intents. This is `true` by default.
        - `destination_on_behalf_of_charge_management` boolean, required — Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
        - `dispute_management` boolean, required — Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
        - `refund_management` boolean, required — Whether sending refunds is enabled. This is `true` by default.
        - `smart_disputes_management` boolean, required — Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
    - `documents` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
    - `financial_account` ConnectEmbeddedFinancialAccountConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedFinancialAccountFeatures, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
        - `send_money` boolean, required — Whether to allow sending money.
        - `transfer_balance` boolean, required — Whether to allow transferring balance.
    - `financial_account_transactions` ConnectEmbeddedFinancialAccountTransactionsConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedFinancialAccountTransactionsFeatures, required
        - `card_spend_dispute_management` boolean, required — Whether to allow card spend dispute management features.
    - `instant_payouts_promotion` ConnectEmbeddedInstantPayoutsPromotionConfig, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedInstantPayoutsPromotionFeatures, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
        - `instant_payouts` boolean, required — Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
    - `issuing_card` ConnectEmbeddedIssuingCardConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedIssuingCardFeatures, required
        - `card_management` boolean, required — Whether to allow card management features.
        - `card_spend_dispute_management` boolean, required — Whether to allow card spend dispute management features.
        - `cardholder_management` boolean, required — Whether to allow cardholder management features.
        - `spend_control_management` boolean, required — Whether to allow spend control management features.
    - `issuing_cards_list` ConnectEmbeddedIssuingCardsListConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedIssuingCardsListFeatures, required
        - `card_management` boolean, required — Whether to allow card management features.
        - `card_spend_dispute_management` boolean, required — Whether to allow card spend dispute management features.
        - `cardholder_management` boolean, required — Whether to allow cardholder management features.
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `spend_control_management` boolean, required — Whether to allow spend control management features.
    - `notification_banner` ConnectEmbeddedAccountConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedAccountFeaturesClaim, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
    - `payment_details` ConnectEmbeddedPaymentsConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedPaymentsFeatures, required
        - `capture_payments` boolean, required — Whether to allow capturing and cancelling payment intents. This is `true` by default.
        - `destination_on_behalf_of_charge_management` boolean, required — Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
        - `dispute_management` boolean, required — Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
        - `refund_management` boolean, required — Whether sending refunds is enabled. This is `true` by default.
        - `smart_disputes_management` boolean, required — Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
    - `payment_disputes` ConnectEmbeddedPaymentDisputesConfig, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedPaymentDisputesFeatures, required
        - `destination_on_behalf_of_charge_management` boolean, required — Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
        - `dispute_management` boolean, required — Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
        - `refund_management` boolean, required — Whether sending refunds is enabled. This is `true` by default.
        - `smart_disputes_management` boolean, required — Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
    - `payments` ConnectEmbeddedPaymentsConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedPaymentsFeatures, required
        - `capture_payments` boolean, required — Whether to allow capturing and cancelling payment intents. This is `true` by default.
        - `destination_on_behalf_of_charge_management` boolean, required — Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
        - `dispute_management` boolean, required — Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
        - `refund_management` boolean, required — Whether sending refunds is enabled. This is `true` by default.
        - `smart_disputes_management` boolean, required — Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
    - `payout_details` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
    - `payout_reconciliation_report` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
    - `payouts` ConnectEmbeddedPayoutsConfig, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedPayoutsFeatures, required
        - `disable_stripe_user_authentication` boolean, required — Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
        - `edit_payout_schedule` boolean, required — Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
        - `external_account_collection` boolean, required — Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
        - `instant_payouts` boolean, required — Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
        - `standard_payouts` boolean, required — Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
    - `payouts_list` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
    - `tax_registrations` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
    - `tax_settings` ConnectEmbeddedBaseConfigClaim, required
      - `enabled` boolean, required — Whether the embedded component is enabled.
      - `features` ConnectEmbeddedBaseFeatures, required
  - `expires_at` integer, required — The timestamp at which this AccountSession will expire.
  - `livemode` boolean, required — If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
  - `object` 'account_session', required — String representing the object's type. Objects of the same type share the same value.

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/stripe/apis/stripe-api.md) · [All operations](https://skmtc.net/stripe/apis/stripe-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stripe/stripe-api/versions/707de00b0616/schema)
