Knox Docs Sign in

API reference

Test mode. Use your secret key on your server; live processing is currently disabled.

https://api.knoxapi.com

Send form-encoded requests with Authorization: Bearer sk_test_....

Complete OpenAPI specification · Integration guide

Operations and schemas are based on the pinned Stripe OpenAPI specification (MIT). Nested object definitions and enums are available in the complete specification.

GET /v1/financial_connections/accounts

List Accounts

Returns a list of Financial Connections Account objects.

Request parameters

ParameterLocationTypeDescription
account_holderqueryobjectIf present, only return accounts that belong to the specified account holder. `account_holder[customer]` and `account_holder[account]` are mutually exclusive.
ending_beforequerystringA cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
expandqueryarray of stringSpecifies which fields in the response should be expanded.
limitqueryintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
sessionquerystringIf present, only return accounts that were collected as part of the given session.
starting_afterquerystringA cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.

object. See the OpenAPI specification for the complete schema.

Responses

HTTP 200: Successful response.
FieldTypeDescription
data requiredarray of financial_connections.accountDetails about each object.
has_more requiredbooleanTrue if this list has another page of items after this one that can be fetched.
object requiredstringString representing the object's type. Objects of the same type share the same value. Always has the value `list`.
url requiredstringThe URL where this list can be accessed.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
POST /v1/financial_connections/sessions

Create a Session

To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.

Request parameters

FieldTypeDescription
account_holder requiredobjectThe account holder to link accounts for.
expandarray of stringSpecifies which fields in the response should be expanded.
filtersobjectFilters to restrict the kinds of accounts to collect.
limitsobjectSettings for configuring Session-specific limits.
manual_entryobjectCustomize manual entry behavior
permissions requiredarray of stringList of data features that you would like to request access to. Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
prefetcharray of stringList of data features that you would like to retrieve upon account creation.
return_urlstringFor webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder for whom accounts are collected in this session.
accounts requiredobjectThe accounts that were collected as part of this Session.
bank_account_tokentoken
client_secretstringA value that will be passed to the client to launch the authentication flow.
filtersbank_connections_resource_link_account_session_filters
id requiredstringUnique identifier for the object.
limitsbank_connections_resource_link_account_session_limits
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
manual_entrybank_connections_resource_link_account_session_manual_entry
object requiredstringString representing the object's type. Objects of the same type share the same value.
permissions requiredarray of stringPermissions requested for accounts collected during this session.
prefetcharray of stringData features requested to be retrieved upon account creation.
return_urlstringFor webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
GET /v1/financial_connections/transactions

List Transactions

Returns a list of Financial Connections Transaction objects.

Request parameters

ParameterLocationTypeDescription
accountquerystringThe ID of the Financial Connections Account whose transactions will be retrieved.
ending_beforequerystringA cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
expandqueryarray of stringSpecifies which fields in the response should be expanded.
limitqueryintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
starting_afterquerystringA cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
transacted_atqueryone of multiple schemasA filter on the list based on the object `transacted_at` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with the following options:
transaction_refreshqueryobjectA filter on the list based on the object `transaction_refresh` field. The value can be a dictionary with the following options:

object. See the OpenAPI specification for the complete schema.

Responses

HTTP 200: Successful response.
FieldTypeDescription
data requiredarray of financial_connections.transactionDetails about each object.
has_more requiredbooleanTrue if this list has another page of items after this one that can be fetched.
object requiredstringString representing the object's type. Objects of the same type share the same value. Always has the value `list`.
url requiredstringThe URL where this list can be accessed.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
GET /v1/financial_connections/accounts/{account}

Retrieve an Account

Retrieves the details of an Financial Connections Account.

Request parameters

ParameterLocationTypeDescription
accountpathstring
expandqueryarray of stringSpecifies which fields in the response should be expanded.

object. See the OpenAPI specification for the complete schema.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder that this account belongs to.
account_numbersarray of bank_connections_resource_account_number_detailsDetails about the account numbers.
balanceone of multiple schemasThe most recent information about the account's balance.
balance_refreshone of multiple schemasThe state of the most recent attempt to refresh the account balance.
category requiredstringThe type of the account. Account category is further divided in `subcategory`.
created requiredintegerTime at which the object was created. Measured in seconds since the Unix epoch.
display_namestringA human-readable name that has been assigned to this account, either by the account holder or by the institution.
id requiredstringUnique identifier for the object.
institution_name requiredstringThe name of the institution that holds this account.
last4stringThe last 4 digits of the account number. If present, this will be 4 numeric characters.
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
object requiredstringString representing the object's type. Objects of the same type share the same value.
ownershipone of multiple schemasThe most recent information about the account's owners.
ownership_refreshone of multiple schemasThe state of the most recent attempt to refresh the account owners.
permissionsarray of stringThe list of permissions granted by this account.
status requiredstringThe status of the link to the account.
status_detailsbank_connections_resource_account_status_details
subcategory requiredstringIf `category` is `cash`, one of: - `checking` - `savings` - `other` If `category` is `credit`, one of: - `mortgage` - `line_of_credit` - `credit_card` - `other` If `category` is `investment` or `other`, this will be `other`.
subscriptionsarray of stringThe list of data refresh subscriptions requested on this account.
supported_payment_method_types requiredarray of stringThe [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
transaction_refreshone of multiple schemasThe state of the most recent attempt to refresh the account transactions.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
POST /v1/financial_connections/accounts/{account}/disconnect

Disconnect an Account

Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).

Request parameters

ParameterLocationTypeDescription
accountpathstring
FieldTypeDescription
expandarray of stringSpecifies which fields in the response should be expanded.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder that this account belongs to.
account_numbersarray of bank_connections_resource_account_number_detailsDetails about the account numbers.
balanceone of multiple schemasThe most recent information about the account's balance.
balance_refreshone of multiple schemasThe state of the most recent attempt to refresh the account balance.
category requiredstringThe type of the account. Account category is further divided in `subcategory`.
created requiredintegerTime at which the object was created. Measured in seconds since the Unix epoch.
display_namestringA human-readable name that has been assigned to this account, either by the account holder or by the institution.
id requiredstringUnique identifier for the object.
institution_name requiredstringThe name of the institution that holds this account.
last4stringThe last 4 digits of the account number. If present, this will be 4 numeric characters.
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
object requiredstringString representing the object's type. Objects of the same type share the same value.
ownershipone of multiple schemasThe most recent information about the account's owners.
ownership_refreshone of multiple schemasThe state of the most recent attempt to refresh the account owners.
permissionsarray of stringThe list of permissions granted by this account.
status requiredstringThe status of the link to the account.
status_detailsbank_connections_resource_account_status_details
subcategory requiredstringIf `category` is `cash`, one of: - `checking` - `savings` - `other` If `category` is `credit`, one of: - `mortgage` - `line_of_credit` - `credit_card` - `other` If `category` is `investment` or `other`, this will be `other`.
subscriptionsarray of stringThe list of data refresh subscriptions requested on this account.
supported_payment_method_types requiredarray of stringThe [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
transaction_refreshone of multiple schemasThe state of the most recent attempt to refresh the account transactions.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
GET /v1/financial_connections/accounts/{account}/owners

List Account Owners

Lists all owners for a given Account

Request parameters

ParameterLocationTypeDescription
accountpathstring
ending_beforequerystringA cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
expandqueryarray of stringSpecifies which fields in the response should be expanded.
limitqueryintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
ownershipquerystringThe ID of the ownership object to fetch owners from.
starting_afterquerystringA cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.

object. See the OpenAPI specification for the complete schema.

Responses

HTTP 200: Successful response.
FieldTypeDescription
data requiredarray of financial_connections.account_ownerDetails about each object.
has_more requiredbooleanTrue if this list has another page of items after this one that can be fetched.
object requiredstringString representing the object's type. Objects of the same type share the same value. Always has the value `list`.
url requiredstringThe URL where this list can be accessed.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
POST /v1/financial_connections/accounts/{account}/refresh

Refresh Account data

Refreshes the data associated with a Financial Connections Account.

Request parameters

ParameterLocationTypeDescription
accountpathstring
FieldTypeDescription
expandarray of stringSpecifies which fields in the response should be expanded.
features requiredarray of stringThe list of account features that you would like to refresh.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder that this account belongs to.
account_numbersarray of bank_connections_resource_account_number_detailsDetails about the account numbers.
balanceone of multiple schemasThe most recent information about the account's balance.
balance_refreshone of multiple schemasThe state of the most recent attempt to refresh the account balance.
category requiredstringThe type of the account. Account category is further divided in `subcategory`.
created requiredintegerTime at which the object was created. Measured in seconds since the Unix epoch.
display_namestringA human-readable name that has been assigned to this account, either by the account holder or by the institution.
id requiredstringUnique identifier for the object.
institution_name requiredstringThe name of the institution that holds this account.
last4stringThe last 4 digits of the account number. If present, this will be 4 numeric characters.
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
object requiredstringString representing the object's type. Objects of the same type share the same value.
ownershipone of multiple schemasThe most recent information about the account's owners.
ownership_refreshone of multiple schemasThe state of the most recent attempt to refresh the account owners.
permissionsarray of stringThe list of permissions granted by this account.
status requiredstringThe status of the link to the account.
status_detailsbank_connections_resource_account_status_details
subcategory requiredstringIf `category` is `cash`, one of: - `checking` - `savings` - `other` If `category` is `credit`, one of: - `mortgage` - `line_of_credit` - `credit_card` - `other` If `category` is `investment` or `other`, this will be `other`.
subscriptionsarray of stringThe list of data refresh subscriptions requested on this account.
supported_payment_method_types requiredarray of stringThe [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
transaction_refreshone of multiple schemasThe state of the most recent attempt to refresh the account transactions.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
POST /v1/financial_connections/accounts/{account}/subscribe

Subscribe to data refreshes for an Account

Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day.

Request parameters

ParameterLocationTypeDescription
accountpathstring
FieldTypeDescription
expandarray of stringSpecifies which fields in the response should be expanded.
features requiredarray of stringThe list of account features to which you would like to subscribe.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder that this account belongs to.
account_numbersarray of bank_connections_resource_account_number_detailsDetails about the account numbers.
balanceone of multiple schemasThe most recent information about the account's balance.
balance_refreshone of multiple schemasThe state of the most recent attempt to refresh the account balance.
category requiredstringThe type of the account. Account category is further divided in `subcategory`.
created requiredintegerTime at which the object was created. Measured in seconds since the Unix epoch.
display_namestringA human-readable name that has been assigned to this account, either by the account holder or by the institution.
id requiredstringUnique identifier for the object.
institution_name requiredstringThe name of the institution that holds this account.
last4stringThe last 4 digits of the account number. If present, this will be 4 numeric characters.
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
object requiredstringString representing the object's type. Objects of the same type share the same value.
ownershipone of multiple schemasThe most recent information about the account's owners.
ownership_refreshone of multiple schemasThe state of the most recent attempt to refresh the account owners.
permissionsarray of stringThe list of permissions granted by this account.
status requiredstringThe status of the link to the account.
status_detailsbank_connections_resource_account_status_details
subcategory requiredstringIf `category` is `cash`, one of: - `checking` - `savings` - `other` If `category` is `credit`, one of: - `mortgage` - `line_of_credit` - `credit_card` - `other` If `category` is `investment` or `other`, this will be `other`.
subscriptionsarray of stringThe list of data refresh subscriptions requested on this account.
supported_payment_method_types requiredarray of stringThe [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
transaction_refreshone of multiple schemasThe state of the most recent attempt to refresh the account transactions.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
POST /v1/financial_connections/accounts/{account}/unsubscribe

Unsubscribe from data refreshes for an Account

Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.

Request parameters

ParameterLocationTypeDescription
accountpathstring
FieldTypeDescription
expandarray of stringSpecifies which fields in the response should be expanded.
features requiredarray of stringThe list of account features from which you would like to unsubscribe.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder that this account belongs to.
account_numbersarray of bank_connections_resource_account_number_detailsDetails about the account numbers.
balanceone of multiple schemasThe most recent information about the account's balance.
balance_refreshone of multiple schemasThe state of the most recent attempt to refresh the account balance.
category requiredstringThe type of the account. Account category is further divided in `subcategory`.
created requiredintegerTime at which the object was created. Measured in seconds since the Unix epoch.
display_namestringA human-readable name that has been assigned to this account, either by the account holder or by the institution.
id requiredstringUnique identifier for the object.
institution_name requiredstringThe name of the institution that holds this account.
last4stringThe last 4 digits of the account number. If present, this will be 4 numeric characters.
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
object requiredstringString representing the object's type. Objects of the same type share the same value.
ownershipone of multiple schemasThe most recent information about the account's owners.
ownership_refreshone of multiple schemasThe state of the most recent attempt to refresh the account owners.
permissionsarray of stringThe list of permissions granted by this account.
status requiredstringThe status of the link to the account.
status_detailsbank_connections_resource_account_status_details
subcategory requiredstringIf `category` is `cash`, one of: - `checking` - `savings` - `other` If `category` is `credit`, one of: - `mortgage` - `line_of_credit` - `credit_card` - `other` If `category` is `investment` or `other`, this will be `other`.
subscriptionsarray of stringThe list of data refresh subscriptions requested on this account.
supported_payment_method_types requiredarray of stringThe [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
transaction_refreshone of multiple schemasThe state of the most recent attempt to refresh the account transactions.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
GET /v1/financial_connections/sessions/{session}

Retrieve a Session

Retrieves the details of a Financial Connections Session

Request parameters

ParameterLocationTypeDescription
expandqueryarray of stringSpecifies which fields in the response should be expanded.
sessionpathstring

object. See the OpenAPI specification for the complete schema.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account_holderone of multiple schemasThe account holder for whom accounts are collected in this session.
accounts requiredobjectThe accounts that were collected as part of this Session.
bank_account_tokentoken
client_secretstringA value that will be passed to the client to launch the authentication flow.
filtersbank_connections_resource_link_account_session_filters
id requiredstringUnique identifier for the object.
limitsbank_connections_resource_link_account_session_limits
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
manual_entrybank_connections_resource_link_account_session_manual_entry
object requiredstringString representing the object's type. Objects of the same type share the same value.
permissions requiredarray of stringPermissions requested for accounts collected during this session.
prefetcharray of stringData features requested to be retrieved upon account creation.
return_urlstringFor webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors
GET /v1/financial_connections/transactions/{transaction}

Retrieve a Transaction

Retrieves the details of a Financial Connections Transaction

Request parameters

ParameterLocationTypeDescription
expandqueryarray of stringSpecifies which fields in the response should be expanded.
transactionpathstring

object. See the OpenAPI specification for the complete schema.

Responses

HTTP 200: Successful response.
FieldTypeDescription
account requiredstringThe ID of the Financial Connections Account this transaction belongs to.
amount requiredintegerThe amount of this transaction, in cents (or local equivalent).
currency requiredstringThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
description requiredstringThe description of this transaction.
id requiredstringUnique identifier for the object.
livemode requiredbooleanIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
object requiredstringString representing the object's type. Objects of the same type share the same value.
status requiredstringThe status of the transaction.
status_transitions requiredbank_connections_resource_transaction_resource_status_transitions
transacted_at requiredintegerTime at which the transaction was transacted. Measured in seconds since the Unix epoch.
transaction_refresh requiredstringThe token of the transaction refresh that last updated or created this transaction.
updated requiredintegerTime at which the object was last updated. Measured in seconds since the Unix epoch.
HTTP default: Error response.
FieldTypeDescription
error requiredapi_errors