Authentication GuideFor comprehensive details about authenticating with the Forage API, refer to the authentication guide.
Session Token LengthSession tokens are short-lived and expire after fifteen minutes.
Authentication Token RequiredYou need to create an authentication token before you can generate a session token.
A POST request to /session_token/ creates a new session token. The token is returned as the token value in the response body.
A session token is a temporary OAuth 2.0 bearer token that expires after 15 minutes.
Session tokens are used in client-side requests. For example, POSTs to create a Payment Method require session tokens in the Authorization header, and session tokens are passed as parameters to SDK methods that submit customer data.
You can optionally include a customer_id in the request body. This should be the same customer_id you pass when creating a PaymentMethod for the same customer, so Forage can associate the two.
