cURL
curl --request DELETE \
--url https://api.lightspark.com/grid/2025-10-13/tokens/{tokenId} \
--header 'Authorization: Basic <encoded-value>'import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
await client.tokens.delete('tokenId');package com.lightspark.grid.example
import com.lightspark.grid.client.LightsparkGridClient
import com.lightspark.grid.client.okhttp.LightsparkGridOkHttpClient
import com.lightspark.grid.models.tokens.TokenDeleteParams
fun main() {
val client: LightsparkGridClient = LightsparkGridOkHttpClient.fromEnv()
client.tokens().delete("tokenId")
}{
"status": 400,
"message": "<string>",
"details": {
"errors": [
{
"field": "taxIdentifier",
"constraint": {
"format": "email",
"pattern": "^\\d{5}(-\\d{4})?$",
"enum": [
"SSN",
"ITIN",
"NON_US_TAX_ID"
],
"minLength": 1,
"maxLength": 500
},
"message": "Value is not one of the allowed enum members."
}
]
}
}{
"status": 401,
"message": "<string>",
"details": {}
}{
"status": 404,
"message": "<string>",
"details": {}
}{
"status": 500,
"message": "<string>",
"details": {}
}API Tokens
Delete API token by ID
Delete an API token by their system-generated ID
DELETE
/
tokens
/
{tokenId}
cURL
curl --request DELETE \
--url https://api.lightspark.com/grid/2025-10-13/tokens/{tokenId} \
--header 'Authorization: Basic <encoded-value>'import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
await client.tokens.delete('tokenId');package com.lightspark.grid.example
import com.lightspark.grid.client.LightsparkGridClient
import com.lightspark.grid.client.okhttp.LightsparkGridOkHttpClient
import com.lightspark.grid.models.tokens.TokenDeleteParams
fun main() {
val client: LightsparkGridClient = LightsparkGridOkHttpClient.fromEnv()
client.tokens().delete("tokenId")
}{
"status": 400,
"message": "<string>",
"details": {
"errors": [
{
"field": "taxIdentifier",
"constraint": {
"format": "email",
"pattern": "^\\d{5}(-\\d{4})?$",
"enum": [
"SSN",
"ITIN",
"NON_US_TAX_ID"
],
"minLength": 1,
"maxLength": 500
},
"message": "Value is not one of the allowed enum members."
}
]
}
}{
"status": 401,
"message": "<string>",
"details": {}
}{
"status": 404,
"message": "<string>",
"details": {}
}{
"status": 500,
"message": "<string>",
"details": {}
}Was this page helpful?
⌘I