Session management endpoints for creating and verifying checkout sessions
Sessions
Verify a session token
get /public/api/sessions/verify
Verifies a session token from the authorization header and returns session and checkout data
Example Response
200 Session verified successfully
400 Session has expired
401 Unauthorized - Invalid or missing authentication token
404 Checkout not found
Create a new session
post /public/api/sessions
Creates a new session that expires in 30 minutes from creation time.
Request Schema
checkoutId required
string
Loading...
profileId required
string
Loading...
metadata
string
Loading...
products
array
Loading...
amount
number
Loading...
Example Request
Example Response
201 Session created successfully
400 Invalid request
401 Unauthorized - Invalid or missing API key
404 Checkout not found
500 Server error