(Anonymous) Customer Session


The Customer Session resource represents a single anonymous session for a (potential) customer.

Create a Customer Session

POST/customer-sessions

To start a new session, POST to the endpoint below. Further API calls can then be authenticated with this session, see Authentication.

curl -X POST https://api.pilon.io/customer-sessions \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json" \
     -d $'{
		  "customerSession": "string",
		  "environment": "string",
		  "created": "string",
		  "updated": "string",
		  "deleted": "string",
		  "id": "string",
		  "uuidString": "string"
		}'

Retrieve a Customer Session

GET/customer-sessions/{id}

curl -X GET https://api.pilon.io/customer-sessions/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

Retrieve Current Customer Session

GET/customer-sessions/me

curl -X GET https://api.pilon.io/customer-sessions/me \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

List All Customer Sessions

GET/customer-sessions

curl -X GET https://api.pilon.io/customer-sessions \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"