Create portal session
POST
Generate a short-lived portal token for a customer.
apiKeyHeaderheader
x-api-key<token>API key for authentication. Generate from the dashboard or via POST /v1/api-keys.
x-api-key*stringAPI key for authentication
Length
1 <= length- body
customer_id*stringID of the customer to create a portal session for
expires_in?numberSession TTL in seconds. Min 300 (5 min), max 86400 (24 h). Defaults to 3600 (1 hour)
Range
300 <= value <= 86400Default
3600Response for status 200
application/json- response
url*stringtoken*stringcustomer_id*stringexpires_at*stringcurl -X POST 'https://api.tryaccess.xyz/api/v1/customers/portal/sessions' \ -H 'x-api-key: string' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cus_01J9Z8K2P3Q4R5S6T7U8V9W0X1"}'{ "url": "string", "token": "string", "customer_id": "string", "expires_at": "string"}How is this guide?