Skip to main content
POST
Create a customer portal session

Authorizations

Authorization
string
header
required

Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.

Path Parameters

customer_id
string
required

Response

Success

id
string
required

The session identifier, prefixed with psn_. Use it to correlate a session with your own logs; it is not a credential and cannot be exchanged for access.

Example:

"psn_9f2c4a7b1d3e"

url
string<uri>
required

The URL that opens the portal as this customer. It carries the session credential, so it works on any device and must not be logged or shared.

Example:

"https://portal.bachs.io/s/6Yc0nQpR2vX1sK7fLbA9tE"