Skip to Content
API ReferenceCustomer sessions

Customer sessions

Issue short-lived access to the hosted customer portal.

Choose exactly one customer identifier. SellApp returns a 15-minute bearer token and a separate, single-use hosted redemption URL. Both plaintext credentials appear once, so store neither in logs and do not retry creation expecting a replay.

POST
/v2/customer-sessions

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
customer_id*integer

Response Body

Created.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/customer-sessions' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "external_customer_id": "crm_maya_314"}'
{  "data": {    "id": "01992b45-cc84-7cc6-a331-67be817ed51b",    "token": "cs_once_redacted",    "redemption_url": "https://acme.sell.app/customer-portal/session/once_redacted",    "expires_at": "2026-09-04T10:15:00Z"  }}
DELETE
/v2/customer-sessions/{session}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

session*string

The session identifier.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
revoked*boolean
Example Request
curl -X DELETE 'https://sell.app/api/v2/customer-sessions/session_01K4CUSTOMER' \  -H 'X-STORE: launch-lab'
{  "revoked": true}