API Keys
Delete API Key
Revoke an API key.
DELETE
/
v1
/
tokens
/
{id}
curl -X DELETE https://api.byteport.com/v1/tokens/9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34 \
-H "Authorization: Bearer $BYTEPORT_API_KEY" \
-H "User-Agent: my-app/1.0"
const id = "9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34";
await fetch(`https://api.byteport.com/v1/tokens/${id}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.BYTEPORT_API_KEY}`,
"User-Agent": "my-app/1.0",
},
});
import os, requests
key_id = "9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34"
requests.delete(
f"https://api.byteport.com/v1/tokens/{key_id}",
headers={
"Authorization": f"Bearer {os.environ['BYTEPORT_API_KEY']}",
"User-Agent": "my-app/1.0",
},
)
(empty body)
{
"error": 404,
"message": "not found"
}
Revoke an API key. Revocation is immediate — there is no grace window, and any
request authenticated with the key starts receiving
401 right away. The key is
soft-deleted: it stays in List responses with
revoked_at set, preserving your audit history. A successful revoke returns
204 No Content.
curl -X DELETE https://api.byteport.com/v1/tokens/9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34 \
-H "Authorization: Bearer $BYTEPORT_API_KEY" \
-H "User-Agent: my-app/1.0"
const id = "9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34";
await fetch(`https://api.byteport.com/v1/tokens/${id}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.BYTEPORT_API_KEY}`,
"User-Agent": "my-app/1.0",
},
});
import os, requests
key_id = "9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34"
requests.delete(
f"https://api.byteport.com/v1/tokens/{key_id}",
headers={
"Authorization": f"Bearer {os.environ['BYTEPORT_API_KEY']}",
"User-Agent": "my-app/1.0",
},
)
(empty body)
{
"error": 404,
"message": "not found"
}
curl -X DELETE https://api.byteport.com/v1/tokens/9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34 \
-H "Authorization: Bearer $BYTEPORT_API_KEY" \
-H "User-Agent: my-app/1.0"
const id = "9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34";
await fetch(`https://api.byteport.com/v1/tokens/${id}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.BYTEPORT_API_KEY}`,
"User-Agent": "my-app/1.0",
},
});
import os, requests
key_id = "9b7e2c1a-4f3d-4a2b-8c1e-2d6f5a0b7c34"
requests.delete(
f"https://api.byteport.com/v1/tokens/{key_id}",
headers={
"Authorization": f"Bearer {os.environ['BYTEPORT_API_KEY']}",
"User-Agent": "my-app/1.0",
},
)
(empty body)
{
"error": 404,
"message": "not found"
}

