Skip to main content
DELETE
/
auth
/
sessions
/
{id}
cURL
curl --request DELETE \
  --url https://api.lightspark.com/grid/2025-10-13/auth/sessions/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "payloadToSign": "Y2hhbGxlbmdlLXBheWxvYWQtdG8tc2lnbg==",
  "requestId": "7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21",
  "expiresAt": "2026-04-08T15:35:00Z",
  "type": "OAUTH"
}

Authorizations

Authorization
string
header
required

API token authentication using format <api token id>:<api client secret>

Headers

Grid-Wallet-Signature
string

Signature over the payloadToSign returned in a prior 202 response, produced with the session private key of a verified session on the same internal account and base64-encoded. Required on the signed retry; ignored on the initial call.

Request-Id
string

The requestId returned in a prior 202 response, echoed back on the signed retry so the server can correlate it with the issued challenge. Required on the signed retry; must be paired with Grid-Wallet-Signature.

Path Parameters

id
string
required

The id of the session to revoke.

Response

Challenge issued. The response contains a payloadToSign that must be signed with the session private key of a verified session on the same internal account, along with a requestId that must be echoed back on the retry.

202 response returned from Embedded Wallet Auth endpoints that require a signed retry — POST /auth/credentials (adding an additional credential), DELETE /auth/credentials/{id} (revoking a credential), and DELETE /auth/sessions/{id} (revoking a session). Carries the signing fields from SignedRequestChallenge plus the type of the authentication credential involved (being added, being revoked, or that issued the session being revoked). The client already knows the target resource id from the request path / body it just sent, so nothing beyond type is echoed in the response.

payloadToSign
string
required

Payload that must be signed with the session private key of a verified authentication credential. The resulting signature is passed as the Grid-Wallet-Signature header on the retry of the originating request to complete the operation.

Example:

"Y2hhbGxlbmdlLXBheWxvYWQtdG8tc2lnbg=="

requestId
string
required

Unique identifier for this request. Must be echoed in the Request-Id header on the signed retry so the server can correlate the retry with the issued challenge.

Example:

"7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21"

expiresAt
string<date-time>
required

Timestamp after which this challenge is no longer valid. The signed retry must be submitted before this time.

Example:

"2026-04-08T15:35:00Z"

type
enum<string>
required

Credential type relevant to this challenge: the credential type being added (POST /auth/credentials), the credential type being revoked (DELETE /auth/credentials/{id}), or the type of credential that issued the session being revoked (DELETE /auth/sessions/{id}).

Available options:
OAUTH,
EMAIL_OTP,
PASSKEY