Skip to main content
GET
/
v2
/
customer_sessions
/
{session_id}
Retrieve a session
curl --request GET \
  --url https://dev.sbx.imprint.co/v2/customer_sessions/{session_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "2EE24580-B97B-4949-A65C-929CCB9B9B8D",
  "client_secret": "QzMyNzg4QzgtNEUwOS00QkU4LThDMjEtMkU5OUQ3QzkwRDhGCg==",
  "expires_at": "2025-02-13T19:08:07.000Z",
  "metadata": {
    "store_number": "123"
  },
  "source": "web_signup"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

session_id
string
required

Response

Customer session retrieved successfully

Represents a session created on behalf of an Imprint customer

id
string
required

The unique ID Imprint assigns to the session.

Example:

"2EE24580-B97B-4949-A65C-929CCB9B9B8D"

client_secret
string
required

Not to be logged or stored. Provide this one time use token to the Imprint SDK or other client side code to allow the customer access to edit their own account or apply

Example:

"QzMyNzg4QzgtNEUwOS00QkU4LThDMjEtMkU5OUQ3QzkwRDhGCg=="

expires_at
string
required

the RFC-3339 timestamp when the client_secret will expire.

Example:

"2025-02-13T19:08:07.000Z"

metadata
object

Set of key-value pairs for storing additional information about the customer session.

Example:
{ "store_number": "123" }
source
string

The source where the session was initiated

Example:

"web_signup"